on 11-27-2006 6:52 AM
Hi frnds,
i need the steps fo the following.
How to add a new field in SAPSCRIPT.
regards,
sanjay
Perform and Endperform is useful to call subroutine which is written in another ABAP Program.
If you want to display the value of one field which is not available in the standard Script program, then u can use this method.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I hope you need to print a new field in the output.
You need to find exact location where the value need to be printed.
Then before that you need write External subroutine to paopulate the vairable.
Then you need to use the vairable to print the data in the output.
Sample code:
this below code need to be written in SAP Scripts.
/: Peroform Z_GET_VALUE In PROGRAM ZTEST1
/: USING &VBAK-VBELN&
/: CHANGING &Z_VALUE&
The below code need to be written in the program ZTEST1.
Form Z_GET_VALUE using in_tab like ITCSY structure
out_tab LIKE ITSCY structure.
In_tab will have the Using parameters field name and its value.
Out_tab will have the changing parameters field name and its value.
so you need to write the code, to got the data based on the In_tab table dat.
and modify the out_tab table.
Rgds,
Hemanth
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
pls refer this sdn thread:
https://forums.sdn.sap.com/click.jspa?searchID=182760&messageID=1704522
we can write the custom code in the form
by using this perform statement.
Example
Suppose you have a Material Number. If you want to know the Material group for a perticular material and print that material group also.
use the following statement
Perform 'formname' in Program Programname(Z***) using Matnr changing MATKL(Material group )
Ennd perform.
after end perform u can use the MATKL for printing.
U\now create a subroutine pool progrm by using se38.
the Program name is 'Z******'
Form
read the material group by using the ITCSY structure
select the material group by using that material number
then update the ITCSY structure by using the material group.
Endform
thanks
Sekhar
Message was edited by:
Lakshmi Sekhar Reddy
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
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.