Inbound Idoc (From DWM to ERP) Batch No. change
Hi all,
Our client requrement is changing Batch no. from DWM to ERP inbound process throough IDOC when Inbound delivery is confirmed in DWM.
I tried SMOD_V50B0001 but Batch no. is changed both DWM and ERP. It doesnt work.
I just want to change only ERP Inbound delivery.
Is thre any solution?
This is DWM inbound delivery.
Inbound delivery in ERP is also confirmed by IDOC.
We wanna change only ERP batch no.
Regards
Kiichiro
Hello Kiichiro,
Please let us know what is the Idoc type and message type which you are using for the confirmation.
For inbound idoc go to the function module which processes the idoc and find exit in it, then do your changes to update the batch no.
Also please explain in detail about your requirement like, what is the structure of the idoc you are using and also batch no. is received from Idoc or to be calculated within the system.
Regards,
TP
Similar Messages
-
How to create a inbound IDOC from flat file in Application server
HI All
Our requirement is to create the Inbound idocs from a flat file from application server with in R/3
Could any body please let me know the steps required for this.
Thanks
Malli1. Read the file using OPEN DATASET and read and fill up the segment info and fill the EDIDC header data
and then call function
CALL FUNCTION 'INBOUND_IDOC_PROCESS'
TABLES
IDOC_CONTROL = i_edidc
IDOC_DATA = i_edid4.
a® -
How to create Inbound Idoc from XML file-Need help urgently
Hi,
can any one tell how to create inbound Idoc from XML file.
we have xml file in application server Ex. /usr/INT/SMS/PAYTEXT.xml' we want to generate inbound idoc from this file.we are successfully able to generate outbound XML file from outbound Idoc by using the XML port. But not able to generate idoc from XML file by using we19 or we16.
Please let me know the process to trigger inbound Idoc with out using XI and any other components.
Thanks in advance
Dora ReddyHi .. Did either of you get a result on this?
My question is the same really .. I am testing with WE19 and it seems SAP cannot accept an XML inbound file as standard.
I see lots of mention of using a Function Module.
Am I correct in saying therefore that ABAP development is required to create a program to run the FM and process the idoc?
Or is there something tht can be done with Standard SAP?
Thanks
Lee -
Hi, we need to send IDoc from XI to ERP
1. The record is broken down into DEBMAS and ADRMAS. I am aware that ADRMAS needs to be sent first before DEBMAS. Just wonder how these 2 IDocs are linked with each other to create a single record when they reach ERP? What are the identifier fields to link them?
2. What I need to do to create records in ERP from these IDocs (FM ?)
Thanksmay be u can write a wrapper above BD10 this way
report zaRs message-id b1.
select-options: matsel for marav-matnr matchcode object mat1.
parameters: receiver like tbdlst-logsys no-display.
start-of-selection.
select * from mara into i_mara where matnr in matsel.
refresh : matsel.
v_no = 0.
loop at i_mara.
move i_mara-matnr to matsel-low
* fill up sign option etc.
append matsel
do.
move mara
if v_no = 200.
submit rbdsemat " Program behind BD10
with logsys eq receiver
with matsel in matsel
with mestypat eq 'ARTMAS'
and return.
wait 20 seconds
exit.
clear v_no.
endif.
enddo.
a® -
How to create an inbound Idoc from an inbound IDoc in same client
How to create an inbound Idoc from an inbound IDoc in same client
Idoc will come from XI as an inbound idoc to SAP, now I have to read this inbound Idoc and split it into Several Inbound Idocs and now needs to be posted in the same client.
please let me know the procedure..
Thanks in advance,
SagarHi Sagar,
Develop a cusom Z-Inbound function module, configure the Z-FM to trigger when idoc is recieved from XI. In your Z-Inbound function module split the idoc (Recieved from XI) into respective Idocs and Using MASTER_IDOC_DISTRIBUTE post the IDOCs into the same system.
Thanks & Regards -
Inbound IDOC from PLDA /SAPSLL/E2CCEHAA-CVRTQ
Hello,
We have an issue with inbound IDOCs from PLDA dumping - reason, we have exchange rates with ratio maintained in GTS for certain countries. However, when PLDA inbound IDOCs are received the segements do not return the values based on what was sent out (with the ratio), and we experience dumps.
Understand that any inbound information for these IDOCS except the MRN number is used to update the customs declaration.
What can we do to overcome this issue?
Any pointers will be appreciated.
Thanks,
PadmaHi Padma,
Surely this is the sort of problem that should be handled by SAP? Have you created an OSS Incident?
Otherwise, which Message are you talking about? What error message is included in the dump? And which program & line number is dumping?
Regards,
Dave -
Using Inbound IDOC from Java system creation of Outbound delivery
Dear Experts,
The scenario we are having is really very interesting. Hopefully its a good learning for me and also for others also.
The scenario is,
After sales order creation the details will be sent to one Non SAP system (Java) for performing some tasks related to forwarding agent decision, shipping date and etc. Once the details are finalized in that Java system then, the details needs to be transferred to SAP as "Inbound IDOC" process. For this proposed to use the SAP Jco middle ware.
Once the details transfered from Java system to SAP then, the outbound IDOC needs to get generated automatically. Assuming the stock for that sales order line item is available. Also one more complexity is, our client is using custom transaction (ZVl10C) for delivery creation.
Now Query is,
1. Which IDOC, message type and Functional module needs to be used for creating the delivery automatically..??
2. As per assumption, stock of that sales order line item should be available. Due to some business reason the stock was removed during inbound IDOC transfer then, what will happen to the IDOC..?. How to avoid this situation..??
3. As we told we are re going to use SAP Jco b/w SAP & Java system. In this case, how the data will get transfered from Java system to SAP..?
Thanks in advance for the replies I am going to get
Regards,
VELThanks for the feedback. This question is resolved
-
Creation of Inbound IDOC from a flat file.
Hi all,
I hav to create Purchse Order using inbound IDOC in which I hav to take data from a .xls or any flat file.
Can any one help me with this. i.e wat r the steps involed to do so.
Regards.
RahulHello,
Why do u want to create a Idoc for creating PO from flat file - you can simply use BAPI. Ok if you want to create PO only using Idoc.
I think message type is ACC_PURCHASE_ORDER0.
I just made one sample program to you how to create a PO with Idoc method. Here i am doing for Material Master Creation. Let me know if want any clarification.
********Poorna********
TABLES : MARA, MAKT, EDP13.
DATA : I_EDIDC LIKE EDIDC OCCURS 0 WITH HEADER LINE,
I_EDIDD LIKE EDIDD OCCURS 0 WITH HEADER LINE.
PARAMETERS : P_MATNR LIKE MARA-MATNR.
START-OF-SELECTION.
REFRESH I_EDIDC.
SELECT * FROM EDP13 WHERE MESTYP = 'ZMATMASTER'.
MOVE-CORRESPONDING EDP13 TO I_EDIDC.
I_EDIDC-IDOCTP = EDP13-IDOCTYP.
APPEND I_EDIDC.
ENDSELECT.
READ TABLE I_EDIDC INDEX 1.
I_EDIDD-SEGNAM = 'ZMATMASTER'.
SELECT SINGLE * FROM MARA WHERE MATNR = P_MATNR.
SELECT SINGLE * FROM MAKT WHERE MATNR = P_MATNR
AND SPRAS = SY-LANGU.
I_EDIDD-SDATA+0(18) = MARA-MATNR.
I_EDIDD-SDATA+18(40) = MAKT-MAKTX.
I_EDIDD-SDATA+58(4) = MARA-MTART.
I_EDIDD-SDATA+62(1) = MARA-MBRSH.
I_EDIDD-SDATA+63(3) = MARA-MEINS.
APPEND I_EDIDD.
CALL FUNCTION 'MASTER_IDOC_DISTRIBUTE'
EXPORTING
master_idoc_control = I_EDIDC
OBJ_TYPE = ''
CHNUM = ''
tables
communication_idoc_control = I_EDIDC
master_idoc_data = I_EDIDD
EXCEPTIONS
ERROR_IN_IDOC_CONTROL = 1
ERROR_WRITING_IDOC_STATUS = 2
ERROR_IN_IDOC_DATA = 3
SENDING_LOGICAL_SYSTEM_UNKNOWN = 4
OTHERS = 5
COMMIT WORK.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF. -
Stop generation of Inbound IDOC from Non - SAP
Hi Experts,
I have a requirement to update data base PA0105 for Email. The Email is coming for external system (Non SAP), which contains 1 employee in 1 IDoc. If SAP has valid email and same has been passed for external system to SAP via Inbound IDoc, it should not update PA0105. Hence, I am deleting the IDOC segments in Exit "ZXHALU07", before RBDAPP01 is getting called. As per the requirement its working fine.
Question: Is there any way to stop generating the IDOC. If the email ID were same, then IDoc should not generate in SAP. Please provide your valuable reply. Thanks.
Regards,
Ganesh R K.Hi All,
Scenario:
Need to Create Inbound IDOC in SAP system and receive it from Non Sap system.
Problem:
IDOC is successfully dispatched from Non Sap system(Sender Side) but, it is not received to SAP system(Receiver Side).
At receiver side(in SAP system) all configuration settings are fine (RFC destination is tested with no errors, partner profile are given with the inbound parameters, function module is successfully tested with no errors, distribution model is created etc).
In receiving system(SAP) no IDOCs are generated in We02 after sending the IDOC from Non Sap side.
Can any one please suggest me the reason for the above mentioned problem?
Thank you,
Swetha.C -
How to trace IDOC from POSDM to ERP
Dear experts,
I have send a IDOC(WPUTAB) to ERP from POSDM, how do I trace IDOC and get the IDOC number in ERP? because the IDOC number seems changed after send to ERP.
best regards,
Evans.Hi Evans,
You can use transaction SNRO/OYSN by using Object EDIDOC wherein the Idoc number ranges can be defined in both POSDM and ECC.
Standard interval is with "01" 0000000000000001 to 9999999999999999(16 digits)
However there is no standard way to have message type specific number range settings which you maintain in both POSDM and ECC(as in your case you may need to configure 2 different number ranges one for WPUUMS and another for WPUTAB and there may be many more idocs as well)
You can use Function module Number_get_next and create a custom table to maintain Message type specific number ranges.
Alternatively the only other option is to check the EDIDC/EDID4/EDIDS tables both in POSDM and ECC by giving some of the key fields Message type,partner number,created on,created at,idoc status etc and compare it accordingly.
Also if you are not processing idocs immediately you can check table EDIQO in POSDM(Outbound from POSDM) and EDIQI in ECC(inbound to ECC)
Hope it helps
Best Regards,
Aram. -
i run a job to upload text file to inbound processing of IDoc
the job run in two steps with two program
RSEINB00 : to upload the file
RBDAPP01 :to activate the list of the idocs
but the job failed in the second step and it return
" During inbound processing of IDoc , an error occurred. The event for object type 'IDOC' could not be triggered "
any one know why ???Hi Kenny
I have also faced a similar issue in the past: To automate the process of file reading and triggering the inbound process whenever partner system (legacy system) copies a text file (containing data to be posted) to the SAP application server.
To automate file reading for inbound process, you have to use SAP events. You can define these events using transaction SM62.
This event will be used to execute the IDOC create program in a job based on this event.
Every time the partner system copies the extract file to the SAP application server, this event will be triggered which then runs the job for processing the data file.
For more information on using SAP events, click the following link and look into topics under heading Using events to trigger job starts:
http://help.sap.com/saphelp_erp2005/helpdata/en/fa/096e44543b11d1898e0000e8322d00/frameset.htm
the topic, Triggering events from external programs is quite interesting.
Cheers
Ashish Jain
[email protected] -
Retrieving(Inbound) IDOC from SAP Error WCF-SAP Adapter
I am attempting to retrieve data from SAP using WCF-SAP Adapter. I used the wizard to retrieve the IDOCTYP(PEXR2002) and the appropriate docrel=740. Whenever I send the IDOC to BizTalk I receive the error below. Anyone have insight to what could be
the problem. BizTalk is not resolving the IDOC types properly.
Also: I am using the schema in a flat file disassembler in the receive pipeline.
Reason: Unexpected data found while looking for:
'E2EDKA1003'
'E2IDBL2000'
'E2IDB02002'
'E2EDL02'
'E2EDL03'
'E2IDLU5001'
'E2IDPU1'
'E2IDBW1'
The current definition being parsed is E2IDKU5001GRP. The stream offset where the error occured is 1483. The line number where the error occured is 11. The column where the error occured is 0.Hi Jordan ,
This really happens when you receive untyped message from your SAP System . Its been well described in below link
Receiving Idocs - getting the raw idoc data
Better option here is to create a pipeline component which will be responsible for your message parsing or try something like below
During the configuration of your one-way Receive Location using WCF-Custom, navigate to the Messages tab. Under the section "Inbound BizTalk Messge Body", select the "Path" radio button, and:
(a) Enter the body path expression as:
/*[local-name()='ReceiveIdoc']/*[local-name()='idocData']
(b) Choose "String" for the Node Encoding.
Thanks
Abhishek -
Error in inbound IDOCS from XI to SAP
Hi,
We have a migrated system XI 20 to 70 (SP9) and we have adapter engine in 620. When a adapter engine in 620 send a xml message to XI for the R3 system , the XI system doesn't converts well the SNDPRN and SNDPRT. In concret the XI set as SNDPRN = SAPSID and as SNDPRT = LOGICALSYSTEM of SAPSID. and we want set in the fields SNDPRN and SNDPRT the values of the payload.
How can we correct this?
it can be a standard error in XI?
Example
Idocinbound
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!-- Response
-->
- <SAP:IDocOutbound xmlns:SAP="http://sap.com/xi/XI/Message/30">
<SAP:TABNAM>EDI_DC40</SAP:TABNAM>
<SAP:MANDT>100</SAP:MANDT>
<SAP:DOCREL>700</SAP:DOCREL>
<SAP:DOCNUM>0000000000003016</SAP:DOCNUM>
<SAP:DIRECT>2</SAP:DIRECT>
<SAP:IDOCTYP>/AFS/ORDERS05</SAP:IDOCTYP>
<SAP:CIMTYP>ZAFSORDERS05</SAP:CIMTYP>
<SAP:MESTYP>ORDERS</SAP:MESTYP>
<SAP:MESCOD />
<SAP:MESFCT />
<SAP:SNDPOR>SAPXSD</SAP:SNDPOR>
<SAP:SNDPRN>ale_sfabs</SAP:SNDPRN>
<SAP:SNDPRT>LS</SAP:SNDPRT>
<SAP:SNDPFC />
<SAP:RCVPOR>SAPST1</SAP:RCVPOR>
<SAP:RCVPRN>ST1CLNT100</SAP:RCVPRN>
<SAP:RCVPRT>LS</SAP:RCVPRT>
And the payload
<?xml version="1.0" encoding="UTF-8" ?>
- <_-AFS_-ORDERS05>
- <IDOC BEGIN="1">
- <EDI_DC40 SEGMENT="1">
<TABNAM>EDI_DC40</TABNAM>
<MANDT />
<DOCNUM />
<DOCREL>46C</DOCREL>
<STATUS />
<DIRECT>2</DIRECT>
<OUTMOD />
<EXPRSS />
<TEST />
<IDOCTYP>/AFS/ORDERS05</IDOCTYP>
<CIMTYP>ZAFSORDERS05</CIMTYP>
<MESTYP>ORDERS</MESTYP>
<MESCOD />
<MESFCT />
<STD />
<STDVRS />
<STDMES />
<SNDPOR>0120XI02_4</SNDPOR>
<SNDPRT>LS</SNDPRT>
<SNDPFC />
<SNDPRN>0120XI04</SNDPRN>
See it put
<SAP:SNDPOR>SAPXSD</SAP:SNDPOR>
<SAP:SNDPRN>ale_sfabs</SAP:SNDPRN>
and we want
<SNDPOR>0120XI02_4</SNDPOR>
<SNDPRN>0120XI04</SNDPRN>
Thanks in advanced.Hi,
our communication channel was migrated from SAP XI 20 and in XO 70 with SP9 we have not the option "Take Sender from Payload" or "ake Receiver from Payload" in the screen only has the option "Queue Processing" and "Apply Control Record Values from Payload"
Take Sender from Payload" and "Take Receiver from Payload" are in the same screen?
Thanks in advanced. -
EDI Sales order creation in CRM through inbound IDocs from non SAP system
Hi Friends,
We are having a scenario where we need to create a Sales Order in CRM for a B2B EDI transmission through IDoc. Customer is sending the EDI Transmission of his Sales order , which is passing through PI and then reaching to CRM to create a Sales order.This is the design we need to follow to make it happen,we are initially trying to create an order using WE19 for testing and the details are:
Basic Type - CRMXIF_ORDER_SAVE_M01
Message Type - CRMXIF_ORDER_SAVE_M
Functional Module - APPL_IDOC_INPUTI which is automatically giving a status text as " Function module CRMXIF_ORDER_SAVE has been called successfully", but no sales order is saved in CRM.
We are getting idocs posted successfully with status 53 with the statuses sequence 74, 50 ,64, 62 and 53.Our issue is inspire of the Idoc having status 53 and the FM called successfully we are not seeing the sales order created in CRM.
We are stuck here no sales order is created in CRM.
Are we missing any config. - set up - Prerequisit - Any OSS note need to be applied -- ANy middle ware setting ?
Any help will be greatly appreciated.
Thanks
VijayHi Christophe,
Awesome!!!!!! it worked, You are the best.
I could able to create a sales order in CRM,but below are the valid data I passed in the respective segment fields.Except for first 3 values rest all did not get reflected in teh Sales order.I feel i am missing some qualifiers.
Can you kindly share the IDoc data to be passed in...along with respective segments and fields:
Segment Field
E101CRMXIF_BUSTRANS OBJECT_TASK
E101CRMXIF_BUSTRANS PROCESS_TYPE
E101CRMXIF_BUSTRANS POSTING_DATE
E101CRMXIF_PARTNER PARTNER_NO
E101CRMXIF_PARTNER RELATION_PARTNER_NO
E101CRMXIF_ORGMAN SALES_ORG
E101CRMXIF_ORGMAN DIS_CHANNEL
E101CRMXIF_ORGMAN DIVISION
E101CRMXIF_SALES PO_NUMBER_SOLD
E101CRMXIF_SALES YOUR_REF_SOLD
E101CRMXIF_SALES PO_NUMBER_SHIP
E101CRMXIF_BUSTRANS_ITEM ITEM_NUMBER
E101CRMXIF_BUSTRANS_ITEM ITEM_TYPE
E101CRMXIF_BUSTRANS_ITEM ORDERED_PRODUCT
E101CRMXIF_PRODUCT_I PROCESS_QTY_UNIT
E101CRMXIF_PRODUCT_I PROCESS_QTY_UNIT_ISO
E101CRMXIF_PRODUCT_I BASE_QTY_UNIT
E101CRMXIF_PRODUCT_I BASE_QTY_UNIT_ISO
E101CRMXIF_SCHEDLIN_I ORDER_QTY
Thanks a ton in advance .
Vijay -
Creation of Sales Order and Service Contract from Inbound IDOC
Hi Experts,
My requirement is to create a Sales Order as well as a Service Contract from one Inbound IDOC. I am getting the Inbound IDOC from a third Party. The message type is ORDERS and Basic Type is ORDERS02. How ever i am using an extension type IDOC which carries all the required data for Sales Order and Service Contract. My requirement is like, to create a Sales Order first.
I have created a Z FM which is attached to the Process Code and subsequently to the message type. Inside the FM i an calling FM 'IDOC_INPUT_ORDERS' for creation of Sales Order. After that i am changing the IDOC data for the Document Type. I am changing the document type which is responsible for Contract Creation.
Then I am again calling the FM 'IDOC_INPUT_ORDERS' for creation of Contract with the help of IDOC data. But here the Contract is not getting created. It's getting failed during the Batch input session.
I need to solve this problem as soon as possible. Please help me. If there are any other options also please share.
Thanks in Advance.
Regards,
PriyabrataActually there is problem with BDCDATA. Inside the FM it's calling transaction with help of BDCDATA. If i am creating a Sales order or contract alone its creating successfully. But when i am trying to create both, it's retuning sy-subrc '1001' after calling the transaction on the second attempt. Is there any problem with BDCDATA like we can't handle with less time gap? Please help and give your inputs.
Regards,
Priyabrata
Maybe you are looking for
-
Benefits of using SAP CAR compared to SAP BW on HANA
Hi I' like to understand the benefits of using SAP Customer Activity Repository. How is it better than SAP BW on HANA? What extra functions does the customer get?
-
How can I open a file with an SPD file extension?
Hi I have started a course for which I have received some literature in pdf format. I have made hand written annotations to a pdf file using my Samsung Note tablet, which I have then put into Dropbox, with the intention of storing on my IMAC. I then
-
Install Sql Server2008 R2 on windows Server 2008 R2 standerd
Hi everyone, I am new to share Point, I install SharePoint 2010 successfully but i am not configure Sql Server2008 R2 .. how to install Sql Server2008 R2 on sharepoint 2010 now.. THanks, srikanth.
-
Can there be an FAQ created by which it gives information to the client on the order process. Example: Client make purchase over the phone: 1. Confirmation email sent to the client with the order number that Adobe Direct Sales or Customer Service
-
When I try to apply for iTunes Connect for Apps distribution, it takes me to the iTunes connect login page. I try to login but it gives me an error: "Apple ID does not have permission to access iTunes Connect." Can you please help me?