on 09-15-2008 2:47 PM
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
Thread close thanks
Piroz
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
106 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.