Populate partner number from return IDOC.

Hi Experts,
I have a requirement where I need to populate partner number from return IDOC to the delivery document. The partner number will not be necessarily have a master data in SAP.Example: I will get a forwarding agent number which will not have a master data created in R/3, but still SAP should allow me to save the delivery with the number that I put in the delivery header-partners with appropriate partner funtion defined by us. Ideally my IDOC will carry any number which I need to populate under header partners in the delivery with out getting any error message saying "No master record exists for XXXXXX". Please provide your expert opinion.
Regards,
Emaya

Emaya,
You cannot save a Partner Function with a Partner Number that doesn't already exist in SAP. Therefore you either need to have the partner(s) created in SAP, or find somewhere else to store the data. There are a few free-format fields in LIKP that may suit your purpose, alternatively you could extend the iDoc & table LIKP to incorporate a new field.LIKP-LIFEX is a good candidate if you're not using it already, or of course there's always a text field.
Cheers, Paul.

Similar Messages

  • How to find PO number from ORDRSP Idoc.

    Hi,
    Can  anybody let me know how to find the PO number from the Idoc ORDRSP.
    Scenario is as below:
    SAP system1 will send PO to SAP system2.(Idoc type ORDRS05).
    When SO is created in SAP system2, it will send a confirmatory Idoc of message type ORDRSP.
    From this I have to find  the PO number as I can find only VBLNR.
    Points assured for workful solutions.
    -B S B

    Hi BSB,
    CHECK THIS CODE
    DATA : BEGIN OF itab_status OCCURS 0,
              idoc           LIKE edids-docnum,
              date_stauus    LIKE edids-logdat,
              status_counter LIKE edids-countr,
              status         LIKE edids-status,
              descrp(70),
              ponumber       LIKE ekpo-ebeln,
              mess           LIKE edidc-mestyp,
    END OF itab_status.
    DATA: text111        LIKE e1mbxyi.
    DATA: text11         LIKE e1edp02.
    IF itab_status-MESS = 'WMMBXY'.
       select single * from edid4  INTO ITAB where segnam = 'E1MBXYI' AND
                     HLEVEL = '02' AND DOCNUM = itab_status-idoc.
    MOVE  : ITAB-SDATA  TO TEXT111 ,
    text111-EBELN TO itab_status-ponumber.
    ELSE.
    YOUR CASE FALLS IN THIS CATEGORY****
    select single * from edid4  INTO ITAB where segnam = 'E1EDP02' AND
                     HLEVEL = '03' AND DOCNUM = itab_status-idoc.
    MOVE  : ITAB-SDATA  TO TEXT11 ,
    text11-BELNR TO itab_status-ponumber.
    ENDIF.
    endif.
    LET ME KNOW IF YOU NEED ANYTHING ELSE.
    THANKS
    VENKI

  • Get IDoc-number from flat IDoc using dynamic configuration

    Dear experts
    In an IDoc2File scenario I have added the IDoc-number to dynamic configuration using the folling code in an UDF:
    DynamicConfiguration conf = (DynamicConfiguration)
    container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey FileName = DynamicConfigurationKey.create("http:/"+"/sap.com/xi/XI/System/File","DOCNUM");
    conf.put(FileName, a);
    The information is stored in the SOAP message
    <SAP:DynamicConfiguration SOAP:mustUnderstand="1">
      <SAP:Record namespace="http://sap.com/xi/XI/System/File" name="DOCNUM">0000000000012345</SAP:Record>
    </SAP:DynamicConfiguration>
    Can anybody tell me how I can access this information in the "variable substitution" section of the CC? Perhaps something like "message:docnum"?
    Additional information:
    Taking the IDoc-number from the payload using e.g. "payload:ORDERS05,1,IDOC,1,EDI_DC40,1,DOCNUM,1" does not work, since the XML-IDoc has been converted to an flat-IDoc.
    Thanks in advance for any good ideas
    Markus

    Dear Rodrigo and Sarvesh
    Thanks for your help so far! I applied your hints and now it is working fine.
    But now I have the following additional questions
    1.) My message mapping only maps the input IDoc to an output IDoc of the same type and structure. The MM is only required to process the UDF. Is there another, better solution to achieve my requirement that the IDoc-number shall be part of the filename?
    2.) In the CC you have the possibility to use temporary files (section "Processing", Option "Put File" = "Use Temporary File". I think this will not work with the given solution, will it?
    To possibly help somebody else or clarify the mechanism once again, I wrote down how my solution now looks like.
    My UDF in the message-mapping looks like this
    - Input = DOCNUM of IDoc, e.g. ORDERS05/IDOC/EDIDC/DOCNUM
    - Outpt = DOCNUM of IDoc, e.g. ORDERS05/IDOC/EDIDC/DOCNUM
    - UDF:
    public String putDynamicConfiguration(String docnum, Container container) throws StreamTransformationException{
    try
         DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
         DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
         String filename = "Prefix_" + docnum + ".txt";
         conf.put(key, filename);
         return docnum;
    catch (Exception e)
         return docnum;
    In the CC the settings are now as follows
    File Name Scheme = . -> only a dot or something else, because this field is obligatory, even if it is not used in this case.
    Variable substitution (...)
        Enable -> unchecked
    Adapter-Specific Message Attributes
        Use Adapter-Specific Message Attributes -> checked
        Fail If Adapter-Specific Message Attributes Missing -> checked
        File Name -> checked
        Directory, File Type, Temporary Name Scheme for Target File Name -> unchecked
    When I send an IDoc to PI and view the Adapte-Engine Version of the message (the SOAP-document, not the payload) I can find the Filename:
    <SAP:DynamicConfiguration SOAP:mustUnderstand="1">
    <SAP:Record namespace="http://sap.com/xi/XI/System/File" name="FileName">Prefix_0000000000012345.txt</SAP:Record>
    </SAP:DynamicConfiguration>

  • How to find Outbound Idoc number from inbound Idoc number.

    Hi,
    I have one inbound Idoc in my system, then
    How to find the  idoc number from the system which sends that idoc(Outbound Idoc number).

    Hello
    You can use fm SREL_GET_NEXT_NEIGHBORS for this purpose.
    Scenario: An EDI purchase order is received by SAP-XI and forwarded as Inbound ORDERS IDoc to R/3. SAP-XI generates an (outbound) IDoc number which differs from the (inbound) ORDERS05 IDoc in the R/3 system.
    Calling fm SREL_GET_NEXT_NEIGHBORS with the following parameters:
    OBJECT-OBJKEY = <IDoc number, 16-digits>
    OBJECT-OBJTYPE = 'IDOC'
    MAX_HOPS = '99'            " <<< get all links
    I get the following result:
    0000000000133906                                   IDOC       CUSTOMER   OUTIDOC
    0000000000407402                                   IDOC                  INIDOC
    000000370383                                       BUS2012    CUSTOMER   OUTBELEG
    0010057944                                         BUS2032               INBELEG
    Outbound IDoc number
    Inbound IDoc number (ORDERS05)
    PO number
    Sales order (created from inbound ORDERS IDoc)
    Regards
      Uwe

  • How to get busines partner number from organization id ?

    Hello,
    I'm working into SRM 4.0.
    I would like to determine the business partner number of an organization for which I know the organization id ('O' + number).
    Do you know a way / function module to achieve it ?
    Thank you very much for your support.
    Regards.
    Fabrice

    Hi,
         You can enter the name of the org in "NAME ORG2" field of table BUT000 to get the BP id in the field "PARTNER".
    BR,
    Disha.
    Pls reward points for useful answers.

  • Partner number from external catalog not transferred to SC

    Helo All,
    I dont see a partner no in 'ET_SC_PARTNER' in BAdi 'BBP_CATALOG_TRANSFER' when I transfer external catalog item to SC. Is there any config that has to be done to get the vendor number in SC?
    Any kind of help is rewarded.
    Thanks,
    Chandra

    Hello Chandra,
    Please check your external catalog transfers NEW_ITEM-VENDOR value. If the external catalog is single supplier catalog you can maintain Business Partner in catalog ID detail customizing.
    Regards,
    Masa

  • Populate Serial Number from SO to forms

    Hi Gurus
    Need yr expertise.. I have maintained serial number in Sales Order (Extras --> Technical Objects).. I have a requirement to print the serial number in forms.. How do I do that? I have checked the serial number and it is in structure (RIWOL-SERNR)..
    Pls advise..
    Sanjay

    Hi Sanjay
    Serial Number Profile has Procedures , those procedures may be examples
    a)Maintain goods receipt and issue doc.
    b)Serial numbers in PP order
    c)PP order release
    d)Serial nos in repetitive manufacturing
    e)Maintain inspection lot
    f)Serial numbers in SD order
    g)Completness check for delivery
    h)Completion check IR delivery
    i)Maintain delivery
    j)Maintain returns delivery
    So we can maitain multiple procedures under one serial number profile.
    2) Those procedures might w.r.t our application
    3) In addition to that that procedures having another settings like Sr number Usage and Equipment number requirment like to create or not create.
    4) Serial number profile has some settings like Equipment category, stock chek etc
    5) The T.Code for Serial Number Profile is OIS2
    6) A Material will be activated for Serial Number Applications, and start asking to provide serial numbers eg. at the time Goods Movements, Production order etc
    7) The setting required is In Work Scheduling view, we can assign the profile
    8) Serial Number creation can be done at two places a) By IQ01 or IQ04 Tranacations and during Good Movement
    9) Normally system can generate only Numercal serial numbers by Internal Sr Number creation, Alpha Num is Manual
    10) If alpha numerical means we have to enter or have to make z program with our logic by calling the IQ01 tranasaction and entering our alpha numerical numbers
    11) A serial number can be changed or a material which was assigned to serial number can be changed by using the transaction IQ02 with serial number special functions
    The below link will help u
    http://www-03.ibm.com/servers/storage/disk/pdf/smsm200.pdf
    Reward if useful to u

  • How to get Business Partner Number from Position Code

    Please help me in determining the Business Partner assigned to a particular position in the Organizational Structure.
    Short code of the position is available in table HRP1000 field SHORT.
    Thanks in advance

    Dear Saurabh
    You can determine business partner assigned to organization by using PDP.
    When you assign partner to organization, in relationship tab of partner we notice relationship of "is employee responsible".
    we can use this relation to determine patner assigned to org
    Step 1: Define partner function
    Step 2: Define Access Sequence..Here use "BP relationship" and specify the partner function that you are going to determine from organization.
    Step 3: Define PDP
    Step 4: Goto business partner relationship and select maintained sales org and your partner function.
    Your pdp will be able to determine partner assigned to organization.

  • Determine Partner number based on IDoc Data Segments

    Are there any user exits or BADI, which can be used to determine Control record parameters (Partner), based on IDoc Data segments? This is for an Inbound IDoc, into ECC.
    I found EXIT_SAPLEDI1_001. But, this has only control record. It is used to determine control record parameters, by using control record only.
    Thanks,
    Juwin

    Dear Juwin,
    Could you please provide some info. about what you are trying to achieve by trying to determine the partner dynamically?
    If the scenario is something like 'Partner A should get data related to only plant 1000 and Partner B should get data related to only plant 2000', you could use filters in the Distribution model to achieve this.
    BR,
    Aashrith

  • Search employee details from Business partner number input

    Dear friends
    I am searching employee details by having input as a business partner number from infotype 0000. as pernr has only 8 character in size and bp in 10 char in size. would you please tell me how we can access employee detais from business partner number.
    p.s : I am doing this in CRM system
    Business partner  ?->infotype(0000)-->?
    Any help will be appreicated.
    Regards
    Naeem

    Dear Naeem,
    as a CRM environment is not able to run at the same sytsem / client with HR, the employee data (e.g. infotype actions (IT 0000)) only is available in a scenario with ALE-distribution from a HR-system.
    In this case the employee data from HR-system will be distributed via idocs (message type HRMD_ABA) to the CRM-system and saved to databases HRP558x [x=0 - 5; 0= IT0000; 1 = IT0001; 2 = IT0002; 3 = IT0006, subtype 1; 4 = IT0009; 5 = IT0105, subtype 0005, 0010, 0020] for the central person (object type CP).
    The activated business partner integration (table T77S0, group HRALX, switch HRAC) will create / update related business partners (relation is saved within table HRP1001, subtype B207) according to the mapping of data during idoc inbound processing (active CRM implementation of a BAdI HRALE00INBOUND_IDOC processed within the function module (FM) IDOC_INPUT_HRMD (stored in table TBD52 for evcode = HRMD).
    Reading specific infotype data of a central person (databases HRP558x) will be done using the FM RH_READ_INFTY.
    Regards,
    Michael

  • PI to Idoc - Wrong partner Number

    Hi experts,
    something odd happened yesterday, we usually receive ORDERS idocs from different legacy system, but for one order, the Partner Number of the Idoc created in SAP was incorrect.
    For example, Legacy ABC sent us an order which created an idoc in SAP. Usually it creates idoc with Partner Number ABC which is populated according what we have defined in the SLD.
    But this time, we received the order from legacy ABC but the idoc was created with another Partner Number (DEF) from which we also receiver orders.
    Do you know where it might come from ?
    Any helmp would be greatly appreciated
    Kind regards,
    Jamal

    Hi,
    >>>Hi I have no mapping at all for control records segment, it is populated by it self according to SLD and partner profiles
    please check the receiver agreement object and field - header mapping - sender service
    is it the same as with other flows ? you can put there the business system which has the correct
    logical system name in SLD - so it will go correctly to ERP
    Regards,
    Michal Krawczyk

  • Dynamic Filename from source IDOC payload

    Hi,
    I have a scenario IDOC --> ABAP Mapping --> Flat File.  I need to create the receiver file name dynamically with the document number from souce IDOC. Since the target payload is flat file I don't know whether I can use the variable substitution. Also can I use the dynamic configuration with ABAP Class mapping.
    Please help.
    Thanks.
    Srini

    Actually Henrique's reply in this thread has the exact code,
    Re: Abap mapping and variable substitution in File adapter
    METHOD if_mapping~execute.
    DATA l_record type mpp_dynamic.
    * copy payload
    result = source.
    * add an adapter specific attribute
    l_record-namespace = 'http://sap.com/xi/XI/System/File'.
    l_record-name = 'FileName'.
    l_record-value = 'test.xml'.
    dynamic_configuration->add_record( l_record ).
    ENDMETHOD.
    Regards
    Bhavesh

  • Copying PO Number from SO Number to Billing Document

    Hello,
    My requirement is that I need to copy the PO Number from Sales Order to the Billing document whenever there is a Return Order created. What would be the Copy routine number that I need to modify? Or do I need to create a new Routine and then update the Billing Item with the PO Number from Return Sales Order? Please let me know.
    Thank you,
    Venkata Phani Prasad K

    Hi
    What subroutine VOFM are you using in your copy rules? Copy this VOFM to your own VOFM in your range name, and add a line to copy the PO number from SO to invoice (see Note 327220 - VOFM function and its objects).
    Regards
    Eduardo
    PD: sorry, I wanted to update it and I've replied to myself.
    Edited by: E_Hinojosa on Jan 31, 2012 3:39 PM

  • Business partner number

    Hi, 
           I am working in Real estate module,Can you please let me know How to fetch the Business Partner number from SAP system using the Parnter name with respective role and search term.
    Ashok

    Hi
    Try using this function module
    COM_BSP_SEARCH_BP
    It give you all the details with so many search criteria
    Hope this will help you

  • Validate partner number

    hi all,
    i have a selection screen with partner role and partner number fields.
    now my query is how to validate the partner number against partner role entered.
    For example, 832000 is Holding Customer. However, system is accepting it with the Partner Function 1B which is for Reporting Customer.
    Can anyone tell how to validate this condition or is there any fm to validate the same.
    regards
    vijay

    Hi
    Write a select statement and in the where condition put the partner number from ur internal table.
    if sy-subrc neq 0.
    "error message"
    endif.
    Regards,
    Vishwa.
    Edited by: vishwa sri hari on Oct 6, 2008 9:48 AM

Maybe you are looking for

  • Limitation of Key Fields in DSO

    Hi, can anybody tell me the max number of key fields that a DSO can have? Thanks, Manasa.

  • Optical Audio Only

    Trying to perform initial wireless configuration for ATV 2gen on my network. Problem is I'm only trying to stream audio form iTunes (no Video at this point; no TV!) All I have connected to the ATV is the power cord, and the optical audio output cable

  • Anyone know how to make this character?

    I have had no luck finding it in the glyphs. Thanks Ian

  • Font Showing Up in FontList, But Not Usable (Blank Text)

    Hey, I recently made myself a font to use in a project, but when I try to use it, it turns out to be an empty font. The font is showing up in the Titler, but behind it's name, in the font sample column, it's not showing any characters. I find this we

  • How to Acess iPhoto Library in External Hard Drive thru Airport Extreme and iPad

    My iPhoto library is currently in an external hard drive that's connected to an Airport Extreme.  I want to be able to access this library thru my iPad.  Is there any way to accomplish this?  I have spent endless hours online looking for an answer, b