cancel
Showing results for 
Search instead for 
Did you mean: 

Function or BAPI check in production order

Former Member
0 Kudos

Hi Experts

I want to add a routine checks for the existence of a production order program , to be modify with the code as follows

required condition are

Inspect each item on the sales order

if (and only if) there is atleast one item with category of 'ZTAC' eg then check for a production order, otherwise process the order in usual manner

TABLES : VBAP (from vbap can select vbeln )

AFPO (from ORDER NO)

In visual basic it is

FUNCTION

PROD_ORD_REQUIRED

FOR EACH ITEM ON SALES_ORDER_ITEMS_LITS

IF ITEM_CATEGORY = 'ZTAC' THEN

RETURN TRUE

NEXT

ENDFUNCTION

Any clue how can we write this code in SAP ABAP.

Regards

Piroz

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Thread close thanks

Piroz