on 08-11-2008 2:17 PM
Hi Friends,
I m working on script of purchase order , medruck and its driver program SAPFM06P. i had copied both of them and made zmedruck and zSAPFM06P. Now i wan to show some values in script that is not provided by drivr program. so please provide me suggestion
Hi,
Use Subroutines in ur SAPScript for the fields u want to data.
Ex:-
/:PERFORM GET_COMCODE IN PROGRAM ZM_RFQ_REJECTION
/:USING &EKKO-BUKRS&
/:USING &EKKO-SPRAS&
/:CHANGING &SADR-NAME1&
/:CHANGING &SADR-NAME2&
/:CHANGING &SADR-NAME3&
/:CHANGING &SADR-PSTLZ&
/:CHANGING &SADR-NAME4&
/:ENDPERFORM
U don't need to copy standard program if the standard program not giving u the values. Just creat a subroutine program.
Regards
Bala Krishna
Edited by: Bala Krishna on Aug 11, 2008 6:52 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks all
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
you can also write a normal perform in the program.
Put a select query for the values that you want for the particular tables and display those variables in the SAP script
as follows:
eg:
Select lifnr
name1
from table lfa1
into (v_lifnr,v_name1)
where <condition>.
endselect.
in SAP script:
&v_lifnr&
&v_name1&.
You will get the values displayed.
Thanks,
Sneha.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.