ADD BAPI in distribution model

Hello everybody,
Can you please expalin use of ADD BAPI button given in BD64/distribution model.
Please explain with an example.
I tried to to serach on inetrnet about ADD BUTTON.But not much information available niether ADD BAPI was explained in me training.
Thanks.

Hi Jitu,
gr8 to se ur reply.
I think ur suggesting custom idoc for accounting.
Though we need not use MASTER_IDOC_DISTRIBUTE.
We can still create custom idoc using BDBG.
Just need to instanciate BO-
CALL FUNCTION 'SWO_CREATE'
  EXPORTING
    objtype           = 'ZBUS6035_A'           "My z- BO ,Here we can use standard BO
    objname           = 'ZBUS6035_A'         "Custom method
  IMPORTING
    object            = l_objhnd
  EXCEPTIONS
    no_remote_objects = 1
    OTHERS            = 2.
IF sy-subrc <> 0.
  MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
break-point.
pass data to container for bapi
SWC_GET_ELEMENT lt_cont 'Date1' DATE1.
fire BAPI
CALL FUNCTION 'SWO_INVOKE'
EXPORTING
ACCESS = 'C'
object = l_objhnd
verb = 'ZBUS60351_A'
PERSISTENT = ' '
IMPORTING
return = l_return
VERB =
MODE_ID =
TABLES
container = lt_cont.
My problem is resolved now.Icould use ADD BAPI for IDOC triggere.
Thanks everybody for kind help.
Edited by: Sanjay_lnt on Feb 1, 2011 11:35 AM
Edited by: Sanjay_lnt on Feb 1, 2011 11:37 AM

