cancel
Showing results for 
Search instead for 
Did you mean: 

Error Log in smartform.

Former Member
0 Kudos

Hi friends,

In the smartform, for the delivery, the output should not be generated unless the header and main window fields have data populated. It should have a log showing which are the fields with missing data when the output could not be generated. How can we do this in smartform. If anyone have idea please help me, as am new to abap.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

1. Take a note of all the fields which are displayed in Header and Main Windows.

2. In the driver program of the smartform, before calling the FM to display smartform, check whether data is available in all the fields (which should be printed in header and main window).

3. Update an intenal table with all the fields which needs to be filled (The internal table can have a single field with STRING type).

4. Now if there is any value in the error internal table, then call the FM - "POPUP_WITH_TABLE" by passing the internal table into it. Else call the FM to display the smartform.

Answers (0)