Viraj Shah wrote:
Hi Abhishek,
I have reviewed your code, and done changes in it and tested on my system. Now it is working exactly you want. Please use below code.
report ZT5
no standard page heading line-size 255.
include bdcrecx1.
DATA gtvbak TYPE STANDARD TABLE OF vbak WITH HEADER LINE.
data :v_index TYPE char2 VALUE '00'.
data v_string TYPE string.
start-of-selection.
SELECT * from vbak into TABLE gtvbak UP TO 20 rows.
perform open_group.
perform bdc_dynpro using 'ZT3' '1000'.
perform bdc_field using 'BDC_CURSOR'
'SO_VBELN-LOW'.
perform bdc_field using 'BDC_OKCODE'
'=%000'.
LOOP AT gtvbak.
perform bdc_dynpro using 'SAPLALDB' '3000'.
v_index = v_index + 1.
concatenate 'RSCSEL-SLOW_I(' v_index ')' INTO v_string.
"dont you think it should be
concatenate 'RSCSEL_255-SLOW_I(' v_index ')' INTO v_string.
IF v_index = 1.
perform bdc_field using 'BDC_OKCODE'
'=P+'.
viraj,
thanks for the effort.
But still i am very far from the objective.
nothing is happening.
have you paste entire code that it should contain.??
see error