‎2008 Dec 05 11:08 AM
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.
‎2008 Dec 08 9:05 AM
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.
‎2008 Dec 05 11:46 AM
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.
‎2008 Dec 05 1:54 PM
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?
‎2008 Dec 08 6:16 AM
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
‎2008 Dec 08 9:05 AM
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.