Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Function or BAPI check in production order

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

Tags:
Not what you were looking for? View more on this topic or Ask a question