on 05-02-2007 8:18 AM
hi all
i have a requirement...i need to give three values in the screen 10,20, & 30...please giv d code and also tell me and giv d code like if the value is 10 in the abap editor i need to call a window1 in the script and if value is 20 then i need to select the window 2 and if its 30 then i need to select window3.....please tell me or send me d code if possible,,,,
with rgards
vijay
hh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Vijay.
I think you would like to print one of three sections in a SAPscript-page depending on the value of a variable in the printing program.
You have to define three elements in your main page MAIN of the SAPscript like
/E SECTION1
* This is the text of section 1
/E SECTION2
* This is the text of section 2
...
Assume your variable is 'depend', the code in the ABAP program would look like
CASE depend.
WHEN 10.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
element = 'SECTION1'
window = 'MAIN'
EXCEPTIONS
...
WHEN 20.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
element = 'SECTION2'
window = 'MAIN'
...
and so on.
Hope that is helpful and you can solve your problem.
Timo.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.