Skip to Content
avatar image
Former Member

calling p2 (progaram 2 ) from P1 (Program 1)????

hi all,

I have a requirement like the below,,,.how can i do that ,, plz help me

Program 1.

radio button1-Parameter 1

radio button2-Parameter 2,

if r1 is selected i need call a program 1 and i need pass the parameter 1

if r2 is selected i need call a program 2 and i need pass the parameter 2..,

How will i do the above,,

Please help me,,

Thanks.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Aug 18, 2007 at 02:44 AM

    Hi,

    Say if you radio button variables are p_rad1 and p_rad2

    Start-of-selection.
      if p_rad1 eq 'X'.
         submit <your program name> with <variable > = p_vari1  and return.
      else.
        submit <your program name> with <variable > = p_vari2 and return.
      endif.
    
    

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 18, 2007 at 02:47 AM

    Hello San,

    You have program1 and this program contains selection-screen contains like radio button

    if p1 = 'X'.

    ur current program.

    else.

    include program2.

    endif.

    Thanks

    Seshu

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 18, 2007 at 02:53 AM

    Hi,

    If you want to call transaction code then

    Start-of-selection.
      if p_rad1 eq 'X'.
       set parameter id 'LEN' field v_par1.
       call transaction 'LS33' and skip first screen.
      else.
        set parameter id 'MAT' field v_par2.
        call transaction 'VA03' skip first screen.
      endif.
    

    aRs

    Add comment
    10|10000 characters needed characters exceeded