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

Report

Former Member
0 Likes
676

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?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
638

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

5 REPLIES 5
Read only

Former Member
0 Likes
638

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.

Read only

Former Member
0 Likes
638

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

Read only

Former Member
0 Likes
639

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

Read only

Former Member
0 Likes
638

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.

Read only

Former Member
0 Likes
638

experts, any other suggestions or sample code?