2008 Oct 16 8:13 AM
Hi Expert,
I'm new to bdc recording.
The problem i'm facing is during bdc recording of VK11
While VK11 transaction recording after entering the Condtion Type a Popup window is showing with list of radio buttons contains some key combination.
i need to select any one of the radio button and proceed to the next screen.
This scenario is not capturing in BDC recording.
How should i write/Modify the BDC for this???
Any useful inputs on this...
Thanks in advance
Lakshmiraj
Hi Expert,
I'm new to bdc recording.
The problem i'm facing is during bdc recording of VK11
While VK11 transaction recording after entering the Condtion Type a Popup window is showing with list of radio buttons contains some key combination.
i need to select any one of the radio button and proceed to the next screen.
This scenario is not capturing in BDC recording.
How should i write/Modify the BDC for this???
Any useful inputs on this...
Thanks in advance
Lakshmiraj
2008 Oct 16 8:16 AM
hi
just now i tried for that its working fine .. i dont know y u r getting error.
2008 Oct 16 8:17 AM
Hi
this is my code
PERFORM bdc_dynpro USING 'SAPMV13A' '0100'.
PERFORM bdc_field USING 'BDC_CURSOR' 'RV13A-KSCHL'.
PERFORM bdc_field USING 'BDC_OKCODE' '/00'.
PERFORM bdc_field USING 'RV13A-KSCHL' wa509-condTyp.
PERFORM bdc_dynpro USING 'SAPMV14A' '0100'.
PERFORM bdc_field USING 'BDC_CURSOR' 'RV130-SELKZ(02)'.
PERFORM bdc_field USING 'BDC_OKCODE' '=WEIT'.
PERFORM bdc_field USING 'RV130-SELKZ(01)' ''.
PERFORM bdc_field USING 'RV130-SELKZ(02)' 'X'.
PERFORM bdc_dynpro USING 'SAPMV13A' '1509'.
PERFORM bdc_field USING 'BDC_CURSOR' 'RV13A-DATBI(01)'.
PERFORM bdc_field USING 'BDC_OKCODE' '=SICH'.
PERFORM bdc_field USING 'KOMG-VKORG' wa509-salesOrg.
PERFORM bdc_field USING 'KOMG-VTWEG' wa509-distCh.
PERFORM bdc_field USING 'KOMG-MATNR' wa509-matnr.
PERFORM bdc_field USING 'KOMG-ZZCLASS(01)' wa509-priClass.
PERFORM bdc_field USING 'KONP-KBETR(01)' wa509-rate.
PERFORM bdc_field USING 'KONP-KONWA(01)' wa509-priceUnit.
PERFORM bdc_field USING 'KONP-KMEIN(01)' wa509-uom.
PERFORM bdc_field USING 'RV13A-DATAB(01)' wa509-valFrom.
PERFORM bdc_field USING 'RV13A-DATBI(01)' wa509-valTo.
data:mode type c value 'N'.
refresh ibdcmsgcoll.
CALL TRANSACTION 'VK11' USING ibdcdata
MODE mode
UPDATE 'S'
MESSAGES INTO ibdcmsgcoll.
2008 Oct 16 8:18 AM
Hi
Every move u make in the recording, gets captured. So, try again.
And one more thing, after this:
PERFORM bdc_field USING 'BDC_OKCODE' '=SICH'.you are passing internal table values..how come it will get updated??
if ok_code = sich, that means saving the data entered. So check that also...instead perform the recording again.
Regards,
Vishwa.
Edited by: Vishwa Sri Hari on Oct 16, 2008 12:50 PM
2008 Oct 16 8:20 AM
Hi...
I had made a BDC for VK11... there i had to choose Access No. 8.
the BDC format is as follows.
PERFORM BDC_DYNPRO USING 'SAPMV13A' '0100'.
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'RV13A-KSCHL'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'/00'.
PERFORM BDC_FIELD USING 'RV13A-KSCHL'
'ZPR0'.
PERFORM BDC_DYNPRO USING 'SAPLV14A' '0100'.
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'RV130-SELKZ(08)'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'=WEIT'.
PERFORM BDC_FIELD USING 'RV130-SELKZ(01)'
''.
PERFORM BDC_FIELD USING 'RV130-SELKZ(08)'
'X'.
((( HERE, ABOVE is the code which selects ACCESS No. 8.))))))
PERFORM BDC_DYNPRO USING 'SAPMV13A' '1554'.
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'KONP-VALTG(01)'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'/00'.
PERFORM BDC_FIELD USING 'KOMG-VKORG'
'1000'.
WA_PC_VBAK-VKORG.
PERFORM BDC_FIELD USING 'KOMG-VTWEG'
'10'.
WA_PC_VBAK-VTWEG.
PERFORM BDC_FIELD USING 'KOMG-SPART'
'10'.
WA_PC_VBAK-SPART.
PERFORM BDC_FIELD USING 'KOMG-MATNR'
'CORNER'.
WA_PC_VBAP-MATNR.
PERFORM BDC_FIELD USING 'KOMG-KUNAG(01)'
'102657'.
WA_PC_VBAK-KUNNR.
PERFORM BDC_FIELD USING 'KONP-KBETR(01)'
' 555'.
WA_PC_KONV-KBETR.
KONV_KBETR.
PERFORM BDC_FIELD USING 'RV13A-DATAB(01)'
'30.05.2008'.
DATE.
PERFORM BDC_FIELD USING 'KONP-VALTG(01)'
'15'.
WA1_VBKD-VALTG.
PERFORM BDC_DYNPRO USING 'SAPMV13A' '1554'.
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'KOMG-KUNAG(01)'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'=SICH'.
CALL TRANSACTION 'VK11' USING BDCDATA MESSAGES INTO MESSTAB MODE 'A' UPDATE 'S'.
2008 Oct 16 8:26 AM
Hi Krishnan,
I got that this part is doing that selection of radio button in the popup screen.
PERFORM bdc_dynpro USING 'SAPMV14A' '0100'.
PERFORM bdc_field USING 'BDC_CURSOR' 'RV130-SELKZ(02)'.
PERFORM bdc_field USING 'BDC_OKCODE' '=WEIT'.
PERFORM bdc_field USING 'RV130-SELKZ(01)' ''.
PERFORM bdc_field USING 'RV130-SELKZ(02)' 'X'.
when i run the bdc in the mode A , BDC is stopped atter the popup screen is called 'SAPMV14A' '0100'.
When i run in mode E , it comes to the popup screen
Pls suggest
2008 Oct 16 9:18 AM
Hi,
My new recoreded code..
PERFORM bdc_dynpro USING 'SAPMV13A' '0100'.
PERFORM bdc_field USING 'BDC_CURSOR' 'RV13A-KSCHL'.
PERFORM bdc_field USING 'BDC_OKCODE' '/00'.
PERFORM bdc_field USING 'RV13A-KSCHL' wa509-condTyp.
PERFORM bdc_dynpro USING 'SAPMV14A' '0100'.
PERFORM bdc_field USING 'BDC_CURSOR' 'RV130-SELKZ(02)'.
PERFORM bdc_field USING 'BDC_OKCODE' '=WEIT'.
PERFORM bdc_field USING 'RV130-SELKZ(01)' ''.
PERFORM bdc_field USING 'RV130-SELKZ(02)' 'X'.
PERFORM bdc_dynpro USING 'SAPMV13A' '1509'.
PERFORM bdc_field USING 'BDC_CURSOR' 'RV13A-DATBI(01)'.
PERFORM bdc_field USING 'BDC_OKCODE' '/00'.
PERFORM bdc_field USING 'KOMG-VKORG' wa509-salesOrg.
PERFORM bdc_field USING 'KOMG-VTWEG' wa509-distCh.
PERFORM bdc_field USING 'KOMG-MATNR' wa509-matnr.
PERFORM bdc_field USING 'KOMG-ZZCLASS(01)' wa509-priClass.
PERFORM bdc_field USING 'KONP-KBETR(01)' wa509-rate.
PERFORM bdc_field USING 'KONP-KONWA(01)' wa509-priceUnit.
PERFORM bdc_field USING 'KONP-KMEIN(01)' wa509-uom.
PERFORM bdc_field USING 'RV13A-DATAB(01)' wa509-valFrom.
PERFORM bdc_field USING 'RV13A-DATBI(01)' wa509-valTo.
PERFORM BDC_DYNPRO USING 'SAPMV13A' '1509'.
PERFORM BDC_FIELD USING 'BDC_CURSOR' 'KOMG-ZZCLASS(01)'.
PERFORM BDC_FIELD USING 'BDC_OKCODE' '=SICH'.
data:mode type c value 'A'.
refresh ibdcmsgcoll.
CALL TRANSACTION 'VK11' USING ibdcdata
MODE mode
UPDATE 'S'
MESSAGES INTO ibdcmsgcoll.
Can anybody throw some thought on this...
2008 Oct 16 9:21 AM
Hi
Is this code working?? Where is the issue? I think it is capturing the Radio Button because:
PERFORM bdc_field USING 'RV130-SELKZ(01)' ''.
PERFORM bdc_field USING 'RV130-SELKZ(02)' 'X'. "here X means radio button is checked.Regards,
Vishwa.
2008 Oct 16 9:31 AM
Hi,
No it is not working...
PERFORM bdc_field USING 'RV130-SELKZ(02)' 'X'. "here X means radio button is checked.yes.. this means the radio button option is selected.
when i run the same in shdb it is running as in the same order of recording.. but in programwith mode A it is not able select the 2nd radio button . it simply comes and stays in the screen.
2008 Oct 16 9:33 AM
OK. Are there only loop in the program or more than one? And can u attach the code along with loops?
Regards,
Vishwa.
2008 Oct 16 9:37 AM
Solved..
there was error in typing the screen program name.
Thanks to all.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |