Automatic creation of BP relationship at the time of creation of BP

When a user creates a new account using BP transaction we need to create a 'Has the responsible employee' relationship automatically. If we try to create the same on save ( Using function BUPR_RELATIONSHIP_CREATE in BAdI PARTNER_UPDATE ) it doesn't work as the account would not have got created at the time of save. Hence we took a different approach of trying to create the relationship when the user clicks on 'Relationship' button ( in portal it is 'Relationship' tab ). We couldn't find a suitable BAdI which would contain the details of the recently created account as its import parameter.  Is there any other approach we could use to solve this issue? Please let me know your ideas on the same.

Hi,
You can implement this functionality using the BDT.
--> in the PAI event, update the relationships in memory using function BUB_BUPA_RELATIONS_MODIFY.
For BDT use, take a look at the following thread:
Re: How do I update custom fields in a partner when I save the record?
Michael.

Similar Messages

  • Different batch no in prod order at the time of creation of prod order

    Hi, we need different batch numbers in production order at the time of creation of production order. tried in system, i can able to create only one batch no at the time of creation of order. we need different batch no at the time of order creation and same no should be assigned at the time of GR from prod order. pls advise how to map this.

    Dear,
    Use the Exit EXIT_SAPLCOBT_001 under enhancement PPCO0001 where-in based on your requirement you can create batch for your order. You can use CALL FUNCTION 'VB_CREATE_BATCH' to create the batches as per your requirement.
    Also make sure the automatic batch creation setting in Prodn Scheduling profile has been turned-off so that the batch is created only through the user-exit.
    Refer this thread,
    Re: Batch creation
    Please try and revert back.
    Regards,
    R.Brahmankar

  • Without equipment creation serial number required at the time of delivery?

    Dear SAPIENTS,
    Without equipment creation serial number required at the time of delivery? In customizing i have defined that equipment not required in serialization profile. But still i am getting equipemnt number at the time of delivery of sales order.
    Regards,
    Kaushal Rai

    Dear Venu,
    You want to generate Alphanumeric Serial Number that is possible by following Enhancement for Serial Numbers:
    Pls find here some details about generating alphanumeric serial numbers as below :
    You can generate alphanumeric serial number with the following BADI / Customer Exit:
    Name of Enhancement : IQSM0001
    Name of Function Module Exit: EXIT_SAPLIPW1_001
    Name of Include : ZXQSMU01
    ZXQSMU01:
    This user exit can be used to create the serial numbers automatically for material of a production order. Number of serial numbers generated will be equal to the total number of quantity. The purpose behind development of this user exit was to attach prefix in each serial number generated.
    so as per your requirement you can generate serial number like ABC0001 etc.
    Process Steps:
    For exit: EXIT_SAPLIPW1_001
    1. Get serial number profile for a material in respective plant.
    2. Check if the profile is u2018XYZu2019.
    3. If profile is u2018XYZu2019 generate the serial numbers for the given quantity of material in production order.
    General Program Structure
    For exit: EXIT_SAPLIPW1_001
    1. Get the serial number profile using function module 'MARC_SINGLE_READ' for a material.
    2. Check if the profile is u2018XYZu2019.
    3. If the serial number profile is u2018XYZu2019 then generate the serial numbers for the given production order quantity of a material.
    4. Concatenate ABC as a prefix to the all generated serial numbers
    Provide above details reg. implementation BADI / Enhancement to your ABAPer and go ahead.
    You can implement above Enhancement in CMOD.
    Hope this helps.
    Revert in case of any doubt.
    Award points if useful.
    Regards,
    Tejas

  • Alert message is needed at the time of creation ,if it reaches ,the maximu

    DEAR SA EXPERTS,
    Can you please me that alert message is needed at the time of creation ,if it reaches ,the maximum stock level (Stock+level)
    Thanks
    Mohit

    Hi,
    Please refer the below links.
    Alert Message
    Re: Alert Message
    Hope it helps you.
    Thanks.

  • At the time of creation of POaccount assignment is coming mandatory

    Dear all;
    At the time of creation of PO system showing the msg that the  account assignment is mandatory for the material ,how to overcome this?
    Kindly suggest whre in material master record I can change settings for account assingment ,or the control is somewhere else.
    Regards;
    Joydeep Mukherjee

    Hi
    In OMS2 t-code
    for your material type and  plant ,you have to mark value based and qunaity based updation mark
    Regards
    kailas Ugale

  • Problem at the time of creation order

    Dear Gurus,
    facing update termination error at the time of creation/change the sales order..in development system
    after some analysis,  found one more error due to which above mention error is coming
    report run : "RMCSUTIC" : check utility logistic info system
    after running this report system giving error message "Unit O2 : No DDIC Information for source field OI0BW_ADQN - OIMSEHI1"
    but when but in production server it's working fine without error message
    kindly suggest some solution for the same
    Regards,

    No DDIC Information for source field
    You may have to check the following notes.  Take the help of your basis team.
    1)  542872
    2)  557683
    3)  579022
    4)  645136
    thanks
    G. Lakshmipathi

  • Issue at the time of creation of transfer order for inbound delivery

    Hello,
    I am facing one issue at the time of creation of transfer order for inbound delivery.
    If I create inbound delivery for purchase order with account assignment as 'M' (Ind. cust. w/o KD-CO), inbound delivery is not updated. Also document flow for inbounde delivery s not updated. I can create N number of transfer orders for on inbound delivery. Need help to resolve issue.
    If I create inbound delivery for purchase order with account assignment other than 'M' (Ind. cust. w/o KD-CO), inbound delivery and document flow is updated.
    Thanks and Regards,
    Nikhil

    Hi
    In OMS2 t-code
    for your material type and  plant ,you have to mark value based and qunaity based updation mark
    Regards
    kailas Ugale

  • Automatic and manual batch determination at the time of Goods receipt

    hi,
    where i can have the settings for automatic and manual batch determination at the time of Goods receipt and goods issue..
    E.g.: If i am receiving material from vendor then my requirement is system will generate batch automatically...
    Where  we can get this setting?
    Tx
    Uts

    Dear,
    You assign the batch number either
    Manually
    Automatically, using internal batch number assignment, refer to Customizing for Batch Management under Internal batch number assignment.
    Internal batch number assignment is activated for the complete client, unless you exempt individual plants or materials using a customer exit (see Configure customer exits for intern. batch number assignment in Customizing for Batch Management).
    The R/3 System informs you that the internal batch number assignment is active. You are however only informed once per transaction, for example, when you enter the first item on the multiple-entry screen.
    Please refer: http://help.sap.com/saphelp_45b/helpdata/en/25/283cb44f7811d18a150000e816ae6e/frameset.htm
    Regards,
    Syed Hussain.

  • Automatic creation of Material Master at the time raising the PO !!!

    Hello All,
    I am stuck in a scenario of our client which should be implemented (or mapped) in SAP.
    Scenario: At the time of creating the PO (in there legacy system -in house developed) they can choose the items from the existing master data or/and they can also add a new item (which is not present in the master data records at the time of creating the PO).
    Now as soon as the system realise that a new item is inserted into the PO, it will create that item record automatically in the backend (database) and the master data will be present from there on.
    The items they are dealing with are all fashion accessories and they generate order on the following basis:
    1. Demand of particular item in market.
    2. List of items provided by the vendor.
    3. Based on the requirement in there outlets.
    So for them its very difficult to fix there master data records, as it can be changed daily or monthly as per the market conditions. At the same time every time they order, its almost around 100 different items (some time 80 of them are new) in a single PO so they cannot create 80 records manually each time.
    These items are not consumable material so obviously they are maintaining the stock for them. They are also not going to use IS Retail.
    I am not at all sure how can we map this particular practice in SAP, it would be really appreciated if any one could help me on this problem.
    Please let me know if you need any other details from my side.

    Hi,
      As you have two different systems one in house developed and another SAP, and the PO creation part starts from Legasy system which creats the PO in SAP, you can do some development as per below
    1:  While Passing the details from legasy to SAP, use two columns in legasy one will contain the Material Code of ECC (for laready exist material ) and another for deescription of material.
    2: In case material is new for which there is no material master in ECC pass only description from legasy systems.
    3:While getting triggred from Legasy to ECC to create the PO, first check whehter all the material code exists or not in ECC.
    4:If some material are not created (only description present) for those material first create the Material Code using BAPI 'BAPI_MATERIAL_SAVEDATA'.
    5: Aftre creation of Material code create the PO using BAPI ' BAPI_PO_CREATE1'.
    6:For the new created material , trnasfre the master record from ECC to Legasy systemso that next time user can see that material in your legasy system.
    Regards,
    Zafar

  • Automatic creation AUC sub assets at the time of settlement

    Hi,
    I have created the investment profile,AUC asset class,Source structuce(Hard,Pave and Soft) and cost element group(Hard,Pave and soft) . Then assign these three source structure to Investment profile.
    I created WBS element under project and released the WBS.
    After that I posted the values against the WBS different cost element . At the time of AUC seetlement thru CJ88.I am getting Three AUC asset with Sub number -0(1000-0,1001-0 and 1002-0) automaticaly. But Business is expecting to settle automatically(1000-0(Hard),1000-1(Pave),1000-2(Soft) respectively.
    Is there any way to settle AUC sub asset wise(Eg: 1000-0, 1000-1 ans 1000-2)automatically.
    Please share your suggestion on this.
    Appreciate your help!
    Regards,
    Prakash Reddy.

    Hello VIrendra,
    I am trying to settle WBS to AUC settlement thru CJ88. In this case We need to settle WBS to  AUC sub number wise 0,1 and 2 respectively based on the cost element. Is there any settings required to create AUC asset sub number wise creation?
    Thanks& Regards,
    Prakash Reddy.

  • Automatic Creation of Sales Order at the Time of PGI

    Hi Experts,
    Is it possible to create automatic Sale Order at time of PGI "while creating Outbound deleivery w/o reference to Sale Order'?
    Like in MM there is feature (standard) that PO can be create through Inventory management also,
    at the time GR w/o PO system creates PO in background.
    Please help me out,
    Regards
    Arvind

    Hi Srinath,
    Thankx for u'r immidiate reply,
    "This is my business requirement in implementation, i.e. customer directly purchase Organic Manure from plant stock and pay bill against the quanty purchased." although the reoprting purpose will be resolved by sale bill report."
    And as we know that Document (copy controls) flow from Inquiry>Contract>Order>Out bound deleivery>Billing. this is standard in the system.
    i.e. Copy Order to Order (VTAA)
    Order to delivery (VTLA)
    Order to Bill  (VTFA)
    Del to Bill (VTFL)
    This T-codes have assignments of source to copy in the target with routins (for the flow of data from field to field)
    I am trying to understand that flow of data to be copied in backward flow i.e. from PGI to order, and i am expecting that this can be done, but unable clarify my self that should it be done or not.

  • Automatic Creation of primary key at the time of creating entries

    Hi All,
    I have a requirement to generate the primary key automatically at the time of creating entries. I have managed to do so by writing an event code for the maintainance object in SE54.
    However called only when I create entries throught the Maintainance View.
    It does not get called when I write an insert statement in the program.
    Please suggest a way to achieve this.
    Thanks in advance,
    Archana.

    for assigning the primary key while using insert statement, write a piece of code to get the last pk value, increment it by 1 and then assign this value to the pk field of the next record while inserting. if you are using a fn mod to insert values, just have this piece of code right before the insert query. a better way would be to use a GUID which will be unique globally. there is a fn mod GUID_CREATE which you can use to generate GUID. i don't think there is a way to automate this while making entries using se11, unless you change the code that actually creates the entry in the database.

  • Auto Creation of Storage Location at the time of Goods receipt

    Dear All
    Please tell me how can i create storage location automatically at the time of Goods receipt.
    i already made the configuration in OMJ8 for movement type and required plant
    still, at the time of creating PO its not getting created..
    Please advice
    Narendra C.

    Hello Narendra,
    If you are trying for automatic creation of strorage location for goods movement to special stock, then ithe data will nit be created. This standard SAP functionality.
    Also if you have maintained storage location in the preceeding documents, then it will automatically fetched during goods reciept.
    BR,
    Tushar
    Edited by: Tushar Patankar on Feb 4, 2011 12:50 PM

  • Ship to record not populated in the CDHDR table at the time of creation

    HI
    I have created the Ship to party in R/3 and automatically i couldnt found the customer number entry with Change object as " I " in the table CDHDR. but ideally all the master data creation entries will be written in the CDHDR table with " I ".
    Please help me out here.
    Helpful answers will be rewarded.
    Regards,
    Ram.

    In that case, try maintaining only the dates in that table and execute.  Once the data is populated, ensure that transaction code is XD01 and not XD02.  Moreover, I am not sure, system will show the creation time there.  May be you can try in KNA1 where also, you can see the creation date but not time.
    As an alternative, execute XD02 for that ship to party where from top menu bar, click on Environment => Account changes => All fields.  Again double click on "Entries", so that system will display the creation and changes made to that customer with date.  Double click on the first record so that system will show when that particular activity was taken place and at what time.
    thanks
    G. Lakshmipathi

  • Default Header text comes in PO at the time of creation

    Hi Friends,
                   my problem is that a default Header text must come on the PO based on the user or purchasing group at the time Creation (In Transaction ME21N).
    Is there any user exits or badi for it. I have already searched for them but i have not got any thing. Please help me.
    Thanks for ur valuable answers

    yes i know that through copy control we can get default text but it is item level text instead of the header text.and other thing it does not depend on the user or purchasing group. I default header text that is populated imediately when user call ME21N. So is there any BADI or user exit for that.Please reply.
    Thanks for ur reply and valuable answers
    null

Maybe you are looking for

  • USB Mass Storage device problem

    Hello, I cant use my USB mass storage device in my computer, it is a SanDisk ImageMate CF/SM unit, which works perfectly in every other computer I have tried it, but in this one it hangs while accessing the device, and in linux, it hangs while mounti

  • Error in installing applications-Not able to install any applications

    Hello,  I bought Blackberry Z3 on just 3 days back,  I am not able to install any Applications. (Example: Wikipedia, News, WhatsApp.. etc) After download complete it is always showing " Error in installing application" If i Check inside Myworld -? Ac

  • How do you make a link open on a new page (typically the target="_blank" command) in MUSE?

    how do you make a link open on a new page (typically the target="_blank" command) in MUSE?

  • Hierarchy missing in COMM_HIERARCHY

    Dear experts, We are on SRM 7/ECC6 and I have done all middleware settings as per note 720819. There are no errors. R3AM1 shows everything in green. However the product categories under COMM_HIERARCHY have been transferred as flat structure instead o

  • Extremely high fan speeds while using Skype

    I have a MAc book pro intel based, the fan goes on whirling at the hihgest possible speed even when there is about 30% of cpu usage i tried the SMC and the PRAM reset but it hasn't helped me at all. Does any one ave any idea how to fix this problem?