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

Problem in bdc call transaction method.

Former Member
0 Likes
671

hi all.

I have a problem with BDC. here is the code i have written.

FORM call_ucomm_wilist USING ucomm LIKE sy-ucomm selfield TYPE

slis_selfield.

DATA: wa_final TYPE t_final.

IF ucomm = '&IC1'.

Refresh BDCDATA.

READ TABLE it_final INTO wa_final INDEX SELFIELD-TABINDEX.

.

PERFORM BDC_ADD_DYNPRO USING 'SAPMP50A' '1100'.

PERFORM BDC_ADD_FIELD USING 'RP50G-PERNR' wa_final-pernr.

PERFORM BDC_ADD_FIELD USING 'RP50G-CHOIC' '0015'.

PERFORM BDC_ADD_FIELD USING 'RP50G-SUBTY' wa_final-lgart.

  • PERFORM BDC_ADD_DATE USING 'RP50G-BEGDA' D1_BEGDA.

  • PERFORM BDC_ADD_DATE USING 'RP50G-ENDDA' D1_ENDDA.

PERFORM BDC_ADD_FIELD USING 'BDC_OKCODE' '=DIS'.

CALL TRANSACTION 'PA20' USING BDCDATA MODE 'E'.

ENDIF.

ENDFORM. "call_ucomm_wilist

&----


*& Form bdc_add_dynpro

&----


  • text

----


  • -->PROGRAM text

  • -->DYNPRO text

----


FORM bdc_add_dynpro USING program dynpro.

CLEAR bdcdata.

bdcdata-program = program.

bdcdata-dynpro = dynpro.

bdcdata-dynbegin = 'X'.

APPEND bdcdata.

ENDFORM. "bdc_add_dynpro

&----


*& Form bdc_add_field

&----


  • text

----


  • -->FNAM text

  • -->FVAL text

----


FORM bdc_add_field USING fnam fval.

CLEAR bdcdata.

bdcdata-fnam = fnam.

bdcdata-fval = fval.

APPEND bdcdata.

ENDFORM. "bdc_add_field

but it not showing the values in tcode pa20. please help me out.

Thanks in Advance.

Varu.

5 REPLIES 5
Read only

SantoshKallem
Active Contributor
0 Likes
569

PA20 is for <b>Display</b> HR Master Data

how can u insert the values with display mode.

regards

santhosh reddy

Read only

0 Likes
569

I am not inserting. i am just passing the values from itab to that screen to see the detail of particular personal number.

This is the problem.

Read only

SantoshKallem
Active Contributor
0 Likes
569

if u don't have errors then it wont display the screen

try with all screen mode.

MODE 'A'.

reward if useful

regards

santhosh

Read only

Former Member
0 Likes
569

HI,

Debug it in MODE 'P'.

U can find the problem...

Kishore

Read only

Former Member
0 Likes
569

Varundeep,

Are you looping the internal table it_final?

If not put subroutine "call_ucomm_wilist" in between loop.

Pls. reward if useful.