Skip to Content
avatar image
Former Member

Script

Hi experts,

I have to develope the Commercial Invoice for my client.

The format of the commercial invoice for US and the format of the Commercial Invoice for IRAN is completely different.so I developed the another script to print IRAN Invoice .So how to configure these two Scripts(forms) to print program?.

if I print US invoice then it will trigger form for US and if I print IRAN Invoice then it will trigger form for IRAN using same print print program so how to configure this?

Thanks in advance.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Jul 17, 2008 at 05:55 AM

    If there is some field which differentiates the invoice as US or IRAN..e.g Country

    You can use the same print program, add code similar to this

    If condition A

    Call Function 'OPEN_FORM'

    formname = 'FORM_US'.

    else.

    If condition B

    Call Function 'OPEN_FORM'

    formname = 'FORM_IRAN'.

    Endif.

    Incase there is no differentiation factor which is very unlikely, make a copy of the print program for IRAN.

    In Print Program 1 call US Form

    In Print Program 2 call IRAN Form

    Add comment
    10|10000 characters needed characters exceeded

  • Jul 17, 2008 at 03:40 PM

    Jagadeesh,

    You have to create 2 output types for using the 2 layouts.

    For example:

    If currently u r using ZRD for printing the US invoice then copy the ZRD to ZRR.

    For ZRD assign US layout and for ZRR assign IRAN layout.

    When u use copy function for creating new output type the print program is the same and we need not worry about that.

    As creating the output type is the responsibilty of the Functinal consultant therfore ask hm to do so...

    Regards..

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 18, 2008 at 08:19 AM

    Hi,

    In the print program use a variable to store the formnames.

    And just use the condition to check the sales organization whether US or IRAN then accordingly populate the formname into the variable.

    Then call the scripts.

    Regards,

    Ram

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 18, 2008 at 08:33 AM

    Hi,

    Create two different output types for US and IRAN, configure the same print program and two different forms in NACE.

    go to NACE -> Select Application V3 Billing -> Select outputtypes -> Select existing output type and copy the same into new output type .

    With that One program and two forms for two different output types.

    Take the help of fuctional guy to do the same easily.

    Your problem will solve.

    Regard,

    Netaji.B

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 29, 2008 at 12:53 PM

    thanks for your replay

    Add comment
    10|10000 characters needed characters exceeded