Skip to Content
avatar image
Former Member

Driver Program for Smartform with INPUT PARAMETER

Hi GURUS / EXPERTS,

I have created a smart form with input parameter at GLOBAL SETTING - Form Interface - Import Tab

DOCUMENT TYPE MSEG-MBLNR.

Defined the table u2013 on TABLE tab as u2013 ITAB LIKE MSEG & WA LIKE MSEG.

At MAIN WINDOW:

Added a PROGRAM LINE: On General Attribute mentioned INPUT PARAMETER - DOCUMENT & OUTPUT PARAMETER as ITAB. Written the select statement u2013

select msegmatnr msegcharg msegmenge msegmeins msegebeln mseglifnr maktmaktx into corresponding fields of table itab from mseg inner join makt on msegmatnr = maktmatnr where msegmblnr = document.

Added a Table and on DATA TAB mentioned the loop as

ITAB INTO WA

Added a TEXT and mentioned fields as

DOCUMENT: &WA-MBLNR&

MAT.COD: &WA-MATNR&

BATCH: &WA-CHARG&

QTY: &WA-MENGE& &WA-MEINS&

PO/VENDR: &WA-EBELN& / &WA-LIFNR&

CREATED A DRIVER PROGRAM as:

Now, I want to create a Driver Program for this smart form u2013 Where I want to put GRN No. as INPUT PARAMETER as u201CDOCUMENTu201D to call That SMART FORM.

What should I Do.?

Thanks in Advance.

DSC

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Dec 16, 2010 at 02:41 PM

    Call SMARTFORMS and display the form, in the menu : Environment, Function module name, copy this value

    In your driver program use this FM as a pattern to get the correct call parameters. Then, before this call, add a call to FM SSF_FUNCTION_MODULE_NAME which will return in a variable (fm_name) the name of the generated FM (will be diferrent in different systems) Replace the name of the previously ied FM called with this parameter.

    Ref : [Integrating the Smart Form into the Application|http://help.sap.com/saphelp_nw70/helpdata/en/1c/f40c5bddf311d3b574006094192fe3/frameset.htm]

    Regards,

    Raymond

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 16, 2010 at 12:09 PM

    Hello Gurus / Experts,

    Please help me.

    DSC

    Add comment
    10|10000 characters needed characters exceeded