Download as pdf or txt
Download as pdf or txt
You are on page 1of 19

3/12/13 Depot sales | ABAP, SAP, benX AG, benXBrain, Brain

brain
store

Login
Signup

Query - you can use e.g. CL_* for classes

We are currently in a beta-phase, there could be some issues. Please be patient. Please send us your Feedback .

Home
Documents 6
My files
All documents 6
Top files
Top downloads
Thread
SAP Object
Detail
Documentation
Wiki
My Notes

tcdw0_f01_unicode.benxbrain.com/en(bD1lbiZjPTAwMQ==)/index.do?onInputProcessing=brai_thread&001_thread_id=2099178 &001_temp=R3TR%7cDTEL%7cVBTYP%7c%7cWD4 1/19


3/12/13 Depot sales | ABAP, SAP, benX AG, benXBrain, Brain

Files
SDN 687
Favourites
All favourites
Classes/Methods
Domains
Data elements
Functions
Messageclasses
Reports
Tables
Transactions
BSP-Views
SAP Objects 8.290.783
Classes/Methods 408.877
Functions 849.322
Data elements 790.293
Reports 430.439
Tables 770.254
Transactions 152.473
Messageclasses 17.771
BSP-Views 1.536
Options
Account

Home | SAP Object | Thread | VBTYP

VBTYP Data Element


tcdw0_f01_unicode.benxbrain.com/en(bD1lbiZjPTAwMQ==)/index.do?onInputProcessing=brai_thread&001_thread_id=2099178 &001_temp=R3TR%7cDTEL%7cVBTYP%7c%7cWD4 2/19
3/12/13 Depot sales | ABAP, SAP, benX AG, benXBrain, Brain

Share!
Facebook
Twitter
Mail

Description SD document category


Creator SAP
Created on
Package BV
Description SD Cross-application Objects
Available at
Component
Change System

CRM
ECC
SOLUTION MANAGER
NETWEAVER

#1 Depot sales Original


Hi All,

Please provide me the solution on the following.

Use of routine 356 in depot sales pricing procedure


tcdw0_f01_unicode.benxbrain.com/en(bD1lbiZjPTAwMQ==)/index.do?onInputProcessing=brai_thread&001_thread_id=2099178 &001_temp=R3TR%7cDTEL%7cVBTYP%7c%7cWD4 3/19
3/12/13 Depot sales | ABAP, SAP, benX AG, benXBrain, Brain

(ii) Steps involved in depot sales (right from the STO i.e. plant to depot & from depot to cust)

(iii) Excise transaction type for scrap sales

(iv) Where do we define ETTs

(v) Scrap sales excise invoice is created through which t.code

(vi) In system landscape client 800 called as

(vii) Use of different payment terms at company code data & sales area data in XD01

(VIII) MTO & MTS for single material code is configured. At VA01 system not considering un-restricted stock and while doing MRP Run requirements are get
generated for sales order total quantity

Regards

tcdw0_f01_unicode.benxbrain.com/en(bD1lbiZjPTAwMQ==)/index.do?onInputProcessing=brai_thread&001_thread_id=2099178 &001_temp=R3TR%7cDTEL%7cVBTYP%7c%7cWD4 4/19


3/12/13 Depot sales | ABAP, SAP, benX AG, benXBrain, Brain

Chowdary

#2 Re: Depot sales Original

hi

i sto process: vao1-vl01n-vf01-j1iin it foe sd process ofter mm people doing migo- j1ig , it means when u create the migo document stock can transfer to depo
plant and storage location . ofter j1ig can capture. its for closing the sto

foter depo sales: va01-vl01n-j1ij-vf01.

it si for depo process .

i n sto can use deferent process so based on your requirment .

in use of 356 ; routine

----

INCLUDE FV64A356 *

tcdw0_f01_unicode.benxbrain.com/en(bD1lbiZjPTAwMQ==)/index.do?onInputProcessing=brai_thread&001_thread_id=2099178 &001_temp=R3TR%7cDTEL%7cVBTYP%7c%7cWD4 5/19


3/12/13 Depot sales | ABAP, SAP, benX AG, benXBrain, Brain

----

&----

*& *

*& *

*& *

&----

data: begin of t_rg23d occurs 0.

include structure j_1irg23d.

