02-05-2009 8:05 AM
Hi ,
In my Z-program , I used a BAPI to create a sales order.Now, my requirement is to display the sales document no. created in a pop-up box.
Iam using fn. module 'POPUP_TO_CONFIRM'.
How can I display the harD-coded value ( sales document no. in this case ) in a pop-up box?
Can anybody suggest correct way of doing it?
Thanks,
Shivaa.....
02-05-2009 9:17 AM
Hi Avinash, I agree that I have 2 use POPUP_TO_CONFIRM fn. module...
u directly harcoded '122334' in the text-question. Thats fine.
But, my requirement is when sales order '112233' is created , I have to display message as 'Sales order 112233 is created' in the popup box.
I sales order '223344' is created , I have to display message as 'Sales order 223344 is created' in the popup box.
How can I do this??
02-05-2009 8:07 AM
HI...
WHAT I SUGGEST YOU IS
there is used to be place holders when you give message.
use those place holder to pass the value you want to give from report
thank you
02-05-2009 8:17 AM
hi,
try this way....
Function module POPUP_TO_CONFIRM
Import parameters Value
TITLEBAR TEST
DIAGNOSE_OBJECT
TEXT_QUESTION SALES ORDER NUMBER 122344 " You can pass the you own data
TEXT_BUTTON_1 YES
ICON_BUTTON_1
TEXT_BUTTON_2 NO
ICON_BUTTON_2
DEFAULT_BUTTON 1
DISPLAY_CANCEL_BUTTON
USERDEFINED_F1_HELP
START_COLUMN 25
START_ROW 6
POPUP_TYPE
IV_QUICKINFO_BUTTON_1
IV_QUICKINFO_BUTTON_2
Export parameters Value
ANSWER 1
Tables Value
PARAMETER 1 Entry
Result: 1 Entry
02-05-2009 8:22 AM
Hi,
u can aslo use this
DATA: lv_title TYPE lvc_title.
DATA: lit_delfcat TYPE slis_t_fieldcat_alv.
DATA: lwa_fieldcat TYPE slis_fieldcat_alv.
DATA: lit_excluding TYPE slis_t_extab.
APPEND '&ETA' TO lit_excluding.
APPEND '&SC' TO lit_excluding.
APPEND '&SC+' TO lit_excluding.
APPEND '&OUP' TO lit_excluding.
APPEND '&ODN' TO lit_excluding.
APPEND '&ILT' TO lit_excluding.
APPEND '&OL0' TO lit_excluding.
APPEND '&CRB' TO lit_excluding.
APPEND '&CRL' TO lit_excluding.
APPEND '&CRR' TO lit_excluding.
APPEND '&CRE' TO lit_excluding.
APPEND '&ETA' TO lit_excluding.
APPEND '&ONT' TO lit_excluding.
APPEND '%SC' TO lit_excluding.
APPEND '%SC+' TO lit_excluding.
lv_title = 'Display Sales order'.
lwa_fieldcat-fieldname = 'VBELN'.
lwa_fieldcat-tabname = 'GIT_MSG'.
lwa_fieldcat-col_pos = 1.
lwa_fieldcat-seltext_m = 'Sales Order'.
APPEND lwa_fieldcat TO lit_delfcat.
CLEAR lwa_fieldcat.
CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
EXPORTING
i_title = lv_title
i_tabname = 'GIT_MSG'
it_fieldcat = lit_delfcat
it_excluding = lit_excluding
TABLES
t_outtab = git_msg
EXCEPTIONS
program_error = 1
OTHERS = 2.
the internal table git_msg will have the sales order number.
Regards,
Nagaraj
02-05-2009 8:23 AM
02-05-2009 9:17 AM
Hi Avinash, I agree that I have 2 use POPUP_TO_CONFIRM fn. module...
u directly harcoded '122334' in the text-question. Thats fine.
But, my requirement is when sales order '112233' is created , I have to display message as 'Sales order 112233 is created' in the popup box.
I sales order '223344' is created , I have to display message as 'Sales order 223344 is created' in the popup box.
How can I do this??
02-05-2009 9:22 AM
Hi Shiva,
Which is this field having the order no. ?
Just concatenate it
CONCATENATE 'sales order' WA_VBELN INTO WA_TEXT.
and use WA_TEXT.
Regards
02-05-2009 9:42 AM
Hi ,
You can try this alternative way to write sales document inside the pop-up.
AT LINE-SELECTION or AT USER-COMMAND.
WINDOW STARTING AT 20 30 ENDING AT 50 60.
write : / 'Sales Doc. No' , w_sale_doc .
Regards
Pinaki Mukherjee
02-05-2009 10:03 AM