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

table control in BDC

Former Member
0 Likes
593

Hi,

I am doing a BDC for PP01 t.code. In the first screen there is a table control in which i need to select particular infotype and need to create the record. Now i need to select Job Evaluation Results info type but i am unable to select that def. size is 10. how to do page down and select that infotype.without that i cannot proceed further.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
549

Do the following

first declare

data: gwa_ctu_params TYPE ctu_params.

then within the loop

*If the CNT increases what was specified in sel screen, reset it to 1

IF cnt > 10.

cnt = 1.

g_flag = 'X'.

ENDIF.

  • Trigger a new page when the limit reaches.

IF g_flag = 'X'.

PERFORM bdc_field USING 'BDC_OKCODE'

'=CP+'. " function code

g_flag = space.

ENDIF.

gwa_ctu_params-defsize = 'X'.

gwa_ctu_params-dismode = l_mode. ( A, E or N)

gwa_ctu_params-updmode = 'S'.

CALL TRANSACTION 'PP01' USING i_bdcdata

OPTIONS FROM gwa_ctu_params

MESSAGES INTO i_bdcmsgcoll.

4 REPLIES 4
Read only

Former Member
0 Likes
549

Hi

You can use this code and u can select what ever the line items are there in table control.

pass variables for this code and make changes .

concatenate 'RC27X-FLG_SEL( ' w4 ' )' into w3_f4.

perform bdc_field using w3_f4

'X'.

Regards,

Venu.

Read only

0 Likes
549

hi,

this is my code

perform bdc_dynpro using 'SAPMH5A0' '5000'.

perform bdc_field using 'BDC_OKCODE'

'=P+'.

perform bdc_field using 'BDC_CURSOR'

'TT_T777T-ITEXT(10)'.

perform bdc_field using 'PM0D1-TIMR6'

'X'.

perform bdc_field using 'MARKFELD(10)'

'X'.

perform bdc_dynpro using 'SAPMH5A0' '5000'.

perform bdc_field using 'BDC_OKCODE'

'=INSE'.

perform bdc_field using 'BDC_CURSOR'

'TT_T777T-ITEXT(09)'.

perform bdc_field using 'PM0D1-TIMR6'

'X'.

perform bdc_field using 'MARKFELD(09)'

'X'.

i need to select 19 line item.by the code i able to select 19 line item. but my question is if screen resolution gets changed then it will be a problem. How to handle it dynamically?

Read only

Former Member
0 Likes
549

Hi,

For Screen Resolution you have to goto BDC_INSERT Function module and give

ctuparams = wa_params.

Before that declare data statement for that as below then you problem will get solved.

data : wa_params type ctu_params.

wa_params-dismode = 'A'.

wa_params-updmode = 'S'.

wa_params-defsize = 'X'.

Regards,

Sudhakar Reddy.A

Read only

Former Member
0 Likes
550

Do the following

first declare

data: gwa_ctu_params TYPE ctu_params.

then within the loop

*If the CNT increases what was specified in sel screen, reset it to 1

IF cnt > 10.

cnt = 1.

g_flag = 'X'.

ENDIF.

  • Trigger a new page when the limit reaches.

IF g_flag = 'X'.

PERFORM bdc_field USING 'BDC_OKCODE'

'=CP+'. " function code

g_flag = space.

ENDIF.

gwa_ctu_params-defsize = 'X'.

gwa_ctu_params-dismode = l_mode. ( A, E or N)

gwa_ctu_params-updmode = 'S'.

CALL TRANSACTION 'PP01' USING i_bdcdata

OPTIONS FROM gwa_ctu_params

MESSAGES INTO i_bdcmsgcoll.