Application Development and Automation 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: 
Read only

PO Smartform Problem

Former Member
0 Likes
661

Hi Guys,

I am new to smartforms, but know the basics. I have a requirement to change the custom PO form.

If the purchase order contains items with different delivery address, it should print items in different page, but right now it is printing both the items in the same page even delivery address in different. Can somebody let me know from where to start with to fix the problem.

Thanks,

Rohit

6 REPLIES 6
Read only

Former Member
0 Likes
634

Hi,

If your code to display the Items is in the Main window, then add Code to check the Address. If the address is different, then call a new window.

Click the link below to know more about commands in Smartforms

http://help.sap.com/saphelp_47x200/helpdata/en/07/57f78ff5d111d4b65c006094192fe3/content.htm

To add program lines

http://help.sap.com/saphelp_47x200/helpdata/en/a3/80bae8dfd911d3b576006094192fe3/content.htm

Page Sequence

http://help.sap.com/saphelp_47x200/helpdata/en/fa/0c145cd30111d3b568006094192fe3/content.htm

Regards,

Vara

Read only

Former Member
0 Likes
634

Hello Rohit,

Please create a command in your form and check the Go to NEw page box and give your defined next page.In the conditions you can give the condition for the delivery address.

I hope this helps.

Thanks,

Kalyan

Read only

0 Likes
634

Hi kalyan,

Can you please provide me more details. Do I have to create the command in main window and how can I check the address for each item.

Thanks

Read only

0 Likes
634

Hi Guys,

I want to print the items on the seperate page. But not able to do that. I tried to put command to go to next page in the PO item table but it does not allow to create any command in the table. I am not sure where to put the code so that each item print in seperate page if the delivery address in different.

I can send the SmartForm if some body want to look at it. Help is appreciated. Thanks.

Rohit

Read only

Former Member
0 Likes
634

Hi Rohit,

try doing like this...

say the adrees numer or kunnr is itab-field1 and the line item (posnr) is itab-field2.

in the table node..in the data tab.. in the sort criteria....give wa-field1 and check the 'event on sort begin'.... then you will see a separate node getting created in the table node..now create a row..cell...text and write the field1 details there...

in the main area write the line item details...

for printing each delivery in the next page...click on the 'event on sort end' cehckbox...

a node will be created...under this node create a command node..and say 'go to next page'.

hope this helps...

Regards,

Vidya.

Read only

0 Likes
634

Hi Vidya,

It does not allow me to create command.

Can I have ur email id so that I can e-mail u a form so that u can have a look. Will appreciate ur help.

Thanks,

Rohit