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: 

sf

Former Member
0 Kudos

dear all,

I have given a task to develop a smartform for purchase invoice, credit and debit note and cash receipt and payment receipt. Format for the all form is same including field. Only header should be different for all the forms. So I have created according to the above mentioned requirement. Now I am having the problem suppose I have assigned header for all like this in smart forms:

dg- debit note

kg-credit note

cb-cash payment

ca-cash receipt.

And when I am giving dg in my print prgram select option it shows the respective data. But there is one problem suppose if there is no data against DG it should show some error message or something.

How I will do that.

regards....

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hello,

U can check the condition in ur Print Program itself.

Steps:

1, Before calling the Function Module of Smart Form check the condition.

2, If there are no records then do call the FM and instead give an error mesage from the print program.

Hope this helps u.

Regards,

Deepu.k

3 REPLIES 3

Former Member
0 Kudos

Hello,

U can check the condition in ur Print Program itself.

Steps:

1, Before calling the Function Module of Smart Form check the condition.

2, If there are no records then do call the FM and instead give an error mesage from the print program.

Hope this helps u.

Regards,

Deepu.k

0 Kudos

what would be the syntaxt for that

Former Member
0 Kudos

Hi

Declare a select-option for a field of 10 char such that it accepts all types of documents

in the Header window based on the Document type(some BSTYP field) you put the condition and and write the related header code in script.

during the data fetching in program, when there is no data found from tables, populate a flag.

and use that flag in other windows such that if that flag ='x'. data found

then only the data is displayed in other windows.

Reward points if useful

Regards

Anji