2007 May 17 7:47 AM
Hi i am doing an enhancement in which(transaction va01) when the user changes the pricing conditions in the condtions tab then the user needs to be prompted to select a reason for the change. this reason codes are already there in the ztable that i have created!! so this popup should come that displays my Ztable to the user so that he can select any one reason for the change.
can u tell me what function module i have to use to do this!
moreover the value selected from the popup should go nad get saved in the vbak table.
plss help me.
points promised.
2007 May 17 7:49 AM
2007 May 17 7:51 AM
Hi,
You will be required to create your own Z Function module to cater this requirement.
Take the guideline from standard SAP FM while creating your FM.
Regards,
Atish
2007 May 17 7:52 AM
Hi,
Example
CALL FUNCTION 'POPUP_WITH_TABLE_DISPLAY'
EXPORTING
endpos_col = 110
endpos_row = 16
startpos_col = 90
startpos_row = 1
titletext = text-001 <b> "test of the pop up window</b> IMPORTING
choise = g_v_tabix " index of the record selected by usser
TABLES
valuetab = l_t_valuetab " the Ztable to be displayed in the popup window
EXCEPTIONS
break_off = 1
OTHERS = 2.
Then u can use
READ TABLE l_t_valuetab INDEX g_v_tabix.
to get the selected record
---patil
2007 May 17 7:53 AM
Hi,
USE FM "POPUP_TO_DISPLAY_TEXT_LO"
Don't forget to reward points.
Regards,
SAiRam
2007 May 17 8:02 AM
You Should write the code under the form <b>USEREXIT_SAVE_DOCUMENT</b>
in the include MV45AFZZ.check the changes and then call the popup which ever is suitable for you in the above mentioned posts. and populate the corresponding vbak structure field. that solves your problem
Regards
Vijay
2007 May 17 8:05 AM
Hi,
Check the following FM:
Popup Related Function Modules:
POPUP_TO_DISPLAY_TEXT display 2 line text.
POPUP_TO_CONFIRM_STEP
POPUP_TO_CONFIRM_WITH_VALUE (with Back and Exit)
POPUP_TO_CONFIRM_LOSS_OF_DATA (with Cancel).
POPUP_TO_CONFIRM_WITH_MESSAGE
POPUP_TO_DECIDE
POPUP_TO_DECIDE_WITH_MESSAGE
Hope this helps.
Reward if helpful.
Regards,
Sipra