Similar Messages

  • "Customer" BAPI in Distribution Model for Training and Events

    We have an HR box with Training and Events - When booking an attendee on a course, you can select the "contact person" tab. Our SD box is separate from HR, so all the contact persons are maintained there. Is it possible to use the "Customer" BAPI in a distribution model so that when we search in the HR box for a contact person, it actually fetches the data from the SD box?
    I remember reading up on this a while back but I can't find the documentation I had back then...
    I know that in BD64 I can create a distribution model, and if I remember correctly, i should be able to "Add BAPI" and use object type "Customer" - Then add all the methods that I need... (like Find, List, Search etc) In essence, once this model has been distributed to the other system, if I go to transaction XD03 in the HR box, I should be able to display customer master details that only exist on the SD box - Is that correct?
    Please help as I am not able to get this to work...

    Ok I figured it out...
    I have created a distribution model with the HR system as the source, and the SD system as the target.
    In change mode, click the "Add BAPI" button and choose object BusPartnerEmployee, method CheckExistence
    Do the same for the following:
    BusPartnerEmployee.Display
    BusPartnerEmployee.GetList
    Customer.CheckExistence
    Customer.Display
    Customer.ExistenceCheck
    Customer.Find
    Customer.GetContactList
    Customer.GetDetail2
    Customer.GetInternalNumber
    Customer.GetList
    Customer.GetSalesAreas
    Customer.Search1
    Ok so I know that this might be a little over-kill, especially all the Customer methods that I added, but it works

  • How to add BAPI in ALE-distribution model?

    HI all,
    I have to send The post goods issue through ALE-IDOC, this have to create the Goods Receipt in the receiving side.
    I came to know that the message type for this is MBGMCR , when i am trying to add this in the distribution model , it is prompting an error message that this message type belongs to BAPI.
    So , to send the required data , i have to add the BAPI.
    Please help me clearly on how to add this and what are the steps involved in  distributing data through BAPI ?
    Thanks,
    Vamshi

    In we20
    process code will be BAPI and setting will be same as in other process codes
    in bd64 i have example..
    TCode BD64
    Add ADRMAS in Distribution Model u2018TestERDToEXDu2019 as follow:
    Click on u2018Add BAPIu2019 Buton.
    Give Object Name as AddressOrg
    Give Method Name as SaveReplica
    You will get a entry as follows
    Edited by: Madan Gopal Sharma on Jul 1, 2008 9:02 AM
    Edited by: Madan Gopal Sharma on Jul 1, 2008 9:04 AM

  • How to create a data filter for BAPI used in a Distribution Model ?

    I am trying to create IDOC's for a QM inspection plan via message type QPMK in ECC 6.0. When creating the new message type in the Distribution Model, it forced me to use a BAPI (MasterInspectionChar) rather that just the message as I have done in the past. In order to ensure that only IDOC's related to a specific plant and material type get sent out, I was trying to create a filter.
    I am able to get into a 'Change Filter' dialog by double clicking 'No data filter set' under the node 'MasterInspectionChar.SaveReplica'. However, an attempt to highlight anything on this dialog and clicking button 'Create filter group' results in msg. 'Select node: Content-dependent parameter filtering'.
    Online help led me in a different direction, one thread led me to believe I needed to create a table entry for the filter in table TBD16 via BD81 for later attachment to the BAPI in the Distribution Model. Before this, I created two Z* ALE Object Type records for plant and material type in table TBD11 via BD95 for what I thought would provide a lookup back in BD81 for creation of a new filter record, but these objects are not found. Per the help, I am also unclear as to whether I would need to set up Receiver determination or Parameter filtering, nor where to make this step in the configuration happen?
    Can anyone point me back in the correct direction to get a data filter set up for this BAPI within the Distribution Model ?
    Thanks - Mike

    Just to clarify, what I am having trouble with is finding where exactly to plug in the name of the plant to be filtered? If using a message type such as MATMAS in a distribution model, it is very straight forward to navigate down from the 'Data filter active', and assign a value to whatever field you wish to filter via the 'List of Values'.  But in this example, message type QPMK required use of the BAPI MasterInspectionChar, and therefore the different method in creating the filter. 
    I cannot find similar functionality when navigating the BAPI related row, for MasterInspectionChar. The 'Change Filter' dialog popup displays a row for 'Container' and then 3 more rows containing 'BAPI structure...'.   Clicking the 'Attribute' checkbox on any of these rows sets 'Data filter active' as a node under the BAPI.  Double clicking the 'Data filter active' brings me back into the same dialog, and selecting any row with an attempt at this point to create a filter results in the 'Select node: content-dependent parameter filtering' warning.  Is this warning occuring because of missing configuration?
    Thanks - Mike

  • To add condition on which distribution model MATMAS should be sent

    Hello All,
    I have to send MATMAS Idoc to XI. But in R/3 there 2 distribution models created one for XI and other for some R/# system.
    I have created a custom report of MASTERIDOC_CREATE_SMD_MATMAS to handle specific conditions. Now I want to send to distribute this IDoc only to XI sytem and not to the other R/3 system.
    Where can I add this condition.
    Thanks in advance..
    Shabari

    hai..
    MDD1     Advance for MDD0
    MDD2     Adv.frm prev.per.for MDD0
    MDD3     Advance MDD2 paid back
    MDD5     Arrears w. balance recov.
    MDD6     Recovery for MDD5(IT15)
    MDD7     Balance & IT15 entry
    MDD8     Deduction for MDD7
    MDD9     Total deducted via MDD8

  • Error executing BAPI attached to ALE Distribution Model

    Hi experts,
    I am executing BAPI_EXCHANGERATE_SAVEREPLICA which has been included in an ALE distribution model as I wish to replicate exchange rates from my source client to a number of remote clients.
    When I execute the BAPI I get an information message back in the bapi return code as follows "one table record planned for update". Does anyone know what this means? I would have expected idocs to have been created and sent across to the target clients and for the BAPI to have been executed in the target system but nothing has happened. I have released the method (BAPI) and tried various options on the partner profile but still get the same message returned when I call the BAPI.
    Any help on executing this BAPI via ALE would be much appreciated.
    Thanks
    Adrian

    This is information message that informs you that the selected row may be updated. Then when you call BAPI_TRANSACTION_COMMIT the rows will be updated.

  • When to add message type to distribution model

    hi
    i am bit confused on when to add a custom/std message type to distribution model. what are the conditions. is that always necessary to add the message type to distribution model.
    thanks

    [http://sap.ittoolbox.com/groups/technical-functional/sap-interfaces/add-message-type-in-ale-distribution-model-1192885]
    [http://docs.sun.com/app/docs/doc/820-5014/ggcpd?a=view]
    [http://publib.boulder.ibm.com/infocenter/wtxdoc/v8r2m0/index.jsp?topic=/com.ibm.websphere.dtx.packsapxi.doc/tasks/t_pack_sapxi_Create_a_Destination_Model_BD64.htm]

  • Error while distributing a distribution model in BD64

    Hi,
    I am trying to send an IDOC from one client to another client of the same SAP system. To achieve that, i have created the necessary logical systems and made the necessary partner, port configuration as well as RFC Destination. In BD64, I have created a new model and added a BAPI 'SAVEREPLICA' and Object 'BUS1093' using Add BAPI button. But when I am trying to distribute the model it's giving the following error - 'Model view ABCDX has not been updated.  Rreason: Distribution model is currently being processed'.
    Kindly help,
    Thanks in advance,
    Deep.

    Using of BAPI is not accepted between two clients of the same system, you'll have to use different SAP systems

  • R/3 to XI (Idoc to File): Do we need to maintain distribution model in R/3?

    Hi All,
    I have a very basic question regarding Distribution model.
    My scenario is IDOC-->File ( SAP R/3 --> XI). So all I am trying to do is send the IDOC frrom R/3 to XI. ( Within XI I am going to do an FTP to the 3rd party file server)
    I have created a distribution model, but was wondering if I really need to create one as message is going from R/3 to XI and not from R/3 to another R/3.
    Please help let me know If I need to distribute this model to XI or to SAP production sytem or I do not need to duistribute at all for this scenario.
    Thanks
    Shirin

    Hi,
      if you create partner profiles and port via t.code.
      i hope, it's not required to maintain Distribution model.
      please check the below points.
    Configuration Steps for Idoc to File Scenario.
    This is complete step by step document for configuring the idoc to file scenario along with ALE Settings
    To Configure the IDOC TO FILE SCENARIO, SETTINGS IN SAP-XI
    STEP 1:ALE SETTINGS IN SAP-XI
    We need to do the following settings in XI
    1) Create an RFC Destination to the Sending System in transaction code (SM59)
    a) Choose create
    b) Specify the name of the RFC destination
    c) Select connection type as 3 and save
    d) In the technical settings tab enter the details SAP SID/URL and system number#
    e) Enter the Gateway host as same details above SID/URL
    f) Gateway service is 3300+system number#
    g) In the Logon /Security tab, enter the client user & Password details of Destination system
    h) Test the connection and remote logon.Both should be succesful
    2) Create Port Using Transaction Code IDX1
    a) Select create new button
    b) Enter the port name as SAP+SID (The starting char should be SAP)
    c) Enter the destination client
    d) Enter the RFC Destination created in SAP R/3 towards other system
    e) Save
    3) Load Meta Data for IDOC Using transaction Using Transaction (IDX2)
    a) Create new
    b) IDOC Message Type
    c) Enter port created in IDX1
    SETTINGS IN SAP R/3
    We need to do the following settings in R/3
    Logon to Sap R/3 System
    1) ALE SETTINGS TO POST IDOC OUT OF SAP-R/3 ***********************************************************************
    a) Create RFC Destination using T.code in SM59.
    b) Specify the name of the RFC destination
    c) Select connection type as 3 and save
    d) In the technical settings tab enter the details SAP SID/URL and system number#
    e) Enter the Gateway host as same details above SID/URL
    f) Gateway service is 3300+system number#
    g) In the Logon /Security tab, enter the client user & Password details of Destination system
    h) Test the connection and remote logon.Both must be succesful
    2) Create communication Port for Idoc processing Using Transaction(We21)
    a) First Select Transactional RFC and then click create button
    b) Enter the destination port name as SAP+SID (The starting char should be SAP)
    d) Enter the RFC Destination created in SAP R/3 towards other system.
    e) Save
    3) Create Partner Profile with Outbound Parameters (WE20)
    a) Create New
    b) Create the Partner no. name as same the logical system name of the destination system
    c) Select Partner type LS
    d) Enter details for Type: US/USER, Agent, and Lang
    Then Save
    e) Select Partner no. and LS which were create above
    f) Now we have to give some Outbound Parameters.So click on ADD TO Create Outbound Parameter
    g) Select Message type
    h) Double click on Message Type and Then Enter the details for Receiving port, Pack size=1 and Basic type
    I) save
    4) In Transaction SALE, Create Logical System
    a). Go to Basic Settings-> First Define logical systems
    and then assign logical systems
    b) Double click on Define the logical systems
    c) Give data for your Logicaal System and Name
    d) Now click on Save.Here one window may appear just click on Continue.Now the Logical System name is ready
    e) Assign the logical system name to the client
    5) Create Customer Distribution model in the transaction code BD64
    1) Click on the Create modal View button and enter the short text, Technical name etc as shown below
    2) Now select the created model view and click on Add message type button .A pop up box appears, enter Sending system, receiving system and message type
    3) Save the Distribution model
    Generate Partner Profiles
    Click on Menu Item u2018Generate Partner Profilesu2019
    It leads to the next transaction where in the selection screen you have to provide Model view name, Partner System logical system and execute
    Then, you will be intimated about the partners, port creation, and outbound parameters creation
    4) Distribute Customer Distribution Model
    In the menu item GO to Edit->Modal View-> u2018Distributeu2019 to the destination client
    Popup window appears ,press Enter
    You will be intimated about the the Modal View Distributed
    warm regards
    mahesh.

  • ALE distribution model - one message type to more than one recipient

    Hello colleagues,
    currently I'm working on an integration project between one SAP system and an e-shop system. The communication is established through IDOCs ( both inbound and outbound ). There is another system ( POS ) which is already integrated
    with SAP via IDOCs also.
       Now I'm facing the following problem regarding distribution of transactional IDOCs ( orders, deliveries, etc. ): when assigning one message type ( for example DESADV - Delivery: Shipping notification ) to more than one external system in ALE distribution model I receive a message alerting that one message type can be send to only one recipient.
    The distribution model is as follows:
    Model Views
       SAP to POS
          SAPDEV ( the SAP system )
             POS ( the external POS system )
                DESADV
       SAP to E-SHOP
          SAPDEV ( the SAP system )
             E-SHOP ( the external e-shop system )
                DESADV
       Well, the system message is clear and I did the obvious: create a complete copy to the original message type and than assign it to the E-SHOP system ( the original message type is already used in integration between SAP and POS ).
    As you can see I have found a workaround already but I think that it comes natural to SAP to communicate with other systems and to exchange same kind of documents to those systems and I can't believe that there isn't a standard solution for situation like this.
    FYI I'm working on SAP ECC 6.0
    Thanks in advance.
    Wish you nice day and successful week ,
    Vladimir

    I believe when ePrint server has received the email, it made the necessary settings and configured the job for printing and then it went for "Reply All" option. So here it cannot send the print job to your personal email ID and the error came up.
    The only option I can think of is add the printer email ID to your email contact list and give it a name like MyPrinter so you can remember easily , just like email contacts are added in Outlook.
    Mark this post as answered so that others can find it useful.
    Say "Thanks" by clicking the Kudos Star in the post that helped you.
    Please mark the post that solves your problem as "Accepted Solution"

  • ALE Distribution Model

    Hi,
    I've created an ALE distribution model to process the interface concerning Set Up HR and Accounting. Initialy we make it all and distribute it to the receiving system (FI) and it seems to be ok. After that the funcional team generate some movements and the IDOC's were generated but they were not sent to the FI system. We've a look at tRFC and an error concerning user or password invalid appears, so i define again the user comunication and after a few adjustments to the model view we distribute it again to the FI system. When i execute it the following message appears : <b>Model view HRFI-CFP has not been updated / Rreason: Distribution model is currently being processed.
    </b>
    Next step we delete the model view and created it again but the same error still remains.
    Can anyone help me ???
    Thanks is advance.
    JMMatos

    Hi
    Distribution Model – A model that describes the ALE message flow between logical systems.
    Applications and the ALE distribution service layer use the model to determine receivers and to control the data distribution. The relationships between logical systems, message types, BAPI’s and filters are defined in the distribution model.
    Ex: The screen shot depicts customer distribution mode ALE_TRNG_Mar07.
    Sender Logical System – EC1CLNT800
    Receiver Logical System  – SALES
    Message Type – CREMAS
    No filter conditions defined.
    This configuration step allows the installation of core ALE features on which data transfer activity will be based.
    In the distribution model you can specify the messages to be sent to a given logical system. You can also define the conditions for the content and dispatch of messages in the filters.
    The distribution model consists of one or more views that you can define
    After creating the distribution model – the model needs to be distributed to the receiver system.
    Partner profiles need to be generated in both sender and receiver systems using transaction BD82 (automatically) or WE20 (manually).

  • Error in mapping the BAPI to the model in vc

    Hi all,
    I am new to the visual composer.
    I have created the new model, i am trying to map the bapi to the model. iam  getting the followin error when tried to select the avialable bapi in the VC
    error :  Failed to fetch the meta data
    This selected  element can not be added to the New model
    Can any body guess what is this error.
    Regards
    Vijay

    Hi Vishal,
    This error is coming because you are trying to map the bapi to the model itself. You can only map a bapi to an iView.
    Go to <b>Compose Model</b> tab on the right, and select an iView from the Components given. Double click or drag to add it to your model. When you go inside your iView, you will be able to map your bapi now.
    Go to page 34 in the following doc:
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/63f2052e-0c01-0010-b9a2-e1f7457a7fbe">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/63f2052e-0c01-0010-b9a2-e1f7457a7fbe</a>
    Bye
    Ankur
    Reward points if it helps!!

  • Specific IDoc + Distribution Model = pb of filter

    Hi,
    I created a Message Type "ZHRMD_A" and an extension "ZEXT", and I use the standard IDoc type HRMD_A06. Thus my Idoc is: <b>ZRMD_A</b>.HRMD_A06.ZEXT
    All work fine: my ECC send correctly this idoc with the good values...
    But my problem is inside the <b>Distribution Model</b> (BD64): I haven't the line "Data filter active" under my Message Type ZHRMD_A, so <b>I cannot add filter</b> !
    Can I add filter on a specific Message Type?
    if yes, how?
    any idea is welcome.
    Regards
    Mickael

    Hi,
    u can use the tcode- BD56 for segment filtering.Also check for BD95.
    Regards,
    Nagaraj
    Message was edited by:
            nagaraj kumar nishtala

  • Distribution Model for PP-PDC

    Hi Guys,
    I'm new to this and I'm trying to find out, how I can create a filter for a "Subsystem Grouping" based on Work Centers.
    I've already assigned a subsystem group to all work center belong to a single plant.
    I'm trying to setup the distribution model to send IDOCs to an external system
    I've added a BAPI with details as follows:
    Model Name:                  XXXXX_LS
    Sender:                          XXXXX
    Receiver:                        XXXXXX  
    Obj. Name / Interface:     RCVPRORDCF
    Method:                          ReceiveProdOrder
    I've also assigned all Work center from 1 plant into the same Subsystem Group in CR02 ->Subsystem Link -> Subsystem Group = 301
    How can I create a filter to filter by the subsystem group for the work center, to download only those production orders based on this?
    Or, is there another way that I can filter by plant?
    Thanks a lot for the help guys

    1. Go to Tcode BD59.
    2. Create a Custom ALE Object Type
    3. Specify the corresponding Segment name where BUKRS exists and the Field Name as BUKRS.

  • How to maintain Customer distribution model in ALE

    hi FRIENDS..
      i wish to know what will be the transaction code of maintaining the customer distribution model, and how we maintain it.  and also distribute custome model in IMG sreen... please reply me...i will surely award you  nice points....
    bye...
    naim

    U can create/maitain distribution model using BD64.
    Or else u can create it using SALE transaction code.
    U need to give sender/reciver/msg type.
    ==============================================
    procedure:
    click on Create Distribution model button-->give the technical name
    select the DModel Technical name>add msgtype>
    it will ask sender/reciver/msgtype.
    pass those parameters and generate partner profiles through environment menu
    =================================
    to distribute a model view to partner syste,:
    Select mview
    edit>modelview>distribute
    Message was edited by: Eswar Kanakanti

