Skip to Content

Can I Update Basic pay master data Infotype 0008 data with the help of BDC.

Hello Experts,

I want to update Infotype 0008 Basic pay master data with the help of BDC.

But while creating the BDC how can it update against a particular wage type as the line positon in the table control is not fixed for the wage type.

How my report for BDC will came to know about the wage type line position.

Regards.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Dec 04, 2008 at 08:27 AM

    Hi,

    Insted of BDC use the FM.. that would be better then BDC..I hope..

    HR_INFOTYPE_OPERATION

    Raghunath.S

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2008 at 06:58 AM

    hi,

    This is our regular requirement i am sending code for this got hrough it.

    SPLIT wa_filedata_07-line AT l_tab INTO

    wa_record_07-v_pernr wa_record_07-v_begda wa_record_07-v_endda wa_record_07-v_trfar

    wa_record_07-v_trfgb wa_record_07-v_trfgr wa_record_07-v_trfst

    wa_record_07-v_lga01 wa_record_07-v_bet01 wa_record_07-v_lga02 wa_record_07-v_bet02 wa_record_07-v_lga03 wa_record_07-v_bet03

    wa_record_07-v_lga04 wa_record_07-v_bet04 wa_record_07-v_lga05 wa_record_07-v_bet05 wa_record_07-v_lga06 wa_record_07-v_bet06

    wa_record_07-v_lga07 wa_record_07-v_bet07 wa_record_07-v_lga08 wa_record_07-v_bet08 wa_record_07-v_lga09 wa_record_07-v_bet09

    wa_record_07-v_lga10 wa_record_07-v_bet10 wa_record_07-v_lga11 wa_record_07-v_bet11 wa_record_07-v_lga12 wa_record_07-v_bet12

    wa_record_07-v_lga13 wa_record_07-v_bet13 wa_record_07-v_lga14 wa_record_07-v_bet14 wa_record_07-v_lga15 wa_record_07-v_bet15

    wa_record_07-v_lga16 wa_record_07-v_bet16 wa_record_07-v_lga17 wa_record_07-v_bet17 wa_record_07-v_lga18 wa_record_07-v_bet18

    wa_record_07-v_lga19 wa_record_07-v_bet19 wa_record_07-v_lga20 wa_record_07-v_bet20 wa_record_07-v_lga21 wa_record_07-v_bet21

    wa_record_07-v_lga22 wa_record_07-v_bet22 wa_record_07-v_lga23 wa_record_07-v_bet23 wa_record_07-v_lga24 wa_record_07-v_bet24

    wa_record_07-v_lga25 wa_record_07-v_bet25 wa_record_07-v_lga26 wa_record_07-v_bet26 wa_record_07-v_lga27 wa_record_07-v_bet27

    wa_record_07-v_lga28 wa_record_07-v_bet28 wa_record_07-v_lga29 wa_record_07-v_bet29 wa_record_07-v_lga30 wa_record_07-v_bet30

    wa_record_07-v_lga31 wa_record_07-v_bet31 wa_record_07-v_lga32 wa_record_07-v_bet32 wa_record_07-v_lga33 wa_record_07-v_bet33

    wa_record_07-v_lga34 wa_record_07-v_bet34 wa_record_07-v_lga35 wa_record_07-v_bet35 wa_record_07-v_lga36 wa_record_07-v_bet36

    wa_record_07-v_lga37 wa_record_07-v_bet37 wa_record_07-v_lga38 wa_record_07-v_bet38 wa_record_07-v_lga39 wa_record_07-v_bet39

    wa_record_07-v_lga40 wa_record_07-v_bet40.

    APPEND wa_record_07 TO it_record.

    this is for splitting logic if the data comes from applications server and in recording program.

    DO l_count TIMES.

    l_counter1 = l_counter1 + 1.

    l_counter = l_counter + 1.

    IF ( l_counter1 LE '07' ).

    CONCATENATE 'Q0008-LGART(' l_counter1 ')' INTO l_lgart_name.

    CONCATENATE 'WA_RECORD_008-V_LGA' l_counter INTO l_lgart_value.

    ASSIGN (l_lgart_value) TO <fs_lgart_value>.

    PERFORM bdc_field USING l_lgart_name

    <fs_lgart_value>.

    CONCATENATE 'Q0008-BETRG(' l_counter1 ')' INTO l_betrg_name.

    CONCATENATE 'WA_RECORD_008-V_BET' l_counter INTO l_betrg_value.

    ASSIGN (l_betrg_value) TO <fs_betrg_value>.

    PERFORM bdc_field USING l_betrg_name

    <fs_betrg_value>.

    ELSEIF ( l_counter1 GT '07' ).

    PERFORM bdc_dynpro USING 'MP000800' l_dynpro.

    PERFORM bdc_field USING 'BDC_CURSOR'

    'Q0008-LGART(07)'.

    PERFORM bdc_field USING 'BDC_OKCODE'

    '=P+'.

    CLEAR l_counter1.

    l_counter1 = l_counter1 + 1.

    CONCATENATE 'Q0008-LGART(' l_counter1 ')' INTO l_lgart_name.

    CONCATENATE 'WA_RECORD_008-V_LGA' l_counter INTO l_lgart_value.

    ASSIGN (l_lgart_value) TO <fs_lgart_value>.

    PERFORM bdc_field USING l_lgart_name

    <fs_lgart_value>.

    CONCATENATE 'Q0008-BETRG(' l_counter1 ')' INTO l_betrg_name.

    CONCATENATE 'WA_RECORD_008-V_BET' l_counter INTO l_betrg_value.

    ASSIGN (l_betrg_value) TO <fs_betrg_value>.

    PERFORM bdc_field USING l_betrg_name

    <fs_betrg_value>.

    ENDIF.

    ENDDO.

    here l_counter is 18. because in IT0008 we can give 17 or 18 wage types.

    Please go through it , if you want any clarifications aboout this you can reply it.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.