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

HR_MAINTAIN_MASTERDATA

joachimvanpraet
Active Participant
0 Likes
481

Hello,

I'm trying to edit contract data (infty 16) via an action.

this is my proposed_value table:


    1| 0000 | P0000-MASSN           30          
    2| 0000 | P0000-BEGDA           20070802    
    3| 0000 | P0000-ITBLD           01          
    4| 0016 | P0016-PERNR           00035153    
    5| 0016 | P0016-INFTY           0016        
    6| 0016 | P0016-ENDDA           99991231    
    7| 0016 | P0016-BEGDA           20070802    
    8| 0016 | P0016-AEDTM           20070724    
    9| 0016 | P0016-UNAME           JOACHIM     
   10| 0016 | P0016-LFZFR                       
   11| 0016 | P0016-LFZZH           010         
   12| 0016 | P0016-KGZFR                       
   13| 0016 | P0016-KGZZH           012         
   14| 0016 | P0016-KDGFR           13          
   15| 0016 | P0016-KDGF2           13          
   16| 0016 | P0016-EINDT           20050511    
   17| 0016 | P0016-CTTYP           02         
   18| 0016 | P0016-CTEDT           20071206       
   19| 0016 | P0016-ZZWALOY         EUR         
   20| 0016 | P0016-ZZWAVOY         EUR            
   21| 0016 | P0016-ZZHFT                 
   22| 0016 | P0016-ZZFSO           1 

and this is the way I call the function:


    CALL FUNCTION 'HR_MAINTAIN_MASTERDATA'
      EXPORTING
        pernr                    = p0000-pernr
        massn                    = p0000-massn
        ACTIO                    = 'INS'
        TCLAS                    = 'A'
        begda                    = p0000-begda
        ENDDA                    = '99991231'
*       OBJPS                    =
*       SEQNR                    =
*       SPRPS                    =
*       SUBTY                    =
*       WERKS                    =
*       PERSG                    =
*       PERSK                    =
*       PLANS                    =
        dialog_mode              = '0'
        LUW_MODE                 = '2'
*       NO_EXISTENCE_CHECK       = ' '
*       NO_ENQUEUE               = ' '
      IMPORTING
        return                   = bapireturn
        RETURN1                  = return1
        HR_RETURN                = hr_return
      TABLES
        proposed_values          = proposed_values
*       MODIFIED_KEYS            =
    .

return1 contains a message ZPA 062: Please fill in the contract definition datas!

when I debug this and change the dialog_mode into 1, I can see that in the second screen (= screen for infty 0016) the field with the contracttype (P0016-CTTYP) is empty.

Can anybody help me out?

thanks,

Joachim

2 REPLIES 2
Read only

joachimvanpraet
Active Participant
0 Likes
364

There was a problem in the PBO for infty 16 ...

Read only

Former Member
0 Likes
364

How to insert zfield value using HR_MAINTAIN_MASTERDATA of an table pa0315

e.g : in imfotype it0315 i enhance one field like zzst ..and then inset value.

Edited by: monirulsk on Apr 11, 2011 4:39 PM