05-14-2007 8:18 AM
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....
05-14-2007 8:21 AM
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
05-14-2007 8:21 AM
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
05-14-2007 8:23 AM
05-14-2007 8:23 AM
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