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

smartform

Hi,

in transaction VA03,order no is entered we goto sales document tab >than

goto issue output tab we come to form configured in NACE, but in print

program how do we get this order entered here ,we actually get this value entered here in our form BY NAST table ,but how do we capture latest OBJKY field from NAST which is our ordered entered.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2007 at 12:39 PM

    NAST will capture all the details when you try to print. You have to write this code in your print program.

    DATA: lv_vbeln LIKE vbak-vbeln.

    lv_vbeln = nast-objky.

    Then you can fetch all the details of SO for that VBELN.

    Regards,

    Satish

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2007 at 12:44 PM

    Hi,

    When you print any document, then the program control goes to program <b>RSNAST00</b>, standard SAP program. This program fetches the Nast fields as well as your smart form name and other details. Then from this program conytrol is passed to your smartform and data is printed as per the layout and logic of your smartform.

    Hope this answers your question,

    Regards,

    Lalit Kabra

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      but if i include this program which has selection screen ...am creating routine which can be directly configured in NACE.

      SO this routine should have no selection screen.

      SO i want to capture values from NAST table (latest record) which is entered by user in va03 tcode

  • author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2007 at 12:49 PM

    > Hi,

    >

    > in transaction VA03,order no is entered we goto sales

    > document tab >than

    > goto issue output tab we come to form configured in

    > NACE, but in print

    > program how do we get this order entered here ,we

    > actually get this value entered here in our form BY

    > NAST table ,but how do we capture latest OBJKY field

    > from NAST which is our ordered entered.

    Include the following statement in the starting of the <b>Print Program</b>

    TABLES:

    NAST,

    TNAPR.

    You need to write any select query to capture the latest OBJKY field. Now, the NAST-OBJKY holds the value that you have entered in VA03.

    <b>TNAPR</b> holds the details of Program name, Form name, output type

    Message was edited by:

    Rajesh

    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.