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


hi experts

here i am have some problem with the development. i am not getting the desired out put.plse help me how to fix this.

the logic developed by me is :

SORT i_final1 BY matnr atwrt.

WRITE: /05 text-001,

10 sy-datum,

/ ,

/ .

DATA: v_maktx TYPE maktx,

v_idnrk TYPE idnrk,

v_ojtxp TYPE ojtxp,

v_ojtxb TYPE ojtxb,

v_atwrt TYPE atwrt,

v_bmein TYPE bmein,

v_emeng TYPE emeng,

v_bmeng TYPE bmeng,

v_mngko TYPE cs_e_mngko.

LOOP AT i_final1 INTO wa_final1.

v_matnr = wa_final1-matnr.

v_maktx = wa_final1-maktx.

v_idnrk = wa_final1-idnrk.

v_ojtxp = wa_final1-ojtxp.

v_ojtxb = wa_final1-ojtxb.

v_bmein = wa_final1-bmein.

v_emeng = wa_final1-emeng.

v_bmeng = wa_final1-bmeng.

v_mngko = wa_final1-mngko.

v_atwrt = wa_final1-atwrt.

AT NEW matnr.

WRITE: / ,

/05 text-002,

25 text-002,

/05 v_matnr,

25 text-003,

/25 v_maktx,

/ ,

/ ,

/05 text-004,

25 text-005,

75 text-009,

90 text-006,

110 text-009,

130 text-010,

/90 text-007,

110 text-008,

/ .


AT NEW atwrt.

WRITE: /05 v_atwrt,

25 v_ojtxp,

65 v_bmeng,

95 v_bmein,

100 v_emeng,

120 v_mngko.


AT END OF atwrt.


WRITE: /05 sy-uline(134),

/05 text-011,

65 v_bmeng,

100 v_emeng,

120 v_mngko,

/05 sy-uline(134),

/ .


CLEAR : wa_final1,












required out put:

date: sy-datum.

material: XXXXXX material description:XXXXXXXXX

pack comp quanti unit


metal iron 2 kg

steel 4 kg


total 6


wood teek 5 kg

with regards


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jan 28, 2008 at 02:29 PM

    can u send the total program . then i will give the sol of it.

    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.