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

calling smartform for PO from ME22n

Hi all,

I had created a smartform for PO and print program for the same.

My requirment is that I want to call the PO smartform from ME22n and all the details ie PO number,supplying plant,doc date, PO qty etc will be displayed on the smartform but I am not getting that.

I had gone to Tcode NACE and in the processing routine of output type ie NEU I had entered the Form name and printprogram.But I am not aware of form routine whether I ve to write separate Form Routine for the driver program.

Pls tell me the necessity of form routine here.

Pls experts its an urgent requirement and help me out regarding the same.

I will reward points for the same.

With regards,

Abir.

Add comment
10|10000 characters needed characters exceeded

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Aug 03, 2006 at 07:11 AM

    The routine name is the the soubroutine in your print program.

    For eg in Script:

    If your print prog starts as

    FORM entry USING return_code us_screen.

    CLEAR retcode.

    xscreen = us_screen.

    PERFORM processing.

    IF retcode NE 0.

    return_code = 1.

    ELSE.

    return_code = 0.

    ENDIF.

    ENDFORM.

    Then "entry" will be the routine you are looking out for.

    Message was edited by: vinodh balasubramaniam

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 03, 2006 at 07:14 AM

    Hi,

    SMARTFORMS have inbuilit subroutines in it, you dont have to assign the subroutine in NACE transaction, if you have assigned the 'form name' and the 'driver program' it is enough, in the case of scripts, if there is any subroutine, then this will be populated with that,

    Rgds,

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 03, 2006 at 07:22 AM

    Hi Abir,

    Enter your Smartform form under the smartform column, not under forms(only for Sapscripts) and remove the standard form MEDRUCK, which was already assigned, this would work fine, dont worry about the routines.

    Regards:-

    Santosh

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 03, 2006 at 10:04 AM

    Hi,

    Based upon the ouput type in tnapr you will find the routine name in the field field ronam. this is the starting point of the print program.

    exampe:

    print program: zsd_pritprogam

    form Routine: entry

    smarform is : zsmartform

    so 'entry' is a form in the print program(zsd_pritprogam).

    form where your control to print starts.

    Hope this helps.

    thanks,

    jaffer

    Message was edited by: Jaffer Vali Shaik

    Add comment
    10|10000 characters needed characters exceeded