2013 Oct 25 7:16 AM
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?
2013 Oct 25 7:21 AM
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.
2013 Oct 25 7:43 AM
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
2013 Oct 25 7:53 AM
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
2013 Oct 25 7:58 AM
2013 Oct 25 8:15 AM
2013 Oct 25 8:43 AM
2013 Oct 25 7:23 AM
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..
2013 Oct 25 10:00 AM
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...?
2013 Oct 25 10:05 AM
2013 Oct 25 10:05 AM
If RES value is '1' means first option is chosen so on till 3
2013 Oct 25 11:07 AM
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
2013 Oct 25 11:22 AM
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
2013 Oct 25 11:44 AM
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.
2013 Oct 25 11:56 AM
Hi,
maybe use the VF31 instead and modify the partner role.
regards
Fred
2013 Oct 25 12:20 PM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |