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

IDOC_STATUS STRUCTURE BDIDOCSTAT

Former Member
0 Likes
1,015

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 ...

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
736

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

3 REPLIES 3
Read only

Former Member
0 Likes
736

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.

Read only

Former Member
0 Likes
737

I need to create a custom message and use how to create the message so that I can give message number

Read only

0 Likes
736

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.