Skip to Content

How to pass T code field to the Smartform


Hi,

The following is the requirement, where my input selection screen itself is a T code J1IIN (Excise Invoice).

In that T code, my input field is EXNUM. Now how to pass this EXNUM input field to my Smartfrom.

With Regards,

Sudhir.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Mar 26, 2015 at 06:45 AM

    Hi Sudhir,

    You can use the export parameter and pass the value from driver program to smartform.

    Else you can use the following

    1. SET/GET
    2. EXPORT/IMPORT

    Regards

    Rajkumar Narasimman

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Sudhir,

      Hope the following code should work.

      doc_no = nast-objky+0(10) .

      In debugger, find the variable which holds the document number.

      Else fetch the value using dynamically using field symbol concept as shown below.

      "Data Declaration

      field-symbol <f_doc> like j_1iexcnum.

      "Get the Werks value using Program and Variable name

      assign ('(program_name)varible_name') to <f_doc>.

      IF <f_doc> IS ASSIGNED.

      doc_no = <f_doc>.

      ENDIF.

      Regards

      Rajkumar Narasimman

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.