2007 May 10 9:57 PM
I need to add a custom message for status 68
In IDOC_INPUT_ORDERS
IDOC_STATUS STRUCTURE BDIDOCSTAT.
In T100 I'm not able to add any new message how to add a custom message.
how to add a custom message number ...
2007 May 11 2:08 PM
I need to create a custom message and use how to create the message so that I can give message number
I need to create a custom message and use how to create the message so that I can give message number
2007 May 11 9:19 AM
Hi,
Try with this.
sy-msgty = 'S' .
sy-msgno = 120.
sy-msgv1 = <b>'Idoc With Invoice -& is Successfully Posted'(076)</b>.
REPLACE '&' WITH w_belnr INTO sy-msgv1.
CLEAR: sy-msgv2, sy-msgv3, sy-msgv4.
PERFORM add_status_to_idoc_status TABLES p_idoc_status
USING w_count
w_docnum
'68'.
form add_status_to_idoc_status tables p_idoc_status STRUCTURE
bdidocstat
USING p_idoc_data_segnum
p_idoc_data_docnum
p_status.
p_idoc_status-status = p_status.
p_idoc_status-docnum = p_idoc_data_docnum.
p_idoc_status-msgty = sy-msgty.
p_idoc_status-msgid = c_mess_id.
p_idoc_status-msgno = sy-msgno.
p_idoc_status-msgv1 = sy-msgv1.
p_idoc_status-msgv2 = sy-msgv2.
p_idoc_status-msgv3 = sy-msgv3.
p_idoc_status-msgv4 = sy-msgv4.
p_idoc_status-uname = sy-uname.
p_idoc_status-repid = sy-repid.
p_idoc_status-segnum = p_idoc_data_segnum. "segment# causing error
p_idoc_status-segfld = w_field_name.
p_idoc_status-repid = sy-repid. "program name
p_idoc_status-routid = sy-cprog. "program subroutine
APPEND p_idoc_status.
CLEAR: w_field_name,
sy-msgty,
sy-msgno,
sy-msgv1,
sy-msgv2,
sy-msgv3,
sy-msgv4.
*
endform. " add_status_to_idoc_status
This will add an addition message to your status.
Bolded thing can be your addition message.
w_belnr is my program field, you can place this or you can delete that line.
Thanks
Manju.
2007 May 11 2:08 PM
I need to create a custom message and use how to create the message so that I can give message number
2007 May 11 2:41 PM
Hi ,
Goto SE91.Give Z-message class.
Cretae. Enter short description in attributes. In message tab. enter your message, And give that number in your Program / FM.
Before that In header of your report Give Message class name.
Thanks
Manju,
Helpful Reward points.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |