cancel
Showing results for 
Search instead for 
Did you mean: 

How to print a particular field based on a condition in the main window

Former Member
0 Kudos

Hi,

I had a requiremnt to display a particular field.

For example i had field called LIMIT VALUE .

When this value exceeds 15000 then i want to display a particular material in my main window.

And also after printing all the line items i want to display the approval history in a seperate page.

Regards,

Ram.

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

Hi,

As you said the data is already in the internal table, so add one more flag variable to that internal table and do the following changes in the driver program.

a) Loop through your internal table and then find the records with LIMIT VALUE more than 15,000 and there make the flag variable to 'X'.

b) Then while printing the data in the smartform give the condition and then proceed accordingly.

c) For printing the Approval history create a Text element after the mainwindow and then right click on the text element there Create -> Command.

d) There click the Go to Page check box and there give the new page name where you want to print the Approval history.

Hope this will help you,

Regards,

Venkat.

Former Member
0 Kudos

Hi,

Try to put a condition in the text element node.

If you observe in the text element there is a option for conditions there you can put a condition.

For the next one:

Try to create a seperate page for approval history and create a command node in that check the check box 'GO TO NEW PAGE' and give the page you created for approval history.

Regards,

venu

Former Member
0 Kudos

Hi,

It is better to collect all the values into another internal table using that condition i.e LIMIT VALUE > 15000. Then display the values in main window. Implement the code in Driver program and transfer the values into Smart form or Script.

For 2nd Question

Create a separate page for approval history.

If it is Smart form use Command node to transfer the control to next page.

If it is a script use NEW-PAGE for next page based on condition.

Former Member
0 Kudos

Hi,

You can put a condition in the text element node.

In the text element there is a option for conditions there you can put a condition.

For the second question

You create a seperate page for approval history.

And create a command node in that check the check box 'GO TO NEW PAGE' and give the page you created for approval history.

Hope this will help.

Regards

Raj

Former Member
0 Kudos

well either in sapscript or smartforms you can use


IF.
  *coding e.G. A1  &GV_MATNR&
ELSE.
  *coding
ENDIF:

Former Member
0 Kudos

Hi,

If you are working on smartfrom then you can have conditiom on the text element in Condition Tab.

Create the seprate page for approval history and call as next page .