cancel
Showing results for 
Search instead for 
Did you mean: 

Output Error

Former Member
0 Kudos

Hi Technical consultants,

I have an issue when I am displaying my smartform.

The program has 2 radiobuttons & it will display a ALV in 1st radiobutton & smartform in 2nd radiobutton.

I need to check for the radiobutton option,I have done that at start-of-selection.But my Internal table is not populated by then.Please guide me as to what changes do I make so that my smartform gets printed with appropriate values.

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Try to do it as below:

1. Extract required details for a final internal table.

2. Based on the selection for output, execute respective process



start-of-selection.

   perform extract_data.

   if  not p_alv is initial.
      perform display_alv_output.
   else.
      perform print_output.
   endif.

Regards

Eswar

Former Member
0 Kudos

Thanks for the reply,I will have to try this option.

Will revert back if It works fine.

Answers (2)

Answers (2)

Former Member
0 Kudos

Thanks for all the replies,I have been able to solve the problem.

Former Member
0 Kudos

hi

as u told it will display a ALV in 1st radiobutton & smartform in 2nd radiobutton.

then for this just put a IF condition as :

IF R1 = 'X'.

// then write coding for display data in ALV/

ELSE.

// put FM for dispaly Out Put in SF .

ENDIF.

Note : Do all ur data selection coding and data manupulation with in Internal table before IF Condition.

reward if helpful.