Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

display selection screen before smartforms which is called through vf02..........

Former Member
0 Likes
1,733

Hi,
  i have created a smartforms  and driver program. i used tcode VF02 to calling this smarforms
  everything is going fine.
  But i want a selection screen before display the smartforms . but how it is possible through tcode vf02?

Hi,
  i have created a smartforms  and driver program. i used tcode VF02 to calling this smarforms
  everything is going fine.
  But i want a selection screen before display the smartforms . but how it is possible through tcode vf02?

15 REPLIES 15
Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
1,690

What do you want in selection screen? you can create a dialog box in your driver program with the fields you want but it can be an issue when output will be triggered in background.

Read only

0 Likes
1,690

hi nabheet,

I want radibutton before display the smarform....in radio button their is yes and no option for pernr field ...pernr field will be display in smartforms according to the radio butto....

thanks

Read only

0 Likes
1,690

Call this function module it will automatically create radio button

K_KKB_POPUP_RADIO2

Please be careful when it is run in background. Ask you fucntional when output is issue in background what value should be considered. and then you can put a check before calling this FM if foreground then call else set the default value

Read only

0 Likes
1,690

where I call this function module in forms or program?

Read only

0 Likes
1,690

In your driver program sub routine ENTRY_NEU may be

Read only

0 Likes
1,690

ok thanks

Read only

Former Member
0 Likes
1,690

You can call a screen as popup for your requirement..

CALL SCREEN dynnr
            [STARTING AT col1 lin1
            [ENDING   AT col2 lin2]].

However, think of the situation if this output type is triggered via background jobs..

Read only

Former Member
0 Likes
1,690

CALL FUNCTION 'K_KKB_POPUP_RADIO3'

  EXPORTING

    I_TITLE         = 'radio'

    I_TEXT1         = 'pernr'

    I_TEXT2         = 'role'

    I_TEXT3         = 'role type'

    I_DEFAULT       =  'pernr'

IMPORTING

   I_RESULT        = res

EXCEPTIONS

   CANCEL          = 1

   OTHERS          = 2

          .

IF SY-SUBRC <> 0.

* Implement suitable error handling here

ENDIF.





how I write condition for each radio button...?
 

Read only

0 Likes
1,690

conditon means?

Read only

0 Likes
1,690

If RES value is '1' means first option is chosen so on till 3

Read only

Former Member
0 Likes
1,690

condition means if pernr radio button is selected then pernr field will display in  layout if radio button

not selected den it not diaply in layout

Read only

0 Likes
1,690

Hi,

As per Nabheet said you do your coding as below

DATA res TYPE c.


CALL FUNCTION 'K_KKB_POPUP_RADIO3'
   EXPORTING
     i_title   = 'radio'
     i_text1   = 'pernr'
     i_text2   = 'role'
     i_text3   = 'role type'
     i_default = 'pernr'
   IMPORTING
     i_result  = res
   EXCEPTIONS
     cancel    = 1
     OTHERS    = 2.

IF sy-subrc <> 0.
* Implement suitable error handling here
ENDIF.

IF res IS NOT INITIAL..       
   "Then here call your smartform function module by passing Res field.

     after that in the smartform maintain the condition for that text if res = '1' then only it should   display in the CONDITIONS tab.

ENDIF

Regards

Mani

Read only

0 Likes
1,690

Hi,

What is the criteria to Select PERNR field yes or no in the radio button. I mean how a user will decided to the PERNR is required in the smartform or not? The same thing you can write the logic in the driver program rather than doing with radio buttons. Please specify the reason.

Thanks,

Kiran.

Read only

FredericGirod
Active Contributor
0 Likes
1,690

Hi,

maybe use the VF31 instead and modify the partner role.

regards

Fred

Read only

0 Likes
1,690

Hi fred,

in vf31 how to modify partner  role?