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

how to get delivery number in message type I

hi,

i created a screen with some input and output fields ,

if i entered sales order number i will get item details of the sales order ,

i kept a button in the screen if i press that button delivery number shd displa with message "your delivery number is **** " and number shd display...

plz can any 1 help me

thanx in advance...

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 07, 2009 at 08:19 AM

    Hi

    U can use the fm RV_ORDER_FLOW_INFORMATION in order to get the delivery of the sales order or to read the table VBFA

    Max

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 07, 2009 at 09:20 AM

    To get the Delivery number

    you can use VBFA table by filtering VBTYP_N field = J

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 07, 2009 at 09:30 AM

    Hi,

    Try the following,

    Say you get your delivery number in a variable v_delno (table VBFA), then where you are displaying the message

    message 'Your delivery number is &' with v_delno type 'I'.
    

    Output will replace & with the value contained in variable v_delno.

    Hope this helps.

    Regards,

    Sachin

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 07, 2009 at 09:44 AM

    You can write like:

    data:   v_str(100) type c.
    
    parameters: p_vbeln type vbak-vbeln.
    
    if not p_vbeln is initial.
    
    concatenate 'your delivery number is:' p_vbeln into v_str.
    
    message I000(ZAJ) WITH v_str.
    
    endif.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 07, 2009 at 10:49 AM

    Hi ,

    Use BAPI 'BAPISDORDER_GETDETAILEDLIST' to fetch sales order line item details and delivery number as well .

    Sales order line items structure Name is order_items_out

    Delivery Number structure is order_flows_out

    Pass sales order number in sales_documents structre and X in I_bapi_view .

    Thanks,

    CS REddy

    Edited by: CS REDDY on Sep 7, 2009 4:20 PM

    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.