Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to avoid material listing Check

Former Member
0 Likes
1,897

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

1 ACCEPTED SOLUTION
Read only

marcin_milczynski
Contributor
1,589

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

8 REPLIES 8
Read only

marcin_milczynski
Contributor
1,590

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

Read only

0 Likes
1,589

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

Read only

0 Likes
1,589

Hi Rajendra,

Just go through the standard routines and you will get an idea.

Regards,

Madhu.

Read only

0 Likes
1,589

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

Read only

0 Likes
1,589

Any reply from anybody ????Waiting for a sample example routine

Read only

0 Likes
1,589

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.
  ENDIF

In 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

Read only

0 Likes
1,589

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 ..

Read only

0 Likes
1,589

Yes, you're correct in your examples.

Regards,

Marcin