Maybe you are looking for

  • Service Level in the Material Master

    Hi - Can the service level field in the material master MRP view be used to drive additional demand independant of safety stock?  Meaning, is there any way I can enter a service level and have it increase demand even if I am not using it to calculate

  • Cannot get to Apple TV menu

    WWhen I turn on Apple TV, my television blinks "no signal". I have checked my connections and I am connected to my wireless signal. I've unplugged Apple TV and plugged in again.  Now the television screen goes "no signal" to Apple picture" to no sign

  • System could notread any data? urgent?

    Hi, could any one help on this topic . I created infoset query ,now i am executing query but it shows the error like "NO DATA WAS SELECTED"? and next error when i refersh the query it give messages like "system can not read any data" plzzzz .... rega

  • My iPod keeps shutting down and restarting and it keeps on freezing randomly. what do I do?

    Hi, My iPod Touch 4g keeps shutting down randomly, it also keeps restarting randomly and freezing randomly. Even whilst i'm listening to music, it'll just stop and nothing I do can sort it out except for restarting it by pressing the Home button and

  • Browser slow opening seven to eight minutes to open to brows the internet

    I turn on the laptop Toshiba Satellite let my start up programs like internet Norton 360 Earthlink Accelerator all load up. Then click on Firefox icon in my quick launch, Firefox takes up to eight minutes to my Google Home Page. Why so long my wifes