‎2006 Jun 16 5:50 AM
Hi,
I want to add one field in the output of the script please let me know the step by step procedure.
regards,
vijay
‎2006 Jun 16 5:53 AM
u can do that by 2 way...
<b>1) using perform..</b>:PERFORM get_date IN PROGRAM zreport
/:USING &SALESORDER&
/:CHANGING &S_DATE&
/:ENDPERFORM
Now you can print S_DATE.
Write this code in the new ABAP program would be
REPORT zreport.
FORM get_date TABLES in_tab STRUCTURE ITCSY
out_tab STRUCTURE ITCSY .
READ TABLE in_tab INDEX 1.
SELECT some_date FROM ztab
WHERE salesorder = in_tab-value.
IF sy-subrc EQ 0.
READ TABLE out-tab INDEX 1.
MOVE ztab-somedate TO out_tab-value
MODIFY out_tab INDEX 1.
ENDIF.
ENDFORM.
<b>2)use variable</b>...
1st select the value in driver programm which u want to print in sap script .
than in sap script in which window u want to display it go there.
and rite ur variable value like &var&
‎2006 Jun 16 5:55 AM
‎2006 Jun 16 5:56 AM
Hi Vijay,
Can you make your requirement clearer...? If you are new to SAPScripts, please refer these documents...
http://www.esnips.com/doc/cb7e39b4-3161-437f-bfc6-21e6a50e1b39/sscript.pdf
http://www.esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf
symbols in scripts
-
http://www.esnips.com/doc/fced4d36-ba52-4df9-ab35-b3d194830bbf/symbols-in-scripts.pdf
script command
-
http://www.esnips.com/doc/1e487f0c-8009-4ae1-9f9c-c07bd953dbfa/script-command.pdf
totals using scripts.
-
totals using scripts.
-
Regards,
SP.
‎2006 Jun 16 6:00 AM
Hi,
You can do this by writing the code in the form....
PERFORM <P1> IN PROGRAM <ztest>
USING &input1&
CHANGING &input2&
ENDPERFORM
You need to get the value for input1 from the driver program.
Form P1....
Endform....
Regards,
Ram Mohan
‎2006 Jun 16 6:08 AM
Please let me know where i have to write the 'perform' in the form.
‎2006 Jun 16 6:43 AM
HI,
I want to add extra fields for VE01 transaction. This transaction data is coming from script.
In print program and form what modifications i have to do for adding the fields.
Regards,
vijay
‎2006 Jun 16 7:04 AM