Filtering Material while sending it to third party using IDoc

Hi Guys,
   I have a requirement to sent material using BD21 or rather scheduling the program RBMIDOC to third part via XI. But there is a need to filter material based on MTART and WERKS. Using Program I understand it is acheivable..but when user wants to schedule the prog in backgroung using Message Type MATMAS, how to acheive the requirement....
Any thoughts or suggestions are highly appreciated
Thanks
Debasis Roy Chowdhury

Well.. I can suggest you a work around ..  where you can effectively use filter and customization....
1. Enhance the message type MATMAS and include a new segement with a field XFIELD( Flag).
2. The new Segment should a mandatory segment- IMP.
2. Now fill this segment in BADI BADI_MATMAS_ALE_CR based on you valid material type. If it is valid then fill 'X'. else. space.
3. Go to BD95 and maintain the entries create a custome ALE Object type. Now go to BD59 and maintain the entries ther as well.
4. Now go toBD64 and create a Filter group. You can see that the custome field XFIELD is visible there. Set the filter value 'X'. That means if the material is valid then only it will send the IDoc else it will get filtered.

Similar Messages

  • EDI message is not sending to the third party for one particular SA

    DearAll,
                   We have the scenario to send the schedule lines to the third party system. for one particular schedule agreement schedule lines not sending to the third party system.
    while processing the messgae it is giving the error as "Message XEDI already processed on 20110317 070042"
    What could be the reason?.. we have checked all the EDI settings maintained for this supplier. some two weeks back there is no problem now only getting this message.
    how to resolve this?..
    Thanks in Advance
    Ananth.

    Hi Hareesh,
    Thanks a lot for the help. I have tried with removing the xml namespace, still the same result. I believe, the problem is with MTs tag in response message structure, bank xml data is trying to map with the response structure in PI, but when its finding the MTs tag I believe then its not mapping, and directly its passing the response in SXMB_MONI without any mapping.
    My question is how can I define my response structure without the MTs tagm, I mean same as what I am receiving from bank.
    Also I tried with without any mapping in response structure, I mean I used only one Message type for "response from bank" to "response to ECC" , without xml namespace, in this case I am able to receive the response in ECC, but there is exception called "PARSE_APPLICATION_DATA Error during XML => ABAP
    conversion: Response Message; CX_ST_MATCH_ELEMENT in " while receiving response, and when I go and see the logs, it says "System expected element 'MT_Response_MT940_Test'" , as its try to match with the defined structure in PI.
    Please experts help me, so my question is how can I avoid the MTs tag in my response structure, I just want to define my response structure in PI same as bank is sending me the data in xml tag, without any MTs tag.
    Thanks,
    Farhan

  • Sending query to third party portal from TREX Search Engine

    HI Experts,
    we need to implement normal search option in SAP portal.
    when we search any thing from portal ,
    It has to search in EP & KM and also it has to search
    windows sharepoint portal and bring the data back to SAP Portal.
    For this purpose one solution is
    1) implementing  enterpise search,
       but my client dont want to go for enterprise search(federated search).
    2) The other way
    Sending query to third party portal from TREX Search Engine
    In this way what i want is ,
    how TREX can send query to third party portal SEARCH ENGINE
    (in my case share point portal search ENGINE).
    There is no problem to search in EP & KM becuse it is default.
    To search in Micro soft Share point portal,
    TREX should pass the query to share point portal search ENGINE.
    Is there any API TO send a query to third party portal like sharepoint?
    I searched in SDN and Other sites also but i am not getting exactly what I require.
    If any one has ideas or implemented already please guide me.
    My client require searching option like this,
    we need to provide drop down box in SAP Portal with 3 options like
    1) search in Share point portal
    2) search in SAP EP & KM
    3) Search in both the portals
    please provide any code samples in case if you have.
    please help me , its urgent
    Thanks in advance.
    Regards
    Bala

    Hi Bala,
    please check the information on the KM IMS (Index Management Service) in KMC's developer guide. A connection to a 3rd party search is done from KM, then calling TREX and XY in parallel, not serially from TREX.
    Here's a paper describing this for an older KM release:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5e514b57-0701-0010-3796-deb3636835fa
    Regards, Karsten

  • Example of Weblogic Appserver using XA Controlled Transaction to send messages to third party JMS

              I am looking for Example of Weblogic Appserver using XA Controlled Transaction
              to send messages to third party JMS Server.
              I want to send messages to JMS and use Weblogic MDB to consume that message and
              send it to some third party JMS in a XA Controlled transaction.
              

    Sure. Right now, it involves a bit of JTA programming -- in our next
              release, it should be easier, however.
              Before sending a message, you have to:
              -- Use the TxHelper class to get the current Transaction object.
              -- Use the "getXAResource" method on the JMS provider's Session object to
              get the XAResource object for the JMS Session you're using to send.
              -- Call "enlistResource" on the Transaction object.
              You MUST do this in every transaction where you use the JMS provider to send
              a message.
              You can find the documentation for the TxHelper class and other
              WebLogic-specific classes here:
              http://e-docs.bea.com/wls/docs70/javadocs/index.html
              Look for the "weblogic.transaction" package.
              You can find documentation for the Transaction class (which defines
              enlistResource) and other classes here:
              http://java.sun.com/products/jta/javadocs-1.0.1/index.html
              You should also use the weblogic.transaction.TransactionManager class and
              call "registerDynamicResource" once (and only once) in your application to
              register the JMS providers XAResource with JTA. This makes JTA more
              efficient, and it makes transaction recovery work properly.
              If the JMS provider is MQ, then look at the whitepaper "Using JTA
              transactions to envelope WLS JMS and IBM MQSeries" here:
              http://dev2dev.bea.com/resourcelibrary/whitepapers.jsp?highlight=whitepapers
              And finally, if you have more questions, the transaction people will be able
              to help more. Post to "weblogic.developer.interest.transaction".
              greg
              "Neeru Munjal" <[email protected]> wrote in message
              news:[email protected]...
              >
              > I am looking for Example of Weblogic Appserver using XA Controlled
              Transaction
              > to send messages to third party JMS Server.
              > I want to send messages to JMS and use Weblogic MDB to consume that
              message and
              > send it to some third party JMS in a XA Controlled transaction.
              >
              

  • Integration of R3 to Third party using RFC

    Hi,
       I want to integrate third party system to R3. This Third party system can accept IDOC. Can anybody plz guide me how to connect this system to R3? Like by using RFC connection or something else. Anf if RFC then what type of connection it should be(TCP/IP or HTTP)?
        I am new to this area so detailed explaination will be helpful.
    Thanks and Regards,
    Atul.

    Hi Atul,
    on R3 you should create an RFC destination of type TCP/IP, let's say 'THIRD_PARTY_RFC', select 'Registered server program' and assign a program ID let's say 'THIRD_PARTY'.
    Your third party system then should register itself on sapgateway of R3 (SMGW) with the same program ID 'THIRD_PARTY'. To check that it is logged: SMGW->logged on client->and check if an entry for the program id exists.
    In WE21 create a port and assign the RFC destination 'THIRD_PARTY_RFC'.
    Then in partner profile assign that port for the idoc you need to send to the third party system.
    An that's all!
    Hope it helps,
    Kind regards,
    Sergio

  • How to send photo to PI system using IDOC

    Hi All,
    We have uploaded employee photos in our HR system and we can see them in pa20.We would like to send them to PI system using IDOC.Please let me know how we can do that
    Thanks
    Bala Duvvuri

    Hi,
    there is no possibility of sending images in Idoc to any other system.
    your requirement might be sending the photos of employee to some some other ssytem Via PI.
    PI can pick the images from your R3 Via FTP and can route it to the target system.
    Suresh

  • Error while doing GR in third party process

    Dear Friends,
    While doing Third party process, at GR (w.r.t. inbound delivery) the following message appears “Purchase order 4500000087 has no items” and stops creating GR. But the P.O has the Item. Do have any clue?
    Thanks,
    Hari.

    Hi Hariharan,
    In standard third party process you won't get the goods physically they are delivered by your vendor directly to your customer. In this process there's no meaning of creating inbound delivery I guess...
    You can do statistical goods receipt ('ghost GR' as it was called by someone in SD forum) but even this GR isn't a must (it's based on your invoicing scenario).
    I'm not sure but I'm afraid you cannot create inbound delivery for it if your settings are proper.
    BR
    Csaba

  • Account dertermination error while doing MIRO for third party PO

    Hello,
    This is regarding error message while doing MIRO (IR)
    There is already a PO in the system with item category S ( Third Party ) &
    Acc assignment object u2013 C (Sales order).
    For this PO , I could find 10 invoices already posted in the system.
    Between when these invoices were posted , there were some changes done to the PO.
    But even after those changes , many invoices were posted in the system,
    But now , when I try to post the invoice , I am getting the below error message.
    the error message is ** Account determination for entry SKPL WRX 0002 _ 1020 not possible** while posting.
    Message no. M8147
    Diagnosis
    The system did not find an account for this transaction. This means that the account determination for key SKPL WRX 0002 _ 1020 is not maintained in MM Customizing (Valuation). The key is made up of:
    u2022 Chart of account
    u2022 Transaction key (= Posting transaction)
    u2022 Valuation grouping code
    u2022 Account grouping code
    u2022 Valuation class
    System Response
    The system cannot update a G/L account for this transaction. You cannot post the transaction.
    Procedure
    Contact your system administrator.
    If you have the authorization, check the Account determination in Customizing for Valuation.
    Proceed
    Note
    The relevant posting transaction can be found in Table T030A.
    I have checked the entry in OMWD, where valuation grouping code is maintained against the valuation area & company code.
    PLEASE SUGGEST ME SOME SOLUTION.
    Thanks,
    Vinoth

    Hi Raman,
    Yes, still i am getting error.
    before when the invoice is posted , there is no error.
    there are some 10 invoices posted already , but there are some changes done in the PO , after that they could post two invoices but for the third invoice , i am getting this error.
    when the invoive is posted without error , these are the account movements that are hit
    Here
    441510 is a vendor account
    61799410 is a WBS element G/L account
    27411000 is a G/L for tax.
    What could have pulled out this WRX error (Account determination for entry SKPL WRX 0002 _1020 not possible ) for me????
    can u suggest me some solutions.
    Thanks,
    Vinoth

  • ERROR: - ID21108 While Importing Keystore from Third Party

    Hello,
    I am attempting to import a third party keystore in to an SAP PI 7.1 Java instance using the URL below as the process for importing. While attempting to import I am receiving the error below. I am currently running using the unlimited local_policy.jar file so should be able to import a key of any encryption strength. Assistance would be appreciated. Thank you.
    Procedure for Importing Keystore:
    How to Load keys and certificates in SAP PI 7.3, SAP PO 7.3 EHP1 NWA's Key Storage
    Keystore Import Error Message:
    ERROR:  -> ID21108: ASN.1 creation error: iaik.asn1.CodingException: Length: Too large ASN.1 object: 109

    Hi Michael,
    Did you get a change to solve this issue? You help will be much appreciated.
    Daniel.

  • Sender RFC from Third Party System

    I have a vendor who is actually communicating through RFC from third party Application to SAP R/3. Now we are trying have XI in between. Where as with minimal impact on both sides.
    Solution.
    1. Have the RFC made as ZRFC in XI. Let the vendor call the RFC in XI ABAP and internally make an RFC call through XI Interface to R/3 as Sync Interface. Because we need to report the information back to the system where the request initiated.
    2. Have RFC INI file copied as SAP Suggests under one of the folders. Develop the regular RFC to RFC Interface via XI.
    Is there any other alternatives other than the above mentioned solutions? Or out of those 2, which one will provide the best performance
    Appreciate any feedback. Please advice

    That's exactly what we are trying to achieve here. By Eliminating direct connection R/3, we are placing XI in between. But with the budget/timeline constraints from the Partner side, we are trying to have minimal change on the partner side. They might not change something to web service etc...
    Here is the text about INI file
    You can configure the non-SAP RFC client to connect to the sender communication channel in the following ways:
    ■       By defining the parameters PROGID, gateway-host, and gateway-service within the saprfc.ini-file using RFC-SDK.
    ■       By using appropriate parameters in the function RfcOpenEx.
    If you use the saprfc.ini-file, the respective RFC destination has to be of type R.
    All the parameter values used within the saprfc.ini-file or with the function RfcOpenEx should match the entries maintained within the corresponding sender communication channel.
    Example for the saprfc.ini-file is as follows:
    DEST=RFCCLIENTEXT
    TYPE=R
    PROGID=P106646.HKExternalClient
    GWHOST=pwdf2153
    GWSERV=sapgw40
    Please check the following link, for the same  text on RFC Sender
    [Help.SAP|http://help.sap.com/saphelp_nw04/helpdata/en/67/6d0540ba5ee569e10000000a155106/content.htm]
    Using the same Sender RFC for non-SAP System, please share any ideas

  • Return material to vendor procured through Third party PO

    Hi Friends
          We have a scenario where the materials sent to customers through third party sales order is retuned back as retuned stock.
    This retuned material needs to be sent back to the vendor. Please let us know how this can be handled.
    regards
    R.Rajesh

    Hi
    i have an issue on the way we manage return from third party order but maybe it can help you to know how we proceed
    third party order here is treated this way;
    sales order with TAS triggering PR and then PO......we do MIGO when good reach customer ..then MIRO and finally customer invoice..ok..nothing really extraordinary !!
    for the return we add a new item in the Sales order and then triggers a new PR..we go to our PO with ME22N and create a new item from the PR generated with the second sales order item
    We set the return checkbox in the second PO item...and then we do MIGO to indicate that stock has been returned to the supplier ..and create the MIRO to be refunded by the supplier and finally we create a G2S invoice to refund the customer ....
    it works good but...the overal status of the sales order remains "Being processed..." !! this is my problem and SAP do not want to help us coz a return flow on third party order is not covered by SAP in standard !
    Regards
    Laure imberti

  • Enhancemnet in the include RV03VFZZ to send request to third party system

    Hi Experts,
    I am using Enhancemnet in the include RV03VFZZ to send the request to third party system(ADEXA) and get the response using proxy and place that in the sales order.
      If there is no response from ADEXA system means 'reason for rejection' field has to be filled with some reason. Now I want to know which is the structure that updates the 'reason for rejection field'. the screen field is VBAP-ABGRU and program name is SAPMV45A.
    help me in updating the 'reason for rejection field'.
    Regards,
    Hari Krishna

    You can use the below to populate the order reason at the respective levels.
    1.FORM userexit_save_document_prepare in MV45AFZZ for VA01/VA02
    2.FORM USEREXIT_PRICING_PREPARE_TKOMK in RV60AFZZ for VF01/VF02 and VF04
    If you are in ECC then first preferrence should be for Enhancement Framework rather than using Classical User exits.You can check Enhancement Spots ES_SAPMV45A and ES_SAPLV60A for the above requirements or you can even implement using Implicit Enhancement within the subroutines of MV45AFZZ and RV60AFZZ.
    TVAUT is the table for Order reasons with descriptions.
    Thanks,
    K.Kiran.

  • Send data to third party

    Hello,
    I would like to transfer the data from APO a third party system.
    What is the best way of doing it ?
    Thank you
    Regards
    Pratap

    Let me explain little bit more.  We transfer the forecast data to R/3 system by standard APO functionality. In same way there are plants which are not currently on SAP but will be later on. We would like to get similar results in a file which can be modified at non sap locations.
    1. I checked BAPI transaction but not sure which one to pick. Can you please also elaborate methods such as Getlist that can help you extract the data from LC so that I can have a look at it ?
    2. Z transaction is also an option but not sure what to tell the ABAPer about it. Any thoughts ...
    Thank you all for your help.
    Regards
    Pratap

  • How to connect to third party using PI for outbound and inbound interfaces

    Hello,
    I have scenarios where I have data coming in from third party EDI subsystem and sent to SAP. And also from SAP to EDI subsystem. We need to send the XMLs to the EDI subsystema nd also receive XMLs.
    Can someone please suggest the ways I can connect to EDI subsytem for both Outbound and Inbound interfaces.
    Thanks

    Hi Prabhu,
    EDI file is different from the normal flat or xml file. Hope you understand the difference.
    Now if your EDI subsytem has the capability of converting the xml file to edi file viceversa then create and receive the xml file from the EDI subsystem. For the xml file you may use the file adapter as an option.
    If it doesnot have the capability then seeburger adapter needs to  be used. This is not an inbuilt adapter. So your company needs to purchase it.
    Regards,
    ---Satish

  • Transactional behaviour in third party - XI idoc scenario

    Hi,
    a third party system is sending an idoc via TRFC-call with the function module "IDOC_INBOUND_ASYNCHRONOUS" to the XI-system.
    The scenario is working fine, but one day the XI table space was full.
    The third party systems gets the following error message:
    <b>RFC_ERROR_SYSTEM_FAILURE Problems found during the EXPORT to specified key in table.</b>
    For the sending third party system that is an error and the internal status is set to mode "rollback". That means the third party systems is going to send the idocs again after a specified period of time.
    If i look in transaction SXMB_MONI i can see that the inbound queues were stopped (XI tried to open more than one queue, but all queues were stopped).
    After getting more table space available for XI all (stopped) inbound queues were activated manually, and <b> now all messages waiting in XI were processed!</b>. To me that means XI was able to receive all messages, even the table space was full???!!!!
    But this behaviour is wrong in a transactional view of the whole process. The sending system is going to send the idocs again and so the idoc's were processed twice in the XI system and respective in the receiver system.
    How to handle that?

    Hi Udo,
    what is the effect of setting that value to 1??
    I dont understand how can the message be in the XI system, if the database is full??? More queues will be opened but cannot be processed, but the message seems to be in the XI system...and if so (the message is in XI) the error message to the sending system is wrong!?
    Should i delete the messages (after solving the database problems) in transaction SXMB_MONI (is that possible?)and tell the sending system to send the messages again?? I am quite confused...
    Regards,
    Christian

Maybe you are looking for