Skip to Content
author's profile photo Former Member
Former Member

Message with text element

Hi all.

I want to display one warning message in the code bolow with the text element created .

text enetered in the text element 002- "carrier partmer function not found for delivery &i_xvttp_tab-vbeln ."

(will it enter the delivery no)

code :

DATA: BEGIN OF l_t_vlkpa OCCURS 0,

kunde LIKE vlkpa-kunde,

vbeln LIKE i_xvttp_tab-vbeln,

parvw LIKE vlkpa-parvw,

END OF l_t_vlkpa.

CONSTANTS c_pfunc TYPE char2 VALUE 'SP'.

IF i_xvttp_tab[] IS NOT INITIAL.

SELECT kunde vbeln parvw INTO TABLE l_t_vlkpa

FROM vlkpa

FOR ALL ENTRIES IN i_xvttp_tab

WHERE vbeln = i_xvttp_tab-vbeln AND

parvw = c_pfunc.

LOOP AT i_xvttp_tab.

READ TABLE l_t_vlkpa WITH KEY vbeln = i_xvttp_tab-vbeln.

IF sy-subrc = 0.

READ TABLE i_xvttk_tab WITH KEY tknum = i_xvttp_tab-tknum.

IF sy-subrc = 0.

i_xvttk_tab-tdlnr = l_t_vlkpa-kunde.

MODIFY i_xvttk_tab INDEX sy-tabix.

ENDIF.

ELSE.

*<b> message Text-002 TYPE 'W'.

Message W002.

*message I002.

  • MESSAGE 'Carrier partner function not found.' TYPE 'W'.</b>

(want to remove all this and just enter a warning message with text element showing the delivery number,)

ENDIF.

ENDLOOP.

ENDIF.

Answer will be rewarded.

Thanks

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Feb 01, 2007 at 07:01 AM

    message w000 with text-001 'i_xvttp_tab-vbeln'.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 01, 2007 at 07:03 AM

    Hi,

    In the text you need to write ''Carrier partner function not found &'

    In the Program , write this ....

    message w000 with text-001 'i_xvttp_tab-vbeln'.

    Regards

    Sudheer

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 01, 2007 at 07:04 AM

    Cod e like this

    message w000 with text-002 i_xvttp_tab-vbeln .

    Hope this solves ur problem.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 01, 2007 at 07:04 AM

    Hi

    It is not advisible to hard code the message.

    While transporting it gives error

    create a text element

    call the same in your message with the itab field and the message type

    Thanks

    Shiva

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 01, 2007 at 07:05 AM

    MESSAGE W002(XX) with TEXT-002. " Change XX to ur Message Class

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 01, 2007 at 07:11 AM

    Create a message in a message class using transaction SE91

    Say the message class is ZZ

    Create a message no 000 in it. Maintain the text as ''Carrier partner function not found &'

    In the Program , write this ....

    message w000(ZZ) with i_xvttp_tab-vbeln.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.