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

Report

Hi experts,

i am developing one report...the expected output is given as follows:

customer | qty | amount |

customer is selected from likp and other data(quantity, amount) of customer is selected from lips.

so my question is that how do i do that??

ne sample code?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 02, 2007 at 02:23 PM

    hi,

    you use<b> SY-VLINE</b> system variable for vertical line while creating list.

    <b>follow this sample code.</b>

    LOOP AT ITAB.
    WRITE:/  itab-kunnr,
                  sy-vline,
                  itab-<quant>,
                  sy-vline,
                  itab-<currency>,
                  sy-vline.
    ENDLOOP.

    follow this ink for more information.

    http://help.sap.com/saphelp_nw04/helpdata/en/9f/dba1ae35c111d1829f0000e829fbfe/frameset.htm

    http://help.sap.com/saphelp_nw04/helpdata/en/9f/dba1ae35c111d1829f0000e829fbfe/frameset.htm

    http://help.sap.com/saphelp_nw04/helpdata/en/9f/dba1ae35c111d1829f0000e829fbfe/frameset.htm

    regards,

    Ashok Reddy

    Message was edited by:

    Ashok Reddy

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 03, 2007 at 04:35 AM

    experts, any other suggestions or sample code?

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 02, 2007 at 02:03 PM
    SELECT KUNNR NTGEW LFIMG
    INTO T_DATA
    FROM ( LIKP INNER JOIN LIPS
    ON LIKP~VBELN EQ LIPS~LIPS )
    WHERE..."Do you parameters filter...
    
    LOOP AT T_DATA ASSIGNING <DATA>.
    WRITE:/ <DATA>-KUNNR, <DATA>-NTGEW, <DATA>-LFIMG.
    ENDLOOP.
    

    Greetings,

    Blag.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 02, 2007 at 02:08 PM

    Hello Saurabh,

    For this you have to create an internal table like this...

    data: begin of itab occursw 0,

    customer like likp-customer,

    qty like lips-qty,

    amount like lips-amount,

    end of itab.

    after this write a select query to populate the above internal table using innerjoin.

    select likpcustomer lipsqty lips~amount

    into corresponding fields of table itab

    from ( likp

    inner join lips on

    likpcustomer = lipscustomer ).

    loop at itab.

    write: / itab-customer, itab-qty, itab-amount.

    endloop.

    Note: USE PROPER FIELD NAMES FOR customer, qty and amount.

    reward points if helpful.

    Regards

    --

    Sasidhar Reddy Matli.

    Message was edited by:

    Sasidhar Reddy Matli

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 02, 2007 at 02:27 PM

    select vbeln kunnr from likp into table i_likp.

    Select amt qty from lips into table i_lips

    for all entries in i_likp

    where vbeln = i_likp-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.