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 display problem

Former Member
0 Likes
424

Hi experts,

Iam working on smartforms.

I have header and details tables.In the header table(T_HDR) i have 2 different VBELNs .

In the details table iam getting details for each VBELN.

So first loop iam getting 3 details & in the second loop

iam getting 2 details records like this.


  loop at t_hdr into g_hdr
   select * into ....vbap.. t_det where t_hdr-vbeln.
   
    CALL FUNCTION 'SF function module'
    EXPORTING
      CONTROL_PARAMETERS = CONTROL
    TABLES
      T_HDR              = <b>G_HDR</b>
      T_DET              = <b>T_DET</b>

  endloop.  " t_hdr

Since customer number is same in t_hdr, i want to display t_hdr values only one time in the smartforms first page.

In the next page i want to display all the details using t_det.

I got the all the details and it is fine.

Only problem is iam getting FIRST page is getting repeated.

How can i reistrict to display first page <b>only one time</b>?And how to get all the details in the next pages?

Output options are not working.

reward guaranteed

thanks

kaki

2 REPLIES 2
Read only

Former Member
0 Likes
404

Hi Kaki,

How have you defined your "Next Page" in smartform?

The Main Window shud be there in Next Page too.

Regards,

Anjali

Also, Pls close your previous posts as "solved/V.Helpful/helpful" or solved it on your own. This would <b>only</b> encourage others to help you with your queries.

Rules of Engagement:

Read only

Former Member
0 Likes
404

Hi Kaki,

DATA wa LIKE LINE OF t_hdr.
LOOP AT t_hdr INTO g_hdr.
  wa = g_hdr.
  AT NEW vbeln.
  SELECT * INTO t_det ... WHERE vbeln = wa-vbeln.

  CALL FUNCTION 'SF function module'
   EXPORTING
   CONTROL_PARAMETERS = CONTROL
   TABLES
    T_HDR = G_HDR
    T_DET = T_DET

  ENDLOOP.