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

Smartform Query about passing a value from print prog to layout

Smartform Gurus

I have one window for printing "Invoice No" and "Invoice Date " . How do i pass these values plz . tell me ?

I will definitely give points whoever attempts plz

Thnx

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Feb 08, 2005 at 02:59 PM

    Hi,

    relevant data is read by program RLB_INVOICE and transferred to smartform via complex structure lbbil_invoice. So number and date are taken from VBRK (VBELN and ERDAT or something nearby).

    Your problem seems to be output customizing. Define in SPRO message determination for a message type and create a message condition (e.g. with transaction NACE). There is also definition of message, output program and smartform.

    Regards,

    Christian

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 09, 2005 at 04:16 AM

    You need to mention some more information:

    a) Is it a custom print program ?

    b) Is it a custom smartform ?

    If answer to both is yes, then

    a) First you need to create your parameters in your custom SMARTFORM in FORM Interface

    b) Call <b>SSF_FUNCTION_MODULE_NAME</b> and pass your form routine, it returns the name of the function module

    c) Call the returned function module and pass the parameters that you want to display in SMARTFORM ?

    You should refer http://help.sap.com for more information about SMARTFORMS. It is very well explained in there.

    Also search for Message Output in http://help.sap.com

    Regards,

    Subramanian V.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 09, 2005 at 08:36 AM

    Hi!

    You can't run print programs - they are just a group of routines. The routine 'entry' will be called by output determination, so you (or someone else) will have to do the output customizing for billing documents.

    To get a quick result, try following report:

    TABLES: nast.
    DATA: return_code TYPE syst-subrc,
          us_screen  TYPE xflag.
    
    PARAMETERS: p_vbeln LIKE vbrk-vbeln.
    
    INITIALIZATION.
      p_vbeln = '0090115726'.  "any billing doc. number
    
    START-OF-SELECTION.
    
      nast-objky = p_vbeln.
      nast-parnr = '0002010633'.  "use VBRK-KUNAG
      nast-kappl = 'V3'.
      nast-spras = 'E'.
      nast-parvw = 'RE'.
      nast-kschl = 'RD00'.        "message type
    
      PERFORM entry(RLB_INVOICE)
                  USING
                     return_code
                     us_screen.
    

    Have a look in table NAST, with KAPPL = 'V3' to get some example values! In field OBJKY you will find invoice numbers, which are input param of transaction VF03.

    To create new output message, you should follow the steps in SPRO->Sales and Distribution->Basic Functions->Output Control->Output Determination->Output Determination Using the Condition Technique->Maintain Output Determination for Billing Documents

    You can skip Maintain Condition Tables, but under Maintain Output Types your own message name (KSCHL in report above) has to be defined; in other lines assignments have to be done - follow the help.

    Alternatively you might change existence output message and just assign your print program in Maintain Output Types->Processing routines.

    'Running' the program can be done with transaction VF03, entry screen, menue: billing document->Issue output to->Screen. Select your message type and printer (LOCL).

    Regards,

    Christian

    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.