Hi gurus / experts,
I am a beginner for Smartforms. I have created a SAP SCRIPT to join Four tables (MSEG, MAKT, MARD & MKPF) and Driver program to execute this SAP Script.
Now I want to use same concept in SMART FORM. Will anyone tell me step by step procedure to join four tables in smartform creation of a driver program for it...
My SAP Script select statement is:
parameters: PLANT like MSEG-WERKS obligatory.
parameters: DOCUMENT like MSEG-MBLNR obligatory.
parameters: YEAR like MSEG-GJAHR obligatory.
select MSEGZEILE MSEGMATNR MAKTMAKTX MSEGCHARG MSEGMENGE MSEGMEINS MSEG~EBELN
MSEGLIFNR MSEGLGORT MSEGSGTXT MARDLGPBE LFA1NAME1 MKPFBLDAT MKPF~BUDAT into
corresponding fields of table itab FROM MSEG
inner join MAKT on MSEGMATNR = MAKTMATNR
INNER JOIN MARD ON MSEGWERKS = MARDWERKS AND MSEGLGORT = MARDLGORT and MSEGMATNR = MARDMATNR
INNER JOIN LFA1 ON MSEGLIFNR = LFA1LIFNR
INNER JOIN MKPF ON MSEGMBLNR = MKPFMBLNR and MSEGGJAHR = MKPFMJAHR
where MSEGWERKS = PLANT and MSEGMBLNR = DOCUMENT and MSEGGJAHR = YEAR order by MSEGZEILE.
With thanks & Regards,
DSC