Application Development and Automation 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: 
Read only

BDC not displaying values on screen

Former Member
0 Likes
1,586

hi Frenz!

i am using a bdc, i can see the values getting passed to the bdc correctly during the debugging mode.

but when i try to process th bdc in the foreground the values are not visible on the screen. Can you please let me know the possible reason for this?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,381

Hi,

After moving values to the bdc field use condense command.

I hope it will serve ur purpose.

hi Frenz!

i am using a bdc, i can see the values getting passed to the bdc correctly during the debugging mode.

but when i try to process th bdc in the foreground the values are not visible on the screen. Can you please let me know the possible reason for this?

10 REPLIES 10
Read only

Former Member
0 Likes
1,381

Hi,

What are the format used in the screen and in your program ?

Read only

0 Likes
1,381

hi thanx for the prompt reply...

if you want you can take a look at the code that im using...

perform bdc_dynpro using 'SAPLHRHAP_UI_DOCUMENT_REPORT' '1000'.

perform bdc_field using 'BDC_CURSOR'

'HAP_S_DYNP_REPORT_1000-TEMPLATE_NAME'.

perform bdc_field using 'BDC_OKCODE'

'=DOIT'.

perform bdc_field using 'HAP_S_DYNP_REPORT_1000-TEMPLATE_NAME'

'Appraisal Upload'.

perform bdc_field using 'HAP_S_DYNP_REPORT_1000-APPER_TYPE'

'P'.

perform bdc_field using 'HAP_S_DYNP_REPORT_1000-APPER_AND_APPEE'

'X'.

perform bdc_field using 'HAP_S_DYNP_REPORT_1000-APPEE_TYPE'

'P'.

perform bdc_field using 'HAP_S_DYNP_REPORT_1000-APPEE_NAME'

newpernr.

perform bdc_field using 'HAP_S_DYNP_REPORT_1000-OTHER_TYPE'

'P'.

perform bdc_field using 'HAP_S_DYNP_REPORT_1000-AP_STATUS_1'

'X'.

perform bdc_field using 'HAP_S_DYNP_REPORT_1000-AP_STATUS_6'

'X'.

perform bdc_field using 'HAP_S_DYNP_REPORT_1000-AP_STATUS_2'

'X'.

perform bdc_field using 'HAP_S_DYNP_REPORT_1000-AP_STATUS_7'

'X'.

perform bdc_field using 'HAP_S_DYNP_REPORT_1000-AP_STATUS_3'

'X'.

perform bdc_field using 'HAP_S_DYNP_REPORT_1000-AP_STATUS_8'

'X'.

perform bdc_field using 'HAP_S_DYNP_REPORT_1000-AP_STATUS_4'

'X'.

perform bdc_field using 'HAP_S_DYNP_REPORT_1000-AP_STATUS_9'

'X'.

perform bdc_field using 'HAP_S_DYNP_REPORT_1000-AP_STATUS_5'

'X'.

perform bdc_dynpro using 'SAPLHRHAP_UI_DOCUMENT_REPORT' '1100'.

perform bdc_field using 'BDC_OKCODE'

'=ADM_STAT'.

perform bdc_dynpro using 'SAPLHRHAP_UI_DOCUMENT_ADMIN' '1400'.

perform bdc_field using 'BDC_CURSOR'

'HAP_S_DYNP_ADMIN_STATUS_CHANGE-NEW_STATUS'.

perform bdc_field using 'BDC_OKCODE'

'=STAT_DUMMY'.

perform bdc_field using 'HAP_S_DYNP_ADMIN_STATUS_CHANGE-NEW_STATUS'

'5'.

perform bdc_dynpro using 'SAPLHRHAP_UI_DOCUMENT_ADMIN' '1400'.

perform bdc_field using 'BDC_CURSOR'

'HAP_S_DYNP_ADMIN_STATUS_CHANGE-NEW_STATUS'.

perform bdc_field using 'BDC_OKCODE'

'=ENTER'.

perform bdc_field using 'HAP_S_DYNP_ADMIN_STATUS_CHANGE-NEW_STATUS

'5'.

perform bdc_dynpro using 'SAPLHRHAP_UI_DOCUMENT_REPORT' '1100'.

perform bdc_field using 'BDC_OKCODE'

'=XBACK'.

perform bdc_dynpro using 'SAPLHRHAP_UI_DOCUMENT_REPORT' '1000'.

perform bdc_field using 'BDC_CURSOR'

'HAP_S_DYNP_REPORT_1000-TEMPLATE_NAME'.

perform bdc_field using 'BDC_OKCODE'

'=XBACK'.

perform bdc_field using 'HAP_S_DYNP_REPORT_1000-TEMPLATE_NAME'

'Appraisal Upload'.

perform bdc_field using 'HAP_S_DYNP_REPORT_1000-APPER_TYPE'

'P'.

perform bdc_field using 'HAP_S_DYNP_REPORT_1000-APPER_AND_APPEE'

'X'.

perform bdc_field using 'HAP_S_DYNP_REPORT_1000-APPEE_TYPE'

'P'.

perform bdc_field using 'HAP_S_DYNP_REPORT_1000-APPEE_NAME'

newpernr.

perform bdc_field using 'HAP_S_DYNP_REPORT_1000-AP_STATUS_1'

'X'.

perform bdc_field using 'HAP_S_DYNP_REPORT_1000-AP_STATUS_4'

'X'.

perform bdc_field using 'HAP_S_DYNP_REPORT_1000-AP_STATUS_5'

'X'.

perform bdc_transaction using 'PHAP_ADMIN_PA'.

Read only

0 Likes
1,381

which of these values are not shown on the screen?

Regards,

Atish

Read only

Former Member
0 Likes
1,381

Are you trying to pass values which are not character field. BDC will only accept character type data. Convert other data types to character before passing to BDCDATA table.

Read only

0 Likes
1,381

i understand that and all the data that i am passing is character type data only..still it is not displaying the data on the screen.is theree any possibility that by missing a part of code or in the way the bdc is being executed is what is creating the problem...?

Read only

Former Member
0 Likes
1,382

Hi,

After moving values to the bdc field use condense command.

I hope it will serve ur purpose.

Read only

0 Likes
1,381

thanx for ur reply vijay,

what i would like to know is do i have to use condense command each time i move the value to a field?

payal

Read only

0 Likes
1,381

Hi Payal,

You are not required to use CONDENSE if you are using the correct data type for field declaration.

Can you show your code and for which fields you are getting problem.

Regards,

Atish

Read only

Former Member
0 Likes
1,381

thank you friendz the issue got resolved it was the issue with the test data and not the bdc.

Read only

Former Member
0 Likes
1,381

thank you friendz the issue got resolved it was the issue with the test data and not the bdc.