2013 Jan 21 1:09 PM
Hello Guys,
I need to generate a PP report in which the input screen is as follows.
which is done, Now the out put screen will be like this
DATE | DAY | LINE | DUTY HRS | ||||||||||||||||||
1. Date and day
2. Line – Data can be derived in this column by
Please help me with some piece of code how to generate this kind of out put and how to fill that Line column by joining DB tables.
2013 Jan 21 1:26 PM
2013 Jan 21 3:04 PM
Write a select statement for that simplay like(according to ur info we have only one table )
So FYI..
Select matnr werks mdvo1 plnnr alnal verid
from mkal
into internal table <itab>
where matnr eq S_matnr
werks eq P-werks.
in <itab> u got different records just display on list report.
Regards
Mahesh
2013 Jan 21 3:07 PM
Up to LINE displaying is above code after that we have write the heading in those blocks.
I hope its Basic question May be Moderator will delete this thread .
Regards
Mahesh:
2013 Jan 21 3:11 PM
hello,
Your query could be as simple as
SELECT * FROM mkal into table it_mkal
WHERE matnr IN s_matnr AND
werks IN s_werks AND
verid IN s_verid AND
bdatu GE p_bdatu2 AND
mdv01 NE '' and
mksp EQ ''.
--> replace the * above with the fields that you need instead and declare the table it_mkal accordingly.
Here is a SCN thread which explains how to write SELECT query.
http://scn.sap.com/thread/564646
Thread for Production version info
http://scn.sap.com/thread/1294192
ALV report thread
http://scn.sap.com/thread/670393
http://www.erpgenie.com/sap/abap/code/abap28.htm
http://abaplovers.blogspot.com/2008/04/simple-sap-abap-alv-report.html
Also use the ALV functionality to display the result.
best regards,
swanand
2013 Jan 21 4:19 PM
Hello all,
Some what i got the point but need some more clarification. How exactly to pass the material and plant combination to get the production line, group, Group counter and prod. version and to list that in 3rd column, i.e under Line column,
plz help me out, i am in tensed.
2013 Jan 21 4:35 PM
You have fill the all items under single LINE col or separately ...
Don't write that type of words " plz help me out, i am in tensed."
Regards
Mahesh
2013 Jan 22 7:49 AM
Thnk u all,
N how to build the field catalog as per the below. this ll be the out put display
2013 Jan 22 5:35 PM
Hi Lora,
You may have to use classical report if you want to display the data as shown in the pic.
You may not be able to do so using ALV Grid. It is possible using ALV List display.
Please search for FM REUSE_ALV_LIST_DISPLAY.(though you may have to struggle to get the proper alignment)