on 12-03-2011 4:06 AM
Dear All,
Good Morning,
My requirement is Change the PO SAP SCRIPT i need to Hard Code to PO based on Document type (EKKO-BSART) and
Purchasing Organization (EKKO-EKORG) and Plant (EKPO-WERKS).
Please advice me how to right the logic for perform.
how place on SCRIPT.
Regards,
Parshuram.
Hi Parshuram,
You can include a
PERFORM <name> IN PROGRAM <A FORM ROUTINE REPORT>
USING <FIELDS YOU WANT TO PASS TO THE FORM BASED ON YOUR REQUIREMENT>
CHANGING <IF YOU WANT ANY OUTPUT FROM YOUR FORM>
ENDPERFORM.
In SAP SCRIPT.
and in the form routine report you just need to write the code you want to based on the requirement.
FORM <NAME> TABLES <INPUT_TABLE> TYPE ITCSY <OUTPUT_TABLE> TYPE ITCSY.
INPUT TABLE contains USING parameters.
OUTPUT TABLE contains CHANGING parameters.
Hope this helps.
Regards,
-Sandeep
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks sir,
i have write subrutine program as per requirement it is working fine.
Now my problem is when i am passing variable value by using IF conditions it is not work there is 6 if conditions
this is my script code.
/: IF &V_BSART& EQ 'PA' OR &V_BSART& EQ 'PC' OR
/= &V_BSART& EQ 'PE' OR &V_BSART& EQ 'PF' OR
/= &V_BSART& EQ 'PD'
/: ELSEIF &V_EKORG& EQ '1501' OR
/= &V_EKORG& EQ '1504' OR &V_EKORG& EQ '150'
/: ELSEIF &V_WERKS& EQ '1511'
/= OR &V_WERKS& EQ '1541' OR &V_WERKS& '1531'
/= OR &V_WERKS& '1512'
above code is not working proper.
Please help on this.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.