cancel
Showing results for 
Search instead for 
Did you mean: 

Script

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

thanks for your replay

Former Member
0 Kudos

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

Former Member
0 Kudos

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

former_member188005
Contributor
0 Kudos

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..

former_member609120
Contributor
0 Kudos

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