data: end of t_rg23d.

*********************************************************

APPL COUNTRY SPECIFIC

form frm_kondi_wert_356.

For depot sale : picks the excise value from RG23D

************************************************************************

This formula when in the billing or proforma document, picks up the

tcdw0_f01_unicode.benxbrain.com/en(bD1lbiZjPTAwMQ==)/index.do?onInputProcessing=brai_thread&001_thread_id=2099178 &001_temp=R3TR%7cDTEL%7cVBTYP%7c%7cWD4 6/19


3/12/13 Depot sales | ABAP, SAP, benX AG, benXBrain, Brain

excise value posted for the delivery if the excise has been posted.

In case the excise is not posted, then it continues with the excise

value calculated in the system . It shows the calculated value in

the sales order also

----

TABLES : J_1IRG23D.

DATA : tline type i,

ZKOMV LIKE KOMV,

LAND1 LIKE T001-LAND1,

KALSM LIKE T005-KALSM.

DATA : result type f.

DATA : zvbrp like vbrp .

if komk-vbtyp = 'M' or komk-vbtyp = 'U'.

billing document or proforma document

read table t_rg23d with key vbeln = komp-vgbel

posnr = komp-vgpos.

tcdw0_f01_unicode.benxbrain.com/en(bD1lbiZjPTAwMQ==)/index.do?onInputProcessing=brai_thread&001_thread_id=2099178 &001_temp=R3TR%7cDTEL%7cVBTYP%7c%7cWD4 7/19


3/12/13 Depot sales | ABAP, SAP, benX AG, benXBrain, Brain

if sy-subrc ne 0.

refresh t_rg23d.

endif.

describe table t_rg23d lines tline.

if tline eq 0.

select * from j_1irg23d into table t_rg23d

where vbeln = komp-vgbel

and posnr = komp-vgpos

and status <> 'B'.

if sy-subrc ne 0.

exit.

endif.

endif.

if j_1iexcdef-j_1itaxcal is initial.

get customisation parameters

select single land1 from t001 into land1

where bukrs = komk-bukrs.

select single kalsm from t005 into kalsm


tcdw0_f01_unicode.benxbrain.com/en(bD1lbiZjPTAwMQ==)/index.do?onInputProcessing=brai_thread&001_thread_id=2099178 &001_temp=R3TR%7cDTEL%7cVBTYP%7c%7cWD4 8/19
3/12/13 Depot sales | ABAP, SAP, benX AG, benXBrain, Brain

where land1 = land1.

select single * from j_1iexcdef

where j_1itaxcal = kalsm.

endif.

get the condition names

clear xkwert.

get the excise value

loop at t_rg23d.

case xkomv-kschl.

when j_1iexcdef-j_1icbedar.

xkwert = t_rg23d-exbed + xkwert.

when j_1iexcdef-j_1icsedar.

xkwert = t_rg23d-exsed + xkwert.

when j_1iexcdef-j_1icaedar.

xkwert = t_rg23d-exaed + xkwert.

*NCCD changes start

WHEN J_1IEXCDEF-J_1ICNCCDAR.

XKWERT = T_RG23D-NCCD + XKWERT.


tcdw0_f01_unicode.benxbrain.com/en(bD1lbiZjPTAwMQ==)/index.do?onInputProcessing=brai_thread&001_thread_id=2099178 &001_temp=R3TR%7cDTEL%7cVBTYP%7c%7cWD4 9/19
3/12/13 Depot sales | ABAP, SAP, benX AG, benXBrain, Brain

*NCCD changes end

*ECS changes start

WHEN J_1IEXCDEF-J_1ICECSAR.

XKWERT = T_RG23D-ECS + XKWERT.

*ECS changes end

WHEN J_1IEXCDEF-J_1ICCESAR.

xkwert = t_rg23d-cess + xkwert.

endcase.

endloop.

exit.

elseif komk-vbtyp = ' '.

saving the document, get the value from the internal table XKOMV

read table xkomv into zkomv

with key kschl = xkomv-kschl.

xkwert = zkomv-kwert.

elseif komk-vbtyp = 'H'.

billing document or proforma document

read table t_rg23d with key vbeln = komp-vgbel

