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

Smartforms - first page call condition

Former Member
0 Likes
826

Hi,

i have created smart forms ,and passing some data like in internal table .


internal table structure is -


Order Number            item                     work Order         Material


9000                          1101                       0010                228768 

9000                          1102                       0010                228769 

9000                          1103                       0010                228770 

9000                          1104                       0010                228771 

9000                          1105                       0010                228772 

9000                          1106                       0011                228773 

9000                          1107                       0011                228774 

9000                          1108                       0011                228775 

9000                          1109                       0011                228776 

9000                          1110                       0014                228778 

9000                          1111                       0014                228779 

9000                          1112                       0014                228780 

9000                          1113                       0014                228781 


once's , work order is change means 0010 to 0011

            or 0011 to 0014  , smartforms call it's first page call.

Hi,

i have created smart forms ,and passing some data like in internal table .


internal table structure is -


Order Number            item                     work Order         Material


9000                          1101                       0010                228768 

9000                          1102                       0010                228769 

9000                          1103                       0010                228770 

9000                          1104                       0010                228771 

9000                          1105                       0010                228772 

9000                          1106                       0011                228773 

9000                          1107                       0011                228774 

9000                          1108                       0011                228775 

9000                          1109                       0011                228776 

9000                          1110                       0014                228778 

9000                          1111                       0014                228779 

9000                          1112                       0014                228780 

9000                          1113                       0014                228781 


once's , work order is change means 0010 to 0011

            or 0011 to 0014  , smartforms call it's first page call.

2 REPLIES 2
Read only

ipravir
Active Contributor
0 Likes
804

Hi Puneet,

Use the Command Condition based on the Work Order Value and put condition to call the new page to display new Work Order information.

Regards.

Praveer.

Read only

romit_raina
Active Participant
0 Likes
804

Hello Puneet,

Create  a Table which will be looping you internal table inside the Main window.

As mentioned below image

In the Code Section , please write the below code :

IF gv_wrk_ord IS INITIAL.

  gv_wrk_ord  = gi_item_tab_line-uname.

   CLEAR gv_text.

ENDIF.

IF gv_wrk_ord NE gi_item_tab_line-uname.

   gv_text = 'X'.

   CLEAR gv_wrk_ord .

ENDIF.

gv_wrk_order is type of work order field of the structure you shown above,its a global variable.

gv_text is the FLAG which is of type CHAR_01.

In the Command , need to put the Condition as shown below

Hope this will solve your problem.

Thanks

Romit Raina