2010 Sep 16 1:24 PM
Hi,
I have written a code with BDC Recording. In the middle of the recording we have
PERFORM BDC_FIELD USING 'RC29N-MATNR'
IS_ITAB-ZMATNR.
this total recording is in a loop. for this is_itab-zmatnr value should be changed for the screen.
But the value in the IS_ITAB-ZMATNR is changing. But the value populating on the screen is not changing. It is always displaying the first value passed through the loop.
What could be the wrong?
Please suggest as soon as possible.
Hi,
I have written a code with BDC Recording. In the middle of the recording we have
PERFORM BDC_FIELD USING 'RC29N-MATNR'
IS_ITAB-ZMATNR.
this total recording is in a loop. for this is_itab-zmatnr value should be changed for the screen.
But the value in the IS_ITAB-ZMATNR is changing. But the value populating on the screen is not changing. It is always displaying the first value passed through the loop.
What could be the wrong?
Please suggest as soon as possible.
2010 Sep 16 1:30 PM
2010 Sep 16 5:37 PM
Hi,
Are you trying to populate a material number within a table control on the screen? If so, you should include the row number in the field name.
By this, I mean that:
PERFORM BDC_FIELD USING 'RC29N-MATNR' IS_ITAB-ZMATNR.
would become:
PERFORM BDC_FIELD USING 'RC29N-MATNR(01)' IS_ITAB-ZMATNR.
and if you're posting on multiple lines, you would substitute 'RC29N-MATNR(01)' with a variable name of type FIELDNAME and populate it (in your loop) with something like...
DATA: L_FIELDNAME TYPE FIELDNAME,
L_COUNTER(2) TYPE N.
L_COUNTER = line counter field (yours to define...)
CONCATENATE 'RC29N-MATNR(' L_COUNTER ')' INTO L_FIELDNAME.
PERFORM BDC_FIELD USING L_FIELDNAME IS_ITAB-ZMATNR.
Note that you should also be aware of any limitations in the table control (ie. number of lines, paging, etc.)
Hope I understood your question correctly.
Regards, Andy
2010 Sep 16 6:12 PM
Moderator message - Please search before asking - post locked Rob
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |