HRP1001 - Additional data

Hi,
I would like to programatically create a 1001 relationship record using RH_INSERT_INFTY. But I couldnt find a way to also update the 1001 Additional data for object types like Room(PAD22), Qualification (PAD31) etc.
For the rest of the Infotypes I am able to see a structure p<nnnn>_exp available which can be used.
Any help.
Thanks.

Solution:
Move your data to a structure of the additional data (e.g. PAD23, PADxx, etc).
Then use method cl_hr_adata_type_cast=>padnn_to_adata to cast your PADxx structure to the ADATA field of INNNN structure.
Calling RH_INSERT_INFTY with the INNNN-ADATA filled will create the additional data and it's links.
To moderator: I know this is an old thread. I am updating my solution for other users who may be asking the same question. I too was searching for this.

Similar Messages

  • Additional data on relationship between two objects

    Hi
    We have a requirement to capture additional data on a relationship between two objects.  The data to be captured are custom fields that are unique to the relationship between the objects and not specific to either of the objects.
    We created a new object type and related it to the position (S)and the job (C) object.  In the customising (Personnel Management/Personnel Development/Basic Settings/Maintain Relationships there is an option to set up Additional Data.  There are however several restrictions (e.g. the substructure has to be in T77AD).  When you set up an existing substructure (e.g. PAD22) and screen (e.g. 3000), it works really well, however we have not been able to get this to read our own substructure and screen (since there is no customer include on HRP1001 and the 'Additional data' button seems to go to MP100100 to find the screen).
    My question is two fold:
    a) Is this an allowed customisation (e.g. can we create our own substructure, screen and Query string)? And if so, how does the data get into T77AD (since SAP recommends that data should not be added to this table)? and
    b) Is there any documentation on this (thus far I have only received info on how to enhance infotypes which I don't think is relevant???)?
    If this can not be maintained is there any other suggestions on how to deal with this scenario?
    Any assistance will be appreciated.
    Regards
    Liezl

    Hi everyone
    Thanks for everyone who tried to assist us with this.  I am happy to report that our in-house guru's have found the answer.  So, for anyone who is interested:
    In programme MP100100 you have a screen 6000 which is a customer enhancements screen.  We set up two in-house function modules for the PBO and PAI with its own screen and added an append structure to PAD31 to add the fields required.  In the configuration, we then specified PAD31 as the substructure with screen 6000 and then also specified our own PBO and PAI function modules.  The parameters required for screen 6000 is set up within our own customer screens.
    Hope this will be helpful to someone - it certainly seemed to open up some doors for us!
    Regards
    Liezl

  • Do We need access key for Additional Data B in VA01

    Hi all,I have to add fields in Additional Data B,I have searched SDN about it and came to know that it is screen '8459' of program 'SAPMV45A',but it is asking key for that,is it safe applying access key for this screen?
    Thanks in advance.

    >is it safe applying access key for this screen?
    yes it is safe. SAP provided the screen 8459 only for adding our own custom fields to it. For this you need access key for the first time. along with that you need access key for
    PBO include, PAI include
    MV45AOZZ ,MV45AIZZ .
    check it once.

  • Adding new fields to additional data B screen in sales transaction

    Hi All,
    I have a requirement like this I need to add 3 input fields and 1 push button(select oppurtunity) in additional data B screen of sales order transaction.If I click on this button I want geneate one pop up dialog box just like as search help box and I should be able to search data for these 3 fields data based on some 4 input fields data?How can I acheive this?I can add button and what I have to write the code in PBO and PAI of this screen?Please some body help me in this regard.
    Regards
    Mahesh

    Hi friend,
    In SAP we can add few fields from maintain reserve fields. Please go through it;
    Maintain Reserve Fields In Customer Master
    There are reserve fields in the customer master record which are not used in the standard system. They are available for use and are as follows:
    Customer group 1 (View: V_TVV1 Field:KVGR1)
    Customer group 2 (View: V_TVV2 Field:KVGR2)
    Customer group 3 (View: V_TVV3 Field:KVGR3)
    Customer group 4 (View: V_TVV4 Field:KVGR4)
    Customer group 5 (View: V_TVV5 Field:KVGR5)
    You can find the fields in the customer master record under the sales and distribution data in Sales. Choose additional data under Environment.
    It is advisable to change the field description (Data elements KVGR1 to KVGR5).
    This is described in the system modifications in the Reserve fields unit of the customer master record:
    Reserve Fields in Customer Master
    Record
    In this step you maintain the valid entries for the individual views.

  • Sale Order additional data B.

    Hi,
    I have created 2 z fields in sale order additional data b at item level.
    but when user is entering any data in that field,same data is getting displayed for all line items.
    how to control that for particular item for which user has entered.
    Data Entered in z fields are used only for display purpose which are used for some calculations.

    hi,
    in PAI  usercommand  module  
    use loop endloop for internal table which store item level data 
    loop at item level data
    user command module 
    endloop.
    in module  driving program .
    module
    read table it_issue index tab_ctl-current_line transporting no fields.
      if sy-subrc = 0.
        it_issue-kostl = p_kostl.
        it_issue-ktext = p_ktext.
        it_issue-for_sys = p_for_sys.
        modify it_issue from it_issue index tab_ctl-current_line.
        clear it_issue.
      else.
        it_issue-kostl = p_kostl.
        it_issue-ktext = p_ktext.
        it_issue-for_sys = p_for_sys.
        append it_issue .
        clear it_issue.
      endif.
    endmodule  .
    regards
    deepak.

  • Is it possible to add 'Additional Data C' tab in VA01/VA02/VA03

    Hi All,
    Is there any way or in config that we can enhance the VA01/VA02/VA02 with one more tab other than 'Additional Data B' tab.
    i want to add 'Additional Data C' tab for a requirement.
    Please give your valuable comments.
    Thanks,
    Jaffer Ali.S

    Hi ,
    It can't done for the VA01/VA02/VA03.
    these are available for the .
    V45A0001  Determine alternative materials for product selection --->The Description of this enhancement tell us that it determines the alternative materials for product selection. (i.e., If  one material is not available what is the other material that has to be used as an alternative. So it is item specific).
    V45A0002  Predefine sold-to party in sales document--->By Description we understand that we can predefine sold-to party in the sales document. (i.e., it is used to populate the field sold-to party through user-exit while entering the data. ) But our requirement comes after entering the data in the screen and save button is pressed.
    V45A0003  Collector for customer function modulpool MV45A
    V45A0004  Copy packing proposal---->Copy packing proposal Into Out bound delivery. This description implies that  whenever we create a Delivery Order from Sales Order it copies the packing proposal  Based on the already created Sales order. So, there is no chance for us to save the data while we create or change a Sales order.    
    We can't done.
    Regards,
    Bharani

  • SEM-BPS how to load additional data for special users at runtime?

    Let´s assume you have a transactional info cube which contains SD Data from the source system.
    If you want to show additional data, let´s say the attributes of the sold materials which can be read in the table MARA of the source system (provided you use R/3, etc.)
    and you only want to show this data for a small amount of users, which need to see it, then i wonder how to do  this.
    am i right, that i can use the exit functions to init key figures, i.e. i could write some code which connects to the source system over RFC, downloads the data at runtime and presents it at the users excel sheet????
    moreover, is it necessary to extend the existing cube, just to achieve this aim?
    Message was edited by: Gideon Lenz

    Hello Gideon,
    there's no need to program anything. You can display any attribute in planning layouts. In your case you would extract the master data from material from SAP R/3 (MARA) into BW. The setup the layout to show the required attribute(s) in the layout in BPS.
    If the attribute is relevant only for a specific user group, just give them access to this "special" layout (create a planning folder or web interface for this group).
    Regards
    Marc
    SAP NetWeaver RIG

  • Mandatory field in sales order additional data tab

    Hi,
    I have added an extra field in additional data tab of sales order. 
    How can i make this field as mandatory for certain sales organisations ?
    TIA

    since it's conditional, I think I would add code in SAVE_DOCUMENT_PREPARE subroutine in MV45AFZZ, based on transaction code, prior values (YVBAP) and current values (XVBAP), and issue an error message, allowing user to return to the screens displaying Item table control, when the field is not properly populated.

  • VA01 creation of new feild in Additional data tab B and populating values

    Hi All ,
           I had created  a new field zzordqty in VA01 item level -> additional Data  Tab B  SE51 -> SAPMV45A-> 8459.
          The values while creating a sales order are coming from Inbound FM Idoc_input_orders .  for this particular field the value is stored in segment E1EDP35 when QUALZ is 011 the value of CUSADD is to be shown of the screen of VA01.
          For this I had tried to create a enhancement point in FM Idoc_input_orders , and tried to capture the value of CUSADD into XVAP-ZZORDQTY .
           But as soon as i come out of the enhancment point the value of XVBAP-ZZORDQTY BECOMES 0 .
           And at the screen level of SAPMV45A i had created a PBO and transfered the values from XVBAP TO VBAP .
            But since the values are getting cleared , the value of zzordqty is zero and also niether it s getting updated at table level .
            I request to let me know , how should i proceed further , either to use exists or badi's
    Thanks & Regards,
    Kavitha

    hi,
    you can do it in include MV45AOZZ. the method should be for module in PBO of subscreen 8459.
    and ifyou are not able to pass it to any standard structures( like xvap, or vbap or some thing like that) you can export it from PBO or PAI module) and catch it in the save exits (user exits)
    Edited by: Soumyaprakash Mishra on Oct 2, 2009 11:08 AM

  • Addition of new field in VA02 and VA01 in additional data tab B

    Hi,
    I have added a new field called delivery date to additional data tab B in both tcodes va01 and va02. Now, while creating or changing a sales order, if the Sales group is I00 then this field should be filled up mandatorily. For va01 and va02 i have done all the required coding where all this is done on pressing the save button when we are in the additional data b tab.It would throw an error message if the date is wrong and a wrning if it is empty (provided sales group is I00). I did the coding in 4462 screen.
    My requirement now is that if somebody doesnt go to the 'additional data b' tab n try to save the Sales order then also it should throw a warning or error stating that delivery date field should be filled up. Where exactly should i place the coding now? if it is screen 4900 then can someone suggest me at what place should the coding be done.
    Regards,
    Puja

    Hi Puja,
    Seems you have added the fields at item level in sales order and for this you must have appended the additional fields
    in vbap table. So to validate these fields you can use USEREXIT_CHECK_VBAP available in MV45AFZB user exit include.
    The fields you appended will be available in vbap structure, add your validation here or even in USEREXIT_SAVE_DOCUMENT_PREPARE  available in MV45AFZZ which is called before saving the sales order.
    Regards,
    Pawan

  • Custom field in VA01 at item level in Additional Data B Tab

    Hi ,
    I have a requirement to add a custom field at item level in Additional Data B tab of VA01/VA02. We have to store the data in that field in the VBAP table also have to validate the data entered in the field when user hit save.
    Can any body tell me step by step procedure to do that.
    Appreciate your response.
    Thanks,
    Rohit

    Add append structure  ZAVBAP  in table VBAP in Tcode: SE11.
    In this structure include the new fields to be added to the screen.
    Then in Tcode : SE80
    take program: SAPMV45A
    take screen 8459  and add the new field.
    Also add the validation in the flow logic.

  • Re: Populating Additional data in Material master record

    Hi,
    I am creating material master record using BAPI_MATERIAL_SAVE_DATA. I am using the below function modules to populate date in Additional Data Tab. I am getting the existing material details from BAPI_MATERIAL_GET_ALL and passing it to
    BAPI_MATERIAL_SAVE_DATA variables. I can create material successfully, but  "PROPORTION/PRODUCT UNIT"   TAB in Additional Data Tab is not populating.
    Program populates this data  for some materials and for some materials not.  For example,  when I try to create a new  material by copying  existing details from 1234 , New material will be created   with 12345(say), but "PROPORTION/PRODUCT UNIT"   TAB in Additional Data Tab is not populating.
    Now If I put a break point, to find out what could be the issue , and then press f6 ,  and re-execute program for the same material 1234, then my custom program can populates data.  I know its sound wiered, but I am not able to solve the issue.
        CALL FUNCTION 'VBWS_UOM_READ_WITH_MATNR'
          EXPORTING
            i_matnr         = it_mara-matnr
          TABLES
            e_meinh         = gt_meinh
            e_meinh_ws      = gt_meinh_ws
            e_meinh_ws_upd  = gt_meinh_ws_upd
            e_meinh_ws_updx = gt_meinh_ws_updx
            e_message       = gt_message
            e_return        = gt_return
          EXCEPTIONS
            error           = 1
            OTHERS          = 2.
        FREE: gt_message, gt_return.
        CLEAR : gt_meinh_ws_upd, gt_meinh_ws_updx.
        CALL FUNCTION 'VBWS_UOM_MAINTAIN_DARK'
          EXPORTING
            i_matnr               = lv_matnr
            i_kzwsm               = it_mara-kzwsm
            i_kzwsmx              = 'X'
            i_exit_by_first_error = 'X'
            i_user                = sy-uname
            i_buffer_refresh      = 'X'
            i_no_update           = ' '
          TABLES
            i_meinh_ws_upd        = gt_meinh_ws_upd[]
            i_meinh_ws_updx       = gt_meinh_ws_updx[]
            e_message             = gt_message
            e_return              = gt_return
          EXCEPTIONS
            error                 = 1
            OTHERS                = 2.
        LOOP AT gt_return WHERE type = 'S'.
          CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
        ENDLOOP.
    Any suggestions ...

    Hi Karthik,
    Thanks for your reply. It worked. But now I am facing strange issue. As you see my code above, i am using VBWS_UOM_MAINTAIN_DARK to update Addition data tab. however, the values of internaltable gt_meinh_ws_upd was not updated correctly inside the material master.
    For example, I am filling gt_meinh_ws_upd table with the below values
    gt_meinh_ws_upd-wsm = 'OZT'
    gt_meinh_ws_upd-atnam ' ZABCDE'
    gt_meinh_ws_upd-atwrt = 0.0023
    append gt_meinh_ws_upd.
    but when i see in material master,   gt_meinh_ws_upd-atwrt = 0.0023 is updated with 23, instead of 0.023. I debugged th func. module many times, I didnot come acroos the code what making it to 23.
    Any Idea karthik...
    Thanks in Advance

  • Screen compression problems in sales order additional data b screens

    When i enter va01 for the slaes order he screens are:
    SAPMV45A8309, Sales Document Header - User Exit Header
    SAPMV45A8459, Sales doc. Item - User exit item
    Use screen painter to change them. (transaction SE51)
    what happened is that i have four boxes in additional data b subscreens and i am calling another sub screen 9801 which contains table control what happened is that while run time i am getting gap in the boex of screen 8459, how to compreess the boxes or spaces to accomodate the table control.
    very urgent pls.....
    regards
    subba

    Thanks for your reply , Actually i am calling  9801 sub screen  with table control on to 8459 sub screen(sapmv45a program)
    still the problemm remains the same. I am using the code as below.zie,z01,zia are all modification groups to hide the boxes in the 8459 screen, pls check my code and revert back   urgently urgently.....
    PROCESS BEFORE OUTPUT.
                               Verarbeitung vor der Ausg
        MODULE ZZ_GET_TEXT.
       MODULE ZZ_FIELD_SETTINGS.
      CALL SUBSCREEN ZZAUDIT INCLUDING 'SAPMV45A' '9801'.
    PROCESS AFTER INPUT.
       CALL SUBSCREEN ZZAUDIT.
    MODULE    ZZ_FIELD_SETTINGS OUTPUT.
      LOOP AT SCREEN.
      Determine main grouping based upon mod group 3 field.
        CASE SCREEN-GROUP3.
          WHEN 'ZIA'.                    " Orbit  /interface architecture.
            PERFORM ZZ_FIELD_ZIA.
          WHEN  'ZIE'.                  " ERI interface.
            PERFORM ZZ_FIELD_ZIE.
          WHEN 'Z01'. " Generic -Relevant for all interfaces potentially.
            PERFORM ZZ_FIELD_Z01.
        ENDCASE.
      Handle display of contract versus other doc types.
        IF VBAK-VBTYP EQ  'G'.       "Contract doc type.
          IF SCREEN-GROUP4 NE  'Z02'.
            SCREEN-ACTIVE = 0.  " field not relevant for contract display.
          ENDIF.
        ELSE.                    "other doc types.
          IF SCREEN-GROUP4 EQ 'Z02'.
          Field not relevant for non-contract display.
            SCREEN-ACTIVE  = 0.
          ENDIF.
        ENDIF.
    FORM ZZ_FIELD_ZIE.
      IF NOT VBAK-AUART IN ZZR_AUART.
    IA related Doc Type - Hide ERI fields
        SCREEN-ACTIVE = 0.
      ELSE.
      IF SY-BINPT NE 'X'.         " Not Processing in BDC Mode
        SCREEN-INPUT = 0.         " Turn Off Input Ability
      ENDIF.
        CASE SCREEN-GROUP4.
          WHEN 'ZAU'.                " Audit Toggle Related
           IF zzshowaudit NE 'X'.
             screen-active = 0.
           ENDIF.
          WHEN 'ENA'.
            SCREEN-INPUT   = 1.
          WHEN 'ZTS'.
            IF SY-SYSID EQ 'DV2'.
              SCREEN-INPUT = 1.      " Testing Allowed in Development
            ENDIF.
        ENDCASE.
      ENDIF.
    FORM ZZ_FIELD_ZIA.
      IF VBAK-AUART IN ZZR_AUART.
      ERI related Doc Type  -Hide IA related fields
        SCREEN-ACTIVE = 0.
      ELSE.
        CASE SCREEN-GROUP1.
          WHEN '001'.                             "0902 specific fields
          WHEN '002'.                              "0902 WebCore fields
            IF  VBAK-VKORG NE '0902' AND
                VBAK-VKORG NE '0903' AND
                VBAK-VKORG NE '0917'.
              SCREEN-INPUT = 0.
            ENDIF.
          WHEN '003'.                              "0917 specific fields
            IF VBAK-VKORG NE '0917'.
              SCREEN-INPUT = 0.
            ENDIF.
          WHEN '999'.                             "Generic Fields
            IF VBAK-VKORG EQ '0917' OR
               VBAK-VKORG EQ '0902' OR
               VBAK-VKORG EQ '0903'.

  • How to add Fields in Additional Data B in VA01/VA02.PLease help me out.

    HI All,
    My requirement to add a Custom Screen in Va01/VA02 .Kindly suggest if any screen exists are there.
    How to Add extra fields in Additional Data B in header of VA01/VA02.is access key is neccessary for that.
    Thanks in  Advance.

    Hi
    Check the link
    http://techbays.com/2008/04/17/implicit-enhancement-in-sap-ecc-60/
    There is a BADI BADI_SD_V46H0001 and Method EXIT_SAPLV46H_003.
    You should be able to it without access keys.Consult your SD Functional Guy also
    Regards
    Sanil Bhandari

  • Adding Field in Additional Data B in VA02-Please help me out this

    Kindly help me out , I have a requirement to add a custom field at Header level in Additional Data B tab of VA01/VA02.
    Program: SAPMV45A
    screen 8459
    Can any body tell me procedure to do that.
    Appreciate your response.Thanks in advance

    Hi
    Check the link
    http://techbays.com/2008/04/17/implicit-enhancement-in-sap-ecc-60/
    There is a BADI BADI_SD_V46H0001 and Method EXIT_SAPLV46H_003.
    You should be able to it without access keys.Consult your SD Functional Guy also
    Regards
    Sanil Bhandari

Maybe you are looking for

  • Excel Output For Standard Report In R12

    Hi Experts, My Client wants Excel Output for Standard Reports ( ex:-Open Purchase Order Report (by cost center)_xml) I changed the default output to Excel in Template of xml publisher administrator Responsibility. Now it is showing the Excel output,

  • Please help me with iPhoto.....my memories are gone.

    I wish I knew what happen....I am using a MacBook Air OS X Lion 10.7.2 and iPhoto 11 9.2.1.  I had over 7000 saved in iPhoto, most were scanned in and separated by an adobe program but others were from my old PC.  I just bought and external hard driv

  • Function Module OrIdoc To Upload Campaign

    Hi All,          Is there any function module or idoc to upload campaign . Regards, Naveen Kumar M S

  • Relation between storage loc and workcenter/resource

    Dear Gurus My client wants that whatever materials (fert) coming out from a particular workcenter/resource should be posted to a particular storage location.And that the system should propose the storage location while posting of goods.Can a storage

  • Is pipeline transactional?

    Hi all! I try to understand transactional aspect of ALSB. Simple question: is it possible to create proxy service which transport is WebService/SOAP, which pipeline consists of several Service Callout nodes, and all these calls are in one transaction