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

Similar Messages

  • 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.

  • Can we change the partner number based on the reason in CIC0 in CRM ?

    Dear Experts,
            Can we change the responsible partner number based on the reason in CIC0 in CRM ?
    regards,
    Abhijit G. Borkar
    Edited by: Abhijit Borkar on Jul 10, 2009 6:46 AM
    Can it be done by using 'Actions' ?

    Hi Abhijit,
    Yes you can do this a number of ways:
    action
    badi - partner or order
    event - custom function module
    Remember that the partner determination must allow for this partner to be changed.
    Cheers
    Andrew

  • How system is determining the Number of Foreign trade data in the Header do

    Dear consultants
    how system is determining the Number of Foreign trade data in the Header -delivery documents(LF) in the Organization Tab.
    Regards
    prakash

    Number of foreign trade data in MM and SD documents.
    Path : SPRO-MM-Purchasing-Foreign Trade/Customs-Define Number Ranges-General Import/Export Processing.(internal number range)
    I hope MM guys will maintain in the above path

  • IDoc number based upon sales data.

    Hi Experts,
    How to get the IDoc number in case I have sales document number or any other data which is being send in IDoc, any way we can get the IDoc number?
    Also help me know the program to process the IDocs in background, I know the t.code bd87 is used to process the idocs, but how to process in background via a batch job.
    thanx
    Garima

    Hi,
    You may use t.code we09 to get the Idoc number based upon data,
    you need to provide the information like Idoc basic type, date range etc to filter the data,
    and under "Creteria for search in data records",  provide the segment name, search in field and value against you are looking for a Idoc number.
    Use following programs to process the IDocs in background:-
    RSEOUT00 u2013 Process all selected IDocs (EDI) 
    RBDAPP01 u2013 Inbound Processing of IDocs Ready for Transfer
    Some use full t.code for IDoc processing:-
    WE60 u2013 IDoc documentation 
    BD87 u2013 Inbound IDoc reprocessing 
    BD88 u2013 Outbound IDoc reprocessing 
    BDM2 u2013 IDoc Trace 
    WE19- Testing IDoc.
    regards
    Vivek.

  • Determine partner role based on partner number/Guid.

    I need to determine whether a partner (against a repair order) is a consumer (BP) or dealer (organisation). How can I determine this based on partner number/guid?.  I'm sure there's a BAPI etc to show the role information.
    Gary King

    Many thanks for that. I suspect this FM to get the roles will work fine and will try it now.
    I can also look at the marketing attributes and the account group will determine whether the partner is a consumer of Organisation (Dealer).
    Regards
    Gary King

  • Find partner number based on goods recipient and ship to address

    Hi SRM Experts,
    Can anybody please tell me that how i can get the partner details like partner number, partner guid etc based on ship to address and goods recipient?
    I have seen some shopping carts in BBP_PD. In those shopping carts, i have seen that goods recipient's  partner details are same as requestor partner details.
    Can i consider that generally goods recipient partner details remains same as requestor partner details ?
    Thanks & Regards,
    Akash

    Hi,
    Other than shop on behalf functionality, always requester and goods receipient are same.
    Thanks
    Rajesh K

  • How to get Partner Number based on Vendor Number

    Hi,
       I have vendor number(LIFNR), I would like to find out the partner number(PARNR) for this vendor number. I tried a lot but unable to find it.
    Any help will be appreciated.
    Thanks,
    Ibrahim

    Hi...
    have u checked the table VBPA(table for Sales Document: Partner)..in this table you can get the PARNR(Number of contact person)..
    Hope this solve your problem.
    Thanks
    shankar

  • Determine Business partner number based on the user id

    Hi all,
    Is there a way to determine the BP number of an employee based on the user id. The employee is created as a BP with role Employee in the system.
    I'm checking USR02 and BUT000.. But i find no link between them.
    Thank you,
    Preethi

    Hi Preethi
    Try this
    *Get the BP Guid by passign the user name here
      CALL FUNCTION 'BP_CENTRALPERSON_GET'
        EXPORTING
          IV_USERNAME         = lv_username
        IMPORTING
          EV_BU_PARTNER_GUID  = lv_bp_guid
        EXCEPTIONS
          NO_CENTRAL_PERSON   = 1
          NO_BUSINESS_PARTNER = 2
          NO_ID               = 3
          OTHERS              = 4.
    *Get the BP Numbere here
      CALL FUNCTION 'CMS_BUPA_NUMBERS_READ_BL'
        EXPORTING
          IV_PARTNER_GUID         = lv_bp_guid
        IMPORTING
          EV_PARTNER_ID           = lv_bpnumber
        EXCEPTIONS
          NO_PARTNER_SPECIFIED    = 1
          NO_VALID_RECORD_FOUND   = 2
          INCONSISTENT_PARAMETERS = 3
          NO_ADDRESS_FOUND        = 4
          OTHERS                  = 5.
    Reward if this helps.
    Thanks

  • How to determine the number of rows of data in a datatable?

    I have a datatable that I fill from an SQL query.  I do not know exactly how many rows of data it will return (due to my selection criteria) but will be somewhere between 100 and 300 rows.  I send this data into a report but need to determine the length of the report (panel height data member) programatically based on how much data the query has returned.  So, I need a way to count how many rows are filled in the data table.
    I tried doing a nested "if" statement checking the value of each cell but when I tested the expression at 59 "if" statements (will need 300+) I got a parser error in lookout when I tried to accept the connection.  I also tried a type of loop by assigning cursor.2 either to its own value (circular) or to its own value plus one depending on the value of the cell at cursor.2.  It was close but overshot by one row or more (much more sometimes).
    Any clever ideas?  Perhaps I have just been looking at this problem too long.  Thanks, in advance, for your help.

    Since the datatable gets the data from the SQL query, you can also use the SQL statement to count the number of rows in the query result.  
    For example, in datatable you do "select localtime, trace1 from intdata where xxx". You can get the count by "select count(trace1) from intdata where xxx". Use the same condition in order to get the same number of rows.
    Maybe another SQLExec object is needed to do the count.
    Whenever the datatable executes the SQL, the SQLExec executes and return the count.
    Ryan Shi
    National Instruments

  • Determining Partner Function based on Status of Transaction

    Hello
    I have a requirement in which parties involved needs to be determined based on the status of the Transaction.
    Please let me know how we can fulfill this requirement. Is there any BADI for the same and if yes what code do we need to maintain.
    Thanks

    Hello Jatin,
    You can always do order related modifications on Action profile. Based on the condition whether the header status is changed or Item status You can configure an action profile & assign a start and schedule condition for same.
    The logic in the badi can be to update the partner function as per your needs.
    Regards,
    Ravi

  • 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

  • IDOC Data Records

    I have the IDOC Number with me. How to fetch the Data Records from that ?

    If you want to read the idoc records in your program:
    use the folloing fms:
    Sample code:
      CALL FUNCTION 'EDI_DOCUMENT_OPEN_FOR_READ'
        EXPORTING
          document_number = p_docnum
        IMPORTING
          idoc_control    = f_idoc_control
        EXCEPTIONS
          OTHERS          = 01.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
                RAISING error_opening_idoc.
      ENDIF.
    * Read IDOC data segments
      CALL FUNCTION 'EDI_SEGMENTS_GET_ALL'
        EXPORTING
          document_number = p_docnum
        TABLES
          idoc_containers = t_idoc_data
        EXCEPTIONS
          OTHERS          = 01.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
                RAISING error_reading_idoc.
      ENDIF.
    * Close IDOC
      CALL FUNCTION 'EDI_DOCUMENT_CLOSE_READ'
        EXPORTING
          document_number = p_docnum
        IMPORTING
          idoc_control    = f_idoc_control
        EXCEPTIONS
          OTHERS          = 01.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
                RAISING error_closing_idoc.
      ENDIF.

  • NOD & LINA records - IDoc data

    Hi Experts,
    What is mean by NOD & LINA records?
    One of my spec says "before sending the Idocs validation is done For NOD and LINA records and if any of the mandatory fields are missing then it is printed as an error report".
    thanks
    Dany

    If you want to read the idoc records in your program:
    use the folloing fms:
    Sample code:
      CALL FUNCTION 'EDI_DOCUMENT_OPEN_FOR_READ'
        EXPORTING
          document_number = p_docnum
        IMPORTING
          idoc_control    = f_idoc_control
        EXCEPTIONS
          OTHERS          = 01.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
                RAISING error_opening_idoc.
      ENDIF.
    * Read IDOC data segments
      CALL FUNCTION 'EDI_SEGMENTS_GET_ALL'
        EXPORTING
          document_number = p_docnum
        TABLES
          idoc_containers = t_idoc_data
        EXCEPTIONS
          OTHERS          = 01.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
                RAISING error_reading_idoc.
      ENDIF.
    * Close IDOC
      CALL FUNCTION 'EDI_DOCUMENT_CLOSE_READ'
        EXPORTING
          document_number = p_docnum
        IMPORTING
          idoc_control    = f_idoc_control
        EXCEPTIONS
          OTHERS          = 01.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
                RAISING error_closing_idoc.
      ENDIF.

  • Get weeks based on start date

    Hi ,
    i need a query that will determine the weeks based on start date.
    if the table consists of:
    vDate vAmount
    06/25/2007 100
    06/27/2007 200
    07/04/2007 400
    If one enters start date as 6/25/2007 , amounts should be broken out in 7 day increments.
    Result should be
    week1 300
    week2 400
    where week1 should be from 6/25/2007 to 07/01/2007,
    week2 should be from 07/02/2007 to 07/08/2007
    and start date is not always on a Monday or Sunday...
    any idea?
    thanks in advance

    try this...
    SQL> with rt as
      2  (select 'week'||(trunc(l/7,0)+1) wk_no,to_char(trunc(sysdate)+l,'dd-Mon-yyyy') dt,to_char(trunc(sysdate)+l,'Day') "Day" from
      3  (select level-1 l from dual connect by level <= 367) where trunc(sysdate) between trunc(sysdate) and add_months(trunc(sysdate),12)),
      4  xx as
      5  (select '06/25/2007' vdate, 100 vamount from dual union all
      6  select '06/27/2007', 200 from dual union all
      7  select '07/04/2007', 400  from dual)
      8  select wk_no,sum(vamount) from
      9  (select (select wk_no from rt where dt = to_date(vdate,'MM/DD/YYYY')) wk_no,vamount from xx)
    10  group by wk_no;
    WK_NO                                        SUM(VAMOUNT)
    week1                                                 300
    week2                                                 400
    SQL>
    SQL> select 'week'||(trunc(l/7,0)+1) wk_no,to_char(trunc(sysdate)+l,'dd-Mon-yyyy') dt,to_char(trunc(sysdate)+l,'Day') "Day" from
      2  (select level-1 l from dual connect by level <= 367) where trunc(sysdate) between trunc(sysdate) and add_months(trunc(sysdate),12);
    WK_NO                                        DT          Day
    week1                                        25-Jun-2007 Monday
    week1                                        26-Jun-2007 Tuesday
    week1                                        27-Jun-2007 Wednesday
    week1                                        28-Jun-2007 Thursday
    week1                                        29-Jun-2007 Friday
    week1                                        30-Jun-2007 Saturday
    week1                                        01-Jul-2007 Sunday
    week2                                        02-Jul-2007 Monday
    week2                                        03-Jul-2007 Tuesday
    week2                                        04-Jul-2007 Wednesday
    week2                                        05-Jul-2007 Thursday
    .

Maybe you are looking for

  • Rejecting my admin password thats never been chang...

    BT Home hub manager keeps interupting and saying they can't connect to broadband and I need to change the admin password. However I am still connected and apart from the manager have no problems. I decided to change the password to see if it stopped

  • Java IO Exception

    Hi, I am getting the "java.io.IOException: Caching not supported for .." exception, this is because Java Plug-in is unable to get the expiration and last-modification dates for the give JAR file from the Web Server. So my question is that how can get

  • JavaScript CS4 vs CS6

    I have an old awesome HDR blending script that was written for Photoshop CS3-CS4 but will not run on CS6. Not being a programmer, I still would like to try and upgrade the script, but don't know where to start. Are there major differences in the Java

  • Maximum no.of Hits

    Hi, I have one parameter on my report as 'Maximum no.of Hits'.Can anyone help me to how to code for this logic. Thanks in advance, Sheetal

  • Firefox 4 won't let me save any image off the internet (works fine with IE)

    Ok...Firefox 4 won't let me save any image off the internet. It will let me right click on the image, but I won't let me choose a file type..like jpeg. I couldn't figure it out so i completely uninstalled firefox then reinstalled. I'm still having th