posnr = komp-vgpos.
tcdw0_f01_unicode.benxbrain.com/en(bD1lbiZjPTAwMQ==)/index.do?onInputProcessing=brai_thread&001_thread_id=2099178 &001_temp=R3TR%7cDTEL%7cVBTYP%7c%7cWD4 10/19
3/12/13 Depot sales | ABAP, SAP, benX AG, benXBrain, Brain

if sy-subrc ne 0.

refresh t_rg23d.

endif.

describe table t_rg23d lines tline.

if tline eq 0.

select single * from vbrp into zvbrp where vbeln = komp-vgbel and

posnr = komp-vgpos .

if sy-subrc ne 0.

exit.

endif.

select * from j_1irg23d into table t_rg23d

where vbeln = zvbrp-vgbel

AND POSNR = KOMP-VGPOS

and status <> 'B'.

if sy-subrc ne 0.

exit.

endif.

endif.

if j_1iexcdef-j_1itaxcal is initial.
tcdw0_f01_unicode.benxbrain.com/en(bD1lbiZjPTAwMQ==)/index.do?onInputProcessing=brai_thread&001_thread_id=2099178 &001_temp=R3TR%7cDTEL%7cVBTYP%7c%7cWD4 11/19
3/12/13 Depot sales | ABAP, SAP, benX AG, benXBrain, Brain

get customisation parameters

select single land1 from t001 into land1

where bukrs = komk-bukrs.

select single kalsm from t005 into kalsm

where land1 = land1.

select single * from j_1iexcdef

where j_1itaxcal = kalsm.

endif.

get the condition names

clear xkwert.

get the excise value

loop at t_rg23d.

case xkomv-kschl.

when j_1iexcdef-j_1icbedar.

result = t_rg23d-exbed / T_rg23d-MENGE .

xkwert = result * komp-mglme .

when j_1iexcdef-j_1icsedar.
tcdw0_f01_unicode.benxbrain.com/en(bD1lbiZjPTAwMQ==)/index.do?onInputProcessing=brai_thread&001_thread_id=2099178 &001_temp=R3TR%7cDTEL%7cVBTYP%7c%7cWD4 12/19
3/12/13 Depot sales | ABAP, SAP, benX AG, benXBrain, Brain

result = t_rg23d-exsed / T_rg23d-MENGE .

xkwert = result * komp-mglme .

when j_1iexcdef-j_1icaedar.

result = t_rg23d-exaed / T_rg23d-MENGE .

xkwert = result * komp-mglme .

*NCCD changes start

WHEN J_1IEXCDEF-J_1ICNCCDAR.

result = t_rg23d-NCCD / T_rg23d-MENGE .

xkwert = result * komp-mglme .

*NCCD changes end

*ECS changes start

WHEN J_1IEXCDEF-J_1ICECSAR.

result = t_rg23d-ECS / T_rg23d-MENGE .

xkwert = result * komp-mglme .

*ECS changes end

WHEN J_1IEXCDEF-J_1ICCESAR.

result = t_rg23d-cess / T_rg23d-MENGE .

xkwert = result * komp-mglme .

endcase.
tcdw0_f01_unicode.benxbrain.com/en(bD1lbiZjPTAwMQ==)/index.do?onInputProcessing=brai_thread&001_thread_id=2099178 &001_temp=R3TR%7cDTEL%7cVBTYP%7c%7cWD4 13/19
3/12/13 Depot sales | ABAP, SAP, benX AG, benXBrain, Brain

endloop.

exit.

else.

document other than the billing or the proforma

exit.

endif.

endform.

this for standerd routine at vofm

5) __scrap scales excise invoice t.code j1iin__


tcdw0_f01_unicode.benxbrain.com/en(bD1lbiZjPTAwMQ==)/index.do?onInputProcessing=brai_thread&001_thread_id=2099178 &001_temp=R3TR%7cDTEL%7cVBTYP%7c%7cWD4 14/19
3/12/13 Depot sales | ABAP, SAP, benX AG, benXBrain, Brain

6) payment terms use based on customer , u can differentiate to the customer . it whole sale customers , retail customer s.

7) in mto u can maintain the requirement type kek- so it means it is for special stock ,

so material u can define with mrp views, u can maintain the schedule line CP,

This is mto, scenario,

on MTS scenario u can maintain deferent requirement type ,

