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

at new problem...help!

hi experts,

in my code, i have to create one inbound delivery for PO's with the same vendor and container. how will i do this? i already have the code for the inbound delivery.

but i don't know how to do the condition on this. i tried at new command but it doesn't work because the field is replaced with *. what will be an alternative for this?

please help me on this and give me suggestions about this.

thanks so much.:-)

-march-

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2007 at 07:22 PM

    You can write like :

    declare one work area like itab ( wa_itab)

    loop at itab.

    move itab to wa_itab.

    use wa-itab ( here you will not get any *)

    endloop.

    Check the sample program :

    REPORT ZTEST_IEVENTS no standard page heading

    line-count 40(2).

    tables : vbap.

    data : begin of i_vbap occurs 0,

    vbeln like vbap-vbeln,

    posnr like vbap-posnr,

    matnr like vbap-matnr,

    kwmeng like vbap-kwmeng,

    netpr like vbap-netpr,

    end of i_vbap.

    data wa_vbap like line of i_vbap.

    data v_flag type c.

    select-options s_vbeln for vbap-vbeln obligatory.

    start-of-selection.

    select vbeln

    posnr

    matnr

    kwmeng

    netpr from vbap

    into table i_vbap

    where vbeln in s_vbeln.

    sort i_vbap by vbeln posnr.

    end-of-selection.

    loop at i_vbap.

    move i_vbap to wa_vbap.

    at first.

    write:/2 'Order #',15 'Item #',28 'Material #',50 'Qty', 70 'Net value'.

    skip 1.

    endat.

    at new vbeln.

    write:/2 wa_vbap-vbeln,15 wa_vbap-posnr,28 wa_vbap-matnr,

    47 wa_vbap-kwmeng,65 wa_vbap-netpr.

    v_flag = 'X'.

    endat.

    if v_flag ne 'X'.

    write:/15 wa_vbap-posnr,28 wa_vbap-matnr,

    47 wa_vbap-kwmeng,65 wa_vbap-netpr.

    endif.

    at end of vbeln.

    sum.

    skip 1.

    write:/5 'Sub totals', 47 i_vbap-kwmeng,65 i_vbap-netpr.

    skip 1.

    endat.

    at last .

    skip 1.

    sum.

    write:/5 'Grand Totals',47 i_vbap-kwmeng,65 i_vbap-netpr.

    skip 1.

    write:/ 'end of page', 'Footer'.

    endat.

    clear v_flag.

    endloop.

    Thanks

    Seshu

    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.