on 07-30-2007 8:01 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.