Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How can I change assignment of my smart form to form name?

MarcinPciak
Active Contributor
0 Kudos

Hi,

I created HRForm, assigned a form class to it (PAYSLIP) and would like to attach different smartform to it instead of the one that was generated automatically. Can I do so, if yes how?

Thx for replies in advance.

1 ACCEPTED SOLUTION

former_member188685
Active Contributor
0 Kudos

Are you Triggering the Smartform from the Output type. if it is so then You can change it in NACE.

Please give complete details...

Regards

Vijay

10 REPLIES 10

Former Member
0 Kudos

Hi,

You can do it in nace transaction.

Regards,

sasi

former_member188685
Active Contributor
0 Kudos

Are you Triggering the Smartform from the Output type. if it is so then You can change it in NACE.

Please give complete details...

Regards

Vijay

0 Kudos

Actually I dont know how it is triggered. I created a form using HRforms transaction named ZTEST, then I was provided a screen when I had to choose which table of my form class (Payslip in my case) I wanna use. After that by selecting layout button I was moved to Form Builder and my smart form was generated automatically with name ZPYXXFO_ZTEST.

I could create my smart form directly from smartforms transaction but I would lose change to run it for user given data (using hrforms transaction and run it for provided data).

My problem is that I want my different smartform i.e. ZDIFF to swap with ZPYXXFO_ZTEST so I can run it from hrforms.

I am new to smartforms so please be tolerant;)

How may I use nace transaction to change it?

thx

kiran_k8
Active Contributor
0 Kudos

Marcin,

Can you please be clear in what is your requirement.By the way what is Form Class.I didn't come acrossed any such thing so far.Is this specific to a HR module.

K.Kiran.

0 Kudos

Kiran,

It seems to be a class which provides access to respective tables i.e. form class PAYSLIP lets me to operate on tables/structures concerning this HR section.

Former Member
0 Kudos

Hi,

In NACE t-code we have the application for each one. based on the application output type can be defined, based on output type script and print program can be defined.

If suppose data can be read from EDI then we should go for condition records.

So whenever we execute the script first composer checks the output type and then execute the program. in program whenever open form FM will be populate then script will open first. After that again program till another FM will populate if it then script will populate........like it is cycle proces. Composer does all these things and at last it will submit that output to spool.

Go to the Transaction NACE.

choose the related sub module.. like billing or shipping

doubel click on Output Types

Choose the Output Type for which whcih you wanted your script to trigger

Then select the Output Type and double click on Processing Routine

Then go to create new entries--> Select the Medium (1- print output), then enter your Script and Print Program detls --> Save and come out

Now go to the Transaction (for which you have created the output type)... Issue output--> Select the output type --> Print....

You should know the Output type for each document;

like

for sales order it is BAoo for Purchase order it is NEU for delivery it is LD00

for Invoice it is RD00.

and the application for each document:

for PO it is EF

for Sales doc's it is V1

delivery it is V2

billing Doc's it is V3.

Select the Application from NACE and click on output types.

select the right output type and click on the processing routines on the left hand side.

it displays the Medium(print,Fax,Mail, edi etc), Output type, Program and the Script form or Smart form.

Regards

Ravi

kiran_k8
Active Contributor
0 Kudos

Marcin,

One can attach the zsmartform to the zdriver program after assiging them to the output type and all.You can check with you functional consultant regarding the configuration in NACE.

I don't know about HR forms,but in general if you have created a smartform zdiff in the SMARTFORMS transaction then you would have a corresponding driver program which you would have copied to a zprogram.In NACE you have to assign this zdiff to the zdriverprogram and the configuration in NACE.

To see the driver program w.r.t a smartform you can check the table TNAPR.

Check NACE.If it is having smartform ZPYXXFO_ZTEST assigned to the driver program then change it to ZDIFF.I am not sure about this form class and stuff,so can't be sure of the result.

K.Kiran.

0 Kudos

I think it's a bit to deep for me. I dont get all these things you said. I will try to do it in other way. Anyway thanks a lot for such comprehensive informatiom.

Regards.

kiran_k8
Active Contributor
0 Kudos

Marcin,

Nothing is deep Buddy.Unless you get in you won't know how depth it is.Once you get used to that you can do all this at the drop of a hat.

Fine,all the best.

Do award points if you find the replies helpful.

K.Kiran.

0 Kudos

I did:)