2012 Jan 16 1:27 PM
A list of order types to be excluded from material listing through a custom table.
For all those order types entered in the custom table the system will not perform any material listing check, regardless if the material is existing in the material listing.
Can you please tell me any particular exit or where can i code this.???
Many Thanks in Advance,
Rajendra
2012 Jan 16 7:24 PM
Hi Rajendra,
The activation of listing per sales order type is possible using standard SD listing/exclusion customizing under following IMG:
SPRO -> Sales and Distribution -> Basic Functions -> Listing/Exclusion -> Activate listing/exclusion by sales document type
If you do not assign any listing profile to the sales order type, it will be possible to sell any material using this order type.
If you want to implement more complex logic (e.g. sales area/sales order type), you can develop a VOFM listing/exclusion requirement formula and assign it to relavant lisitng/excustion type (i.e. A001) in listing/exclusion procedure customizing:
SPRO -> Sales and Distribution -> Basic Functions -> Listing/Exclusion -> Procedures for maintaining listing/exclusion
Then if the requirement is not fulfilled, the listing will not be taken into account.
Regards,
Marcin
2012 Jan 16 7:24 PM
Hi Rajendra,
The activation of listing per sales order type is possible using standard SD listing/exclusion customizing under following IMG:
SPRO -> Sales and Distribution -> Basic Functions -> Listing/Exclusion -> Activate listing/exclusion by sales document type
If you do not assign any listing profile to the sales order type, it will be possible to sell any material using this order type.
If you want to implement more complex logic (e.g. sales area/sales order type), you can develop a VOFM listing/exclusion requirement formula and assign it to relavant lisitng/excustion type (i.e. A001) in listing/exclusion procedure customizing:
SPRO -> Sales and Distribution -> Basic Functions -> Listing/Exclusion -> Procedures for maintaining listing/exclusion
Then if the requirement is not fulfilled, the listing will not be taken into account.
Regards,
Marcin
2012 Jan 17 6:31 AM
Thanks Marcin,
I get something like i have to create a routine in VOFM and the said path.
And in side that i have to write the logic .But if i want to exclude the list of orders that i have fetched in my Ztable, what type of logic i should write to skip to check.
Can you please help me out on this , like what variables i have to consider to skip and all.If u have any sample examples with you.???
Regards
Rajendra
2012 Jan 17 6:45 AM
Hi Rajendra,
Just go through the standard routines and you will get an idea.
Regards,
Madhu.
2012 Jan 17 7:15 AM
Do u guys have any routine wriiten for this as example to see which variables needs to be used and which variables to set , to skip the check.????
I may be asking easy question but i really dont know
Rajendra
2012 Jan 18 6:56 AM
Any reply from anybody ????Waiting for a sample example routine
2012 Jan 18 7:43 AM
Hi,
You have available structure KOMKG with sales order header fields and KOMPG structure with sales order item fields.
You control if the requirement is fullfilled setting the sy-subrc field:
- sy-subrc = 0 -> requirement fullfiled (listing/exclusion will be determined using lisitng/exclusion type the requirement is assigned to in the lisiting/execusion procedure)
- sy-subrc = 4 -> requirement not fullfiled
Sample code:
SY-SUBRC = 4.
*--check the exclusion only for sales org DE01 and sales order type ZOR
IF KOMKG-AUART EQ 'DE01' AND
KOMKG-VKORG EQ 'ZOR'.
SY-SUBRC = 0.
ENDIFIn KOBEV part you can use only KOMKG structure or just set sy-subrc = 0 if you're not able to check you condition based on header fields, in the KOBED part you can use both header and item structures.
Regards,
Marcin
2012 Jan 18 7:59 AM
Thanks Marcin,
AS per you Example, if i am not wrong , if i do not want to carry the material listing check . I should code like this ??
SY-SUBRC = 0.""Material listing Check will be carried out as sy-subrc = 0.
IF KOMKG-AUART EQ 'DE01' "Check order type is DE01
SY-SUBRC = 4. "If type is DE01,then do nt carry out listing check , so make SY-SUBRC = 4.
ENDIF.
Am i correct ???
SY-SUBRC = 0 .
Check will be carried out as normal.
Sy-SUBRC = 4.
Material listing willl not be carried out
???
Thanks ..
2012 Jan 18 8:01 AM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |