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

Move Data

Former Member
0 Likes
399

Hi All,

I want to move data from ztable to master table.

HR tcode is PA30, should update master table from ztable. I have tried with BDC, recorded some fileds like pernr, from data, end date and infotype 2001 and subtype. this only moving data all these 5 fileds, but remaining calculation depend fields like total days, time, balance etc are getting ZERO values are passing to master table

How can i move data

Can you help on this issue..very Urgent

Regards,

PS

1 ACCEPTED SOLUTION
Read only

rainer_hbenthal
Active Contributor
0 Likes
379

You have to fill in both dynpros in PA30

2 REPLIES 2
Read only

rainer_hbenthal
Active Contributor
0 Likes
380

You have to fill in both dynpros in PA30

Read only

0 Likes
379

Hi Thank you for your reply,

You mean these two ,,, Please help on these..its very urgent

*&----


**& FORM BDC_DYNPRO

*&----


    • TEXT

*----


    • -->PROGRAM TEXT

    • -->DYNPRO TEXT

*----


*

*FORM BDC_DYNPRO USING PROGRAM DYNPRO.

*

*DATA: BDCDATA LIKE BDCDATA OCCURS 0 WITH HEADER LINE.

*

  • CLEAR BDCDATA.

*

  • BDCDATA-PROGRAM = PROGRAM.

  • BDCDATA-DYNPRO = DYNPRO.

  • BDCDATA-DYNBEGIN = 'X'.

*

  • APPEND BDCDATA.

*

*ENDFORM. "BDC_DYNPRO

*

*&----


**& FORM BDC_FIELD

*&----


    • TEXT

*----


    • -->FNAM TEXT

    • -->FVAL TEXT

*----


*

*FORM BDC_FIELD USING FNAM FVAL.

*

*DATA: BDCDATA LIKE BDCDATA OCCURS 0 WITH HEADER LINE.

*

  • CLEAR BDCDATA.

*

  • BDCDATA-FNAM = FNAM.

  • BDCDATA-FVAL = FVAL.

*

  • APPEND BDCDATA.

*

*ENDFORM. "BDC_FIELD

*

*&----


**& Form bdc_transaction

*&----


    • text

*----


    • -->P_0188 text

*----


*FORM bdc_transaction USING VALUE(P_0188).

*

*DATA: BDCDATA LIKE BDCDATA OCCURS 0 WITH HEADER LINE.

*DATA: MESSTAB LIKE BDCMSGCOLL OCCURS 0 WITH HEADER LINE.

*

*CALL TRANSACTION 'PA30' USING BDCDATA MODE 'A' "PMODE

  • UPDATE 'S' MESSAGES INTO MESSTAB.

*

*ENDFORM. " bdc_transaction

Message was edited by:

peter son