Application Development 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: 

Problem in BDC

0 Kudos
166

Hii

Im facing a strange problem while recording a BDC of transaction IW32.

after entering the order and then we record in the notification part and then click on change

it shows the Activity list till here every thing is fine .

The problem starts now while suppose it there are more than 12 records every time instead of adding as the 13th record but it overwrites the 12th record always

i tried debugging it and i think that this is because while recording in the intial screen of the activity part there are 12 lines now to record the 13th line we need to scroll down i think the next screen doesnt get recorded.

Please help.

4 REPLIES 4

Former Member
0 Kudos
115

Yea such problems do arise,

why dont you make the item-counter a variable quantity instead of passing it as a fixed '12' value.

Should'nt be a problem.

Give it a shot !

--Dedeepya

0 Kudos
115

hey thx but i hav tried doing that it keeps adding till 12 once it crosses 12 it starts overwriting it..

former_member418469
Participant
0 Kudos
115

hi,

Search for any BAPI exist for the requirement its safe. Try to use the bapis:

BAPI_ALM_NOTIF_DATA_MODIFY

BAPI_ALM_NOTIF_SAVE => if not saving use this

Former Member
0 Kudos
115

hi,

you should do a bdc recording with page down option to enter the multiple fields in scrolling .

keep the count of line in a variable and feed the item based on count.

Markup/Result


  if w_count >= 2.
              C = W_COUNT.
              w_posnr_l = w_posnr_l + 10. 
              CONCATENATE 'RC29P-POSTP' C ')' INTO W_POSTP.

              concatenate '' w_posnr_l '' into w_posnr_h.  "not required as of now.


              perform bdc_dynpro      using 'SAPLCSDI' '0310'.
              perform bdc_field       using 'BDC_CURSOR'
                                             w_postp.                        "'RC29P-POSTP(02)'.
              perform bdc_field       using 'BDC_OKCODE'
                                             '/00'.
              perform bdc_field       using 'RC29P-AUSKZ(01)'
                                            ''.
endif.

'C' in the concatenate will be ur dynamic index to fill the tab . you need to implement such sort of code to handle page control in BDC.

---

basically the idea is to handle the scrolling from 2 or 3 tiem and your debugging in all screen mode should make the slide in the scrolling move down for each line item after 2 , 3, 4 and so on.. so when u reach 12 or 20 or 50 the scroll should pass for every feed. hope you got some idea ..