cancel
Showing results for 
Search instead for 
Did you mean: 

smartforms problem belnr on new page (rewards)

former_member193357
Participant
0 Kudos

hiiiiiii

Iam using smartfroms n i want to display every new BELNR on new page.So iam using...the following code

LOOP AT it_bkpf INTO wa_bkpf.

AT NEW belnr.

ind = sy-tabix.

READ TABLE it_bkpf INTO wa_bkpf INDEX ind.

NEW-PAGE.

ENDAT.

ENDLOOP.

But my problem is that my it_bkpf is blank because...

SELECT * FROM bseg CLIENT SPECIFIED

INTO CORRESPONDING FIELDS OF TABLE it_bseg

WHERE belnr in s_belnr

AND bukrs = s_bukrs

AND gjahr = s_gjahr.

and my s_belnr is in range so depending on my range that number of belnr should display on every new page in smartform.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

First did you accidentally put BSEG table SQL instead of BKPF?

Second it shouldn't be so hard to do this. Can you tell me where do you fill table it_bkpf...and what are the variables you import into SMF...

BR,

Milan