cancel
Showing results for 
Search instead for 
Did you mean: 

selection window

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

hh

Former Member
0 Kudos

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.