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: 

Page down problem with BDC for PVD0

Former Member
0 Kudos

We are trying to create a BET using the transaction PVD0 using BDC approach. The problem is that on the Relationships tab, where multiple lines can be entered,the OK_CODE for page down is not being registered in the recording. As a result, while processing the BDC, we are unable to populate the values beyond the 7th line. The P+ / P++ functions for pagedown are also not working and the buttons for pagedown are not even active in the GUI Status. Also, unlike most other transactions, we do not have additional buttons to add rows here. Please help!

13 REPLIES 13

krishnendu_laha
Active Contributor
0 Kudos

Hi Ipshita,

Try with BDC_OKCODE = '/00'.

I know this ok code generally works with enter, but here it can serve another work.

Hope it will solve the problem.

Regards

Krishnendu

0 Kudos

Unfortunately, BDC_OKCODE = '/00' is not working in this scenario.

Former Member
0 Kudos

In some cases you may have to pass okcode as '=P+'. Try with that .

regards

shiba dutta

0 Kudos

That does not work either !

0 Kudos

Hi Ipshita,

You do the recording again with page down so it will capture the actual ok_code for page down.During recording enter more than 7 lines.

Regards,

Rajesh Akarte

Message was edited by:

Rajesh Akarte

0 Kudos

Hi Rajesh,

We have done the recording multiple times - entering more than 7 lines in each case. However, the conventional ways of handling Page down for BDC don't seem to be working for this specific transaction ( PVD0). Neither could I find an alternative solution ( e.g. BAPI ) to create a BET.

Regards,

Ipshita.

0 Kudos

Try the OK_Code =PAUA_T and POPO_T.

Regards,

Rajesh Akarte

Former Member
0 Kudos

Hi,

This is an example for P+ functionality, try in this way for your screen.

 DATA: lv_line3(2) TYPE n.
  CLEAR lv_line3.
  lv_line3 = '01'.
  LOOP AT git_cdata INTO wa_cdata WHERE usr00 = wa_hdata-usr00.
 
    IF lv_line3 > '07'.
      PERFORM bdc_dynpro      USING 'SAPLCOIH' '3000'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=P+'.             " Pagedown
 
      PERFORM bdc_dynpro      USING 'SAPLCOIH' '3000'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=ENT1'.
 
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                    'RESBD-VORNR(02)'. "Placing the cursor in the 2nd row of table control.
 
      lv_line3 = '02'. " Making position to 2nd row after page down to populate the values in table control
    ENDIF.

Reward if this helps,

Satish

Former Member
0 Kudos

Hi,

None of the OKCODEs =PAUA_T and POPO_T or '=P+' are working for this transaction.

Regards,

Ipshita

0 Kudos

Hi,

When you try to use all thes Codes, is it throwing any error? what is that error?

Regards,

Satish

0 Kudos

Hi

Check the BAPI 'BAPI_BUS_EVENTTYPE_INFO1' if it is useful for u.

U can found more BAPIs at following link:

BAPI->Training and Event Management

Regards,

Rajesh Akarte

Former Member
0 Kudos

Hi,

The BAPI 'BAPI_BUS_EVENTTYPE_INFO1' can only be used to read information and cannot be used to create a BET. I had already checked the BAPI transaction -there seems to be no BAPI available to create a BET.

Also, for the other OKCODEs that have been suggested, no 'page down' happens on using them - so the value in the first line of the first page is replaced with the new value intended for the 8th line - and hence a validation error is reported from the transaction.

Thanks,

Ipshita.

0 Kudos

Can u please post the code which system generated after recording.

Regards,

Rajesh Akarte