‎2007 Jun 19 3:26 PM
hi friends,
could you plz tell me what can i do after customizing the copied sapscript?
thanks in advance
‎2007 Jun 19 3:30 PM
Hi,
you need to execute the NACE transaction and link the output type with sapscript format, in this case is the same with smartform,
Regards
DLC
‎2007 Jun 19 3:31 PM
Hi
Suppose if ur modifying existing script then u need to assign ur form into the
standard print program using NACE transaction..
If u added some data dictionary fields then u should create a include program for passing data from data dictionary to script.
Use perform for this scenario using ITCSY structure.
For eg: if you have a subroutine named ADD_INCOME in a program ZSHAIL_BASIC, you can call the subroutine in SAPScript as follows:
/: PERFORM ADD_INCOME IN PROGRAM ZSHAIL_BASIC
/: USING &var1&
/: CHANGING &var2&
/: ENDPERFORM.
Here the input parameter to the subroutine is var1 and the value returned by the subroutine is var2.
In the program ZSHAIL_BASIC, you have to call the subroutine as
FORM ADD_INCOME TABLES IN_TAB STRUCTURE ITCSY OUT_TAB STRUCTURE ITCSY.
ENDFORM.
IN_TAB is a structure of type ITCSY,which has 2 components, NAME and value.
So in the program, var1(which is sent from SAPScript) , will be stored as IN_TAB-NAME and its value will be in IN_TAB-VALUE. You can utilise the IN_TAB-VALUE and after performing the required operations, the return value should be assigned to table OUT_TAB.
This value can thus be obtained in var2 specified in SAPScript.
Reward me if its useful.
Regards
Ravi
‎2007 Jun 19 3:35 PM
HI,
We need to configure the SAPSCRIPT in the NACE transaction code, there select the Application type then presss the processing routines then Give the Output type then press the Form entries then give the Form name and the Driver program name
Regards
Sudheer
‎2007 Jun 19 3:45 PM
hi,
follow these steps.
1) execute NACE transaction code.
2) select APPLICATION ( ex purchase order )
3) select OUTPUT type (ex neu)
4) select PROCESSING ROUTINEES
using processing routine we can assign customized script form to it's print
program.
5) select EDIT
6) here assign your customized form to related print program.
regards,
Ashokreddy