U CHECK THE setting in availabulity cheek

8)With in CIN the account determination is based on the transaction type. So normally you can have a single set of accounts for Excise utilization. In case you
need alternate account determination for handling various scenarios you can define sub transaction types. The sub transaction types and corresponding account
assignments needs to be maintained in CIN customization

Edited by: bojjasivasankarreddy on Dec 15, 2011 7:08 AM

#3 Re: Depot sales Original

*Please find below my comments..*

Use of routine 356 in depot sales pricing procedure

This formula when in the billing or proforma document, picks up the

excise value posted for the delivery if the excise has been posted.

tcdw0_f01_unicode.benxbrain.com/en(bD1lbiZjPTAwMQ==)/index.do?onInputProcessing=brai_thread&001_thread_id=2099178 &001_temp=R3TR%7cDTEL%7cVBTYP%7c%7cWD4 15/19


3/12/13 Depot sales | ABAP, SAP, benX AG, benXBrain, Brain

In case the excise is not posted, then it continues with the excise

value calculated in the system . It shows the calculated value in

the sales order also

(ii) Steps involved in depot sales (right from the STO i.e. plant to depot & from depot to cust)

Create STO(ME21N - Doc.type: UB at receiving plant) -

>Create Delivery(VL10B from Supplying Plant)----->PGI( VL02N from supplying Plant)-->_Create excise invoice for other movement (J1IS)_---
>GR at Receiving Plant based on Outbound Delivery at Receiving Plant

(iii) Excise transaction type for scrap sales

EWPO

(iv) Where do we define ETTs

SPRO -> logistics general -> tax on goods movement

tcdw0_f01_unicode.benxbrain.com/en(bD1lbiZjPTAwMQ==)/index.do?onInputProcessing=brai_thread&001_thread_id=2099178 &001_temp=R3TR%7cDTEL%7cVBTYP%7c%7cWD4 16/19


3/12/13 Depot sales | ABAP, SAP, benX AG, benXBrain, Brain

(v) Scrap sales excise invoice is created through which t.code

J1IIN

(vi) In system landscape client 800 called as

It depends upon the client whether it is located in DEV, QTY, PRD servers

(vii) Use of different payment terms at company code data & sales area data in XD01

Based on your Company code and Sales Area data, the payment works based on your configuration like whether it can be 100% advance before
delivery for 1 sales area but the same customer can have option to pay after delivery in an different sales area. all these are based on ur payment
terms given in xd01

(VIII) MTO & MTS for single material code is configured. At VA01 system not considering un-restricted stock and while doing MRP Run requirements are get
generated for sales order total quantity

Reason could be that the stock needs to assign to particular sales order using MBIB - E

#4 Re: Depot sales Original

Please put some efforts to find out answers to your question. Moreover, avoid dumping too many questions in one thread. Most importantly, go through the
tcdw0_f01_unicode.benxbrain.com/en(bD1lbiZjPTAwMQ==)/index.do?onInputProcessing=brai_thread&001_thread_id=2099178 &001_temp=R3TR%7cDTEL%7cVBTYP%7c%7cWD4 17/19
3/12/13 Depot sales | ABAP, SAP, benX AG, benXBrain, Brain

forum rules which you can find on top (first three threads) and adhere to forum rules.

G. Lakshmipathi

©benX AG

About benX AG
|
Press
|
Company

Terms & Conditions


|
Privacy Statement
|
Disclaimer

Glyphicons Free licensed under CC BY 3.0 .

Feedback
×

Feedback

You can send us your feedback to feedback@benx.de.

or

fill out this form.


tcdw0_f01_unicode.benxbrain.com/en(bD1lbiZjPTAwMQ==)/index.do?onInputProcessing=brai_thread&001_thread_id=2099178 &001_temp=R3TR%7cDTEL%7cVBTYP%7c%7cWD4 18/19
3/12/13 Depot sales | ABAP, SAP, benX AG, benXBrain, Brain

Name
Name
Feedback

Send!

Close

tcdw0_f01_unicode.benxbrain.com/en(bD1lbiZjPTAwMQ==)/index.do?onInputProcessing=brai_thread&001_thread_id=2099178 &001_temp=R3TR%7cDTEL%7cVBTYP%7c%7cWD4 19/19

You might also like