11-14-2007 8:17 AM
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!
11-15-2007 10:28 AM
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
11-16-2007 8:16 AM
Unfortunately, BDC_OKCODE = '/00' is not working in this scenario.
11-16-2007 8:26 AM
In some cases you may have to pass okcode as '=P+'. Try with that .
regards
shiba dutta
11-17-2007 5:51 AM
11-17-2007 6:23 AM
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
11-17-2007 8:30 AM
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.
11-17-2007 8:51 AM
11-17-2007 8:38 AM
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
11-17-2007 9:32 AM
Hi,
None of the OKCODEs =PAUA_T and POPO_T or '=P+' are working for this transaction.
Regards,
Ipshita
11-17-2007 10:03 AM
Hi,
When you try to use all thes Codes, is it throwing any error? what is that error?
Regards,
Satish
11-17-2007 10:08 AM
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
11-20-2007 8:01 AM
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.
11-20-2007 8:41 AM
Can u please post the code which system generated after recording.
Regards,
Rajesh Akarte