Inbound IDoc using LSMW
Hi..
I am trying To Upload customer master data using LSMW with IDOc.
I am debugging the Inbound IDoc Using BD87 and INPUT_METHOD = 'A'
One segment E1KNB1M data is not passed to transaction 'XD01' due that my company code data is not updated
Pls tell me how to pass segment E1KNB1M data to transaction.
I am using Message type : /SAPSLL/DEBMAS_SLL
Idoc type : Debmas03
Function Module : IDOC_INPUT_DEBITOR
Hi Rishi,
Thanks for the document. But the document mainly concentrates on LSMW(I'm aware of generic LSMW with BDC), it doesn't explain the inbound IDoc, segment merging, Creation of partner function or Message and Basic types WRT inbound IDoc. Please send any document with that relevance.
Kiran
Similar Messages
-
Creating Inbound IDoc Using LSMW
How to create the inbound IDoc using LSMWu2026
For example
Input is Flat filesu2026.
I created custom IDoc with header and items
Structure looks
Header 1
Item 1
Item 2
Header 2
Item 3
Item 4
Header 3
Item 4
Item 5
u2026u2026.
u2026u2026.
u2026u2026..
Do I need to create different flat files (item level & Header level) as input while creating IDoc using LSMW ??
Can some one guide me on thisu2026with best way to create IDoc using LSMW with flat fileu2026.
Rameshcan you please help me ... how input file to LSMS looks ..Sample file is helpful...
My Structure
E1EDK01 < Header Data
E1EDK14 < Header Data
E1EDK14 < Header Data
E1J3K03 < Header Data
E1EDK05 < Header Data
E1EDK05 < Header Data
E1EDKA1 < Header Data
E1EDKA1 < Header Data
E1J3P01 < Header Data
E1J3AIM < Item Data
E1EDP20 < Item Data
E1J3P01 < Header Data
E1J3AIM < Item Data
E1EDP20 < Item Data
Header had 3 segement E1EDK14 E1EDK05 & E1EDKA1 repeating twice.... i am facing prolem with this
What Structure format i used for above segement in LSMW and what file format i should use..for input to LSMW...
Edited by: Ramesh on Mar 25, 2009 1:26 AM
Edited by: Ramesh on Mar 25, 2009 1:41 AM
Edited by: Ramesh on Mar 25, 2009 1:44 AM -
Hi,
I need to create an Inbound IDOC using Function modules using an XML file as Input.
I am using mySAP ERP 2004(WAS 6.4).
IDOC type : HRMD_A05
Message Type : HRMD.
I am using the FM's in an ABAP report for testing, reading the data from the XML File using the FM GUI_UPLOAD .
I tried using the FM <b>IDOC_INBOUND_XML_VIA_HTTP</b>,with import parameters XML_STREAM, CONTENT_LENGTH, CONTENT_TYPE, REMOTE_ADDR.(ALL Type Strings)
This FM creates the IDOC successfully but i do not get the status record for the IDOC as there are no export parameters or tables where i can get the value.
I am trying using the FM <b>IDOC_INBOUND_XML_SOAP_HTTP</b>,with import Parameters as <b>XML_STREAM type XSTRING</b>,and there is the export parameter ASSIGN ,type IDOC_ASSIGN_TAB and i was wondering if this could return the status.
I used the same XML and used the FM "SCMS_STRING_TO_XSTRING", to convert the file input string into XSTRING.
On executing this i get the exception,"NO DATA RECEIVED" .
Can anybody Please Tell me
1)How to get the status of an IDOC if i use the FM IDOC_INBOUND_XML_VIA_HTTP ?
2)How to use the FM IDOC_INBOUND_XML_SOAP_HTTP ?
3)Is there any other way to create an IDOC with XML input?
Thanks,
regards,
Siddhartha JainHI Nagarajan,
I had checked the first link mentioned by you and activated the required service from Transacttion SICF,but still it didn't help.
The second link points to the IDOC Adaptor for XI,guess it won't help as i'm not using XI.
I want to pass XML data read from file and call a FM which creates and posts and IDOC into R/3 and returns the IDOC Number and Status.
For this i found the FM's IDOC_INBOUND_XML_SOAP_HTTP and IDOC_INBOUND_XML_VIA_HTTP.
The FM IDOC_INBOUND_XML_VIA_HTTP accepts xml as string and posts IDOC succesully,but i do not get the status and IDOC Number.
The IDOC_INBOUND_XML_SOAP_HTTP accepts xml as xstring,so i used the FM SCMS_STRING_TO_XSTRING to convert the same xml string to xstring and pass it to the FM.But it gives an error 'NO DATA RECEIVED'.
If i make few changes to the XML doc,to include SOAP envelope ,like
<?xml version="1.0" encoding="UTF-8"?><HRMD_A05>.......</HRMD_A05>
to
<soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/"><soap-env:Body><IDOC BEGIN="1">.......</IDOC></soap-env:Body></soap-env:Envelope>
I get the error,the tag <IDOC BEGIN="1"> not found ,the IDOC XML should be of format <IDOC BEGIN="1"> <IDOC>.
Can anybody please help on what to do/how to proceed.
Thanks,
Regards,
Siddhartha -
Hi All
We are creating transactions for legacy data migration with LSMW using inbound Idoc. We are able to do the same successfully. As per requirement for each transaction some word and Pdf files have to be attached. Is there any way to attach documents with Idoc through LSMW?
Thanks
AviHi Avineesh,
What you can do is use two LSMW.
First one to upload transaction data and get the transaction number of all the uploaded transactions using IDOC.
Secondly use LSMW with BDC to attach the files to that specific transaction.
Or
In option to above approach you can use LSMW with BDC to upload all the transaction along with attachment.
Best Regards,
Pratik Patel
<b>Reward with Points</b> -
Inbound IDoc used for updating Sales order status
I have a requirements to set use standard IDoc to send out the Sales order to a non-SAP software as well as receiving Inbound IDoc to update the status of sales order in SAP. Could someone comment on my questions below:
1. What are the difference between all the ORDERSxx Idoc types?
2. What IDoc should be used for Inbound IDoc to update the sales order stataus in SAP?
3. Can the same IDoc type be used for both Inbound and Outbound with only the difference in the segment of Direction?
Thank you. Points will be awarded appropriately for helpful comments.Hi,
1.Intially standard IDOC types "ORDERS01" is having limited
segments. After few months the requirement got increased to
add more fields to "ORDERS01".So,once you release the IDOC
type you can not add any more fields .So SAP come up
with "ORDERS02" with new fields.Like that all IDocs types have
some more new seg ments.
2.You can use ORDER05
3. Yes you can use same IDOC type -
To create inbound idoc using we19.
hi
i am using we19 where i have mentioned the message type for purchase order
now how do i fill the segments manually ,that is how do i come to know which fields are mandatory and which are optional, because for my case i am getting many fields . Secondly how do i come to know whether it is valid data or not which i am filling.
thanks in advance....Hi Sushil,
Not all fields maynot be mandatory. Regarding the valid data, you can check with existing idoc's to use for this testing. Here is a sample of how you enter data and test it.
1) Go to We19
2) Enter either Existing idoc type(if you have one) or select basic type (for example) as "wVINVE02" and click on create.
3) The test tool opens with the EDIDC and EDIDD.
4) click on EDIDC to enter information if you want like port, partner number, partner type of recipient and sender along with message type.
5) click on "E1WVINH" segment to enter data storage loc, phy inv. doc,
fiscal year and etc.
6) Expand "E1WVINH " segment to enter data for "E1WVINI" like item, qualifier and etc.
7) Expand ""E1WVINI" segment to enter data for segments "E1WVI01" and "E1WXX01" .
Once you are done with all the required information, click on Start Inbound or Inbound function module buttons on the pf-status to post the data.
Use, Start Inbound if you know all the information like port number, partner profile. otherwise use Inbound function module to post the data.
Once it is done, the test tool will tell you the idoc number generated which you can look through WE05.
Hope this will give you some idea.
Regards,
Vivek
PS: Award points if helpful -
Inbound Interface using HRSM_D01 Idoc
Hi,
We have an inbound Idoc using the HRSM_D01 idoc. This interface allows an external system to send data to our SAP HR system to update infotypes 2001 and 2002.
We are planning on extending this interface by not only allowing new values to enter the system but also cancellations of old records. For example an employee has reported working time for one day but would like to change the record into absence. The employee should then be able to change the record in the source system and the cancellation of the old record (deduction from IT2002) for the attendance and a new record (IT2001) for the absence should be sent to SAP.
There is a field in the Idoc that indicates if the record should be reversed. But it seems like the RBDAPP01 program that processes the inbound idocs does not update the interface table PTEX2000 with records that have X in the REVERSED field in the idoc.
Does anyone have experiences from cancelling records in a source system and the passing the cancellation to SAP HR?
Thank you
/BjörnHi,
We have an inbound Idoc using the HRSM_D01 idoc. This interface allows an external system to send data to our SAP HR system to update infotypes 2001 and 2002.
We are planning on extending this interface by not only allowing new values to enter the system but also cancellations of old records. For example an employee has reported working time for one day but would like to change the record into absence. The employee should then be able to change the record in the source system and the cancellation of the old record (deduction from IT2002) for the attendance and a new record (IT2001) for the absence should be sent to SAP.
There is a field in the Idoc that indicates if the record should be reversed. But it seems like the RBDAPP01 program that processes the inbound idocs does not update the interface table PTEX2000 with records that have X in the REVERSED field in the idoc.
Does anyone have experiences from cancelling records in a source system and the passing the cancellation to SAP HR?
Thank you
/Björn -
How to upload data using idoc in lsmw
plz let me know how to upload material using idoc using lsmw. urgent
Hi Vrishali,
refer to the link below:
http://www.****************/Tutorials/LSMW/IDocMethod/IDocMethod1.htm
Hope this helps.
Reward if helpful.
Regards,
Sipra -
I 'VE CREATED A PURCHASE ORDER AND GENERATED AN IDOC FOR THE SAME. I WANT TO CONVERT IT INTO AN INBOUND IDOC USING WE19.
WHAT ARE THE SEGMENT FIELDS TO BE CHANGED ??????WHAT ARE THE STEPS TO BE FOLLOWEDHI Priyaraj,
steps to be performed
1. In the first option select the existing type of the idoc which you have created for example ZPURCHASEORDER.
2.In the data records the first segment would be Z1ZPURCHASEORDER you need to make an entry for this segment .
3. The second segment would be Z1BPMEPOHEADER which you can enter based on your requirement.
Similarly you can create any number of segments based on your requirement.
If useful please reward points.
Regards,
Adarsh Srivastava. -
Inbound IDOC not Triggering Immediately
I am processing an inbound idoc using startrfc, EDI_DATA_INCOMING. It posts the idoc, but stuck with status 64. Partner profile set to Trigger immediately. Why will it not process immediately? I can execute the RBDAPP01 to handle, but prefer immediately. Is there something on the EDI_DC that needs to be set?
Oh, unfortunately not with startrfc. I overlooked the startrfc word in your post.
You can check this SAP note 168276. It talks about The event receiver linkage not activated in Customizing. (t-code OYEB)
regards,
Advait -
I am creating an inbound IDoc using ABAP. I have successfully created the IDoc, but I am getting errors, I believe because of the format of the Data Records in the IDoc. Here are the fields for the Data Records:
MANDT - using sy-mandt
DOCNUM
SEGNUM
SEGNAM - populating with segment name
PSGNUM
HLEVEL
DTINT2
SDATA - populating with data based on segment format
Can somebody either explain, or provide a link to instructions on how the other elements should be populated. I am getting a "flat" IDoc, and I think it's because I am not populating the hlevel, and possibly other elements, properly. I'm just not sure what to put in these elements to show the correct hierarchy of the IDoc.Denise,
here is an example of updating contract prices using an ABAP, hope this helps
DATA: I_IDOC_DATA LIKE EDIDD OCCURS 0 WITH HEADER LINE,
I_IDOC_COMM LIKE EDIDC,
*--- Fills receiver tables
CALL FUNCTION 'OWN_LOGICAL_SYSTEM_GET'
IMPORTING
OWN_LOGICAL_SYSTEM = WA_LOGSYS
EXCEPTIONS
OWN_LOGICAL_SYSTEM_NOT_DEFINED = 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.
*--- Create IDoc control-record
CLEAR I_IDOC_COMM.
I_IDOC_COMM-MESTYP = 'COND_A'.
I_IDOC_COMM-IDOCTP = 'COND_A01'.
I_IDOC_COMM-DIRECT = '2'.
I_IDOC_COMM-SERIAL = SY-DATUM.
I_IDOC_COMM-SERIAL+8 = SY-UZEIT.
I_IDOC_COMM-RCVPOR = SPACE.
I_IDOC_COMM-RCVPRT = 'LS'.
I_IDOC_COMM-RCVPRN = WA_LOGSYS.
I_IDOC_COMM-SNDPOR = P_SNDPOR.
I_IDOC_COMM-SNDPRT = 'LS'.
I_IDOC_COMM-SNDPRN = WA_LOGSYS.
LOOP AT I_COND_UPD INTO WA_COND_UPD.
REFRESH I_IDOC_DATA.
*--- Fill E1KOMG segment
CLEAR E1KOMG.
E1KOMG-KVEWE = 'A'.
E1KOMG-KOTABNR = WA_COND_UPD-KOTABNR.
E1KOMG-KAPPL = WA_COND_UPD-KAPPL.
E1KOMG-KSCHL = WA_COND_UPD-KSCHL.
IF WA_COND_UPD-KOTABNR = '017'.
MOVE: WA_COND_UPD-LIFNR TO E1KOMG-VAKEY+0(10).
MOVE: WA_COND_UPD-MATNR TO E1KOMG-VAKEY+10(18).
MOVE: WA_COND_UPD-EKORG TO E1KOMG-VAKEY+28(4).
MOVE: WA_COND_UPD-WERKS TO E1KOMG-VAKEY+32(4).
MOVE: WA_COND_UPD-ESOKZ TO E1KOMG-VAKEY+36(1).
IF E1KOMG-VAKEY+36(1) = SPACE.
MOVE '0' TO E1KOMG-VAKEY+36(1).
ENDIF.
ENDIF.
CLEAR I_IDOC_DATA.
MOVE 'E1KOMG' TO I_IDOC_DATA-SEGNAM.
MOVE E1KOMG TO I_IDOC_DATA-SDATA.
APPEND I_IDOC_DATA.
*--- Fill E1KONH segment
CLEAR E1KONH.
E1KONH-DATAB = WA_COND_UPD-DATAB.
E1KONH-DATBI = WA_COND_UPD-DATBI.
CLEAR I_IDOC_DATA.
MOVE 'E1KONH' TO I_IDOC_DATA-SEGNAM.
MOVE E1KONH TO I_IDOC_DATA-SDATA.
APPEND I_IDOC_DATA.
*--- Fill E1KONP segment
CLEAR E1KONP.
E1KONP-KSCHL = WA_COND_UPD-KSCHL.
E1KONP-STFKZ = WA_COND_UPD-STFKZ.
E1KONP-KZBZG = WA_COND_UPD-KZBZG.
E1KONP-KSTBM = WA_COND_UPD-KSTBM.
e1konp-konms = wa_cond_upd-konms.
PERFORM CONVERT_ISO_UNIT USING WA_COND_UPD-KONMS
CHANGING E1KONP-KONMS.
E1KONP-KSTBW = WA_COND_UPD-KSTBW.
E1KONP-KONWS = WA_COND_UPD-KONWS.
E1KONP-KRECH = WA_COND_UPD-KRECH.
E1KONP-KBETR = WA_COND_UPD-KBETR.
E1KONP-KONWA = WA_COND_UPD-KONWA.
E1KONP-KPEIN = WA_COND_UPD-KPEIN.
e1konp-kmein = wa_cond_upd-kmein.
PERFORM CONVERT_ISO_UNIT USING WA_COND_UPD-KMEIN
CHANGING E1KONP-KMEIN.
E1KONP-PRSCH = WA_COND_UPD-PRSCH.
E1KONP-KUMZA = WA_COND_UPD-KUMZA.
E1KONP-KUMNE = WA_COND_UPD-KUMNE.
e1konp-meins = wa_cond_upd-meins.
PERFORM CONVERT_ISO_UNIT USING WA_COND_UPD-MEINS
CHANGING E1KONP-MEINS.
E1KONP-KZNEP = WA_COND_UPD-KZNEP.
E1KONP-ZAEHK_IND = WA_COND_UPD-ZAEHK_IND.
CLEAR I_IDOC_DATA.
MOVE 'E1KONP' TO I_IDOC_DATA-SEGNAM.
MOVE E1KONP TO I_IDOC_DATA-SDATA.
APPEND I_IDOC_DATA.
ENDLOOP.
CALL FUNCTION 'IDOC_WRITE_AND_START_INBOUND'
EXPORTING
I_EDIDC = I_IDOC_COMM
DO_COMMIT = 'X'
IMPORTING
DOCNUM = WA_DOCNUM
ERROR_BEFORE_CALL_APPLICATION =
TABLES
I_EDIDD = I_IDOC_DATA
EXCEPTIONS
IDOC_NOT_SAVED = 1
OTHERS = 2 -
Hi,
I'm a beginner to ALE/Idoc.Can Someone explain with an example How to Send an IDOC Using LSMW transaction for materials.hi
please go through the following links.
http://www.****************/Tutorials/LSMW/LSMWMainPage.htm
http://www.****************/Tutorials/LSMW/Routines/Page1.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/1a/178ac72d3011d3bc3500105a6588b2/frameset.htm
http://****************/Tips/LSMW/LSMWMain.htm
Thanks and regards. -
Sample files for inbound IDOC's( EDI)
Hi All,
I am trying to get idoc's into system using EDI , wanted sample files for inbound idocs using EDI.
If someone could send the files please.
rgds
Ajay SharmaHI,
Here one sample file.U need to change the sender/receiver ID's accordingly to the setup at ur EDI subsystem.This 850 i/b file will create an ORDERS idoc in SAP.
ISA³00³ ³00³ ³01³006906614GE ³01³040986076 ³060714³0640³U³00401³000012157³1³P³>~
GS³PO³006906614GE³040986076³20060714³0640³5008³X³004010~
ST³850³020700691~
BEG³00³NE³020700691³³20060714~
N1³BS³ABC PHOENIX DIVISION³11³RA0290837~
N1³SU³³11³II7930501~
PO1³1³12³EA³123.45³³ND³0469520260~
PO1³2³24³EA³190.23³³ND³0469520211~
CTT³2~
SE³8³020700691~
ST³850³057796284~
BEG³00³NE³057796284³³20060714~
N1³BS³ABC RALEIGH DIVISION³11³RA0289036~
N1³SU³³11³II7930501~
PO1³1³48³EA³61.72³³ND³0469520230~
PO1³2³12³EA³123.45³³ND³0469520260~
PO1³3³6³EA³190.23³³ND³0469520211~
CTT³3~
SE³9³057796284~
GE³2³5008~
IEA³1³000012157~
Also u can check in the system and find some ORDERS
idocs and u can retrigger that from WE19.
reward if helpfulll
ram -
Inbound Delivery For Scheduling Agreement Lines using LSMW
Hi,
We need to create inbound deliveries for scheduling agreements. Our scheduling Agreements are too big with 200 lines. But the vendor used to send only few discrete lines in his ASN. Is it possible to create inbound deliveries for the Scheduling agreement using LSMW? Is there any standard BAPI or IDOC available to handle this in LSMW? Has anyone done this before?
Our requirement is as follows.
1. Create Inbound Delivery for few lines of the Scheduling Agreement
2. The delivery quantity of the inbound delivery will be a partial quantity of the Scheduling Agreement
3. Materials are batch managed and the batch number for each inbound delivery item need to be captured.
4. Vendor's ASN Number and its item number need to be captured at inbound delivery header and item level respectively.
Note: Delivery Schedule of the Scheduling Agreement is not used in the above scenario.
If you have any input, it will be really appreciated.
Regards,
SP0526Hi,
You can give your scheduling agreement number in the field Purchase Order.
If you want select from the list, you can click on PO tree (just under create inbound delivery). There selet document category as "L". You will get the scheduling agreement list.
Regards,
Prabu -
Issues in using LSMW IDOC method for Article Hierarchy
Hi Experts,
I am working on a scenario for uploading article hierarchy using LSMW idoc method.
Details:
Message type WMATGRP
IDoc type WMATGRP01
But as per my understanig, for processing, there should be a inbound Function module/Process code. But I am unable to find out any process code for this in tcode WE42/We60.
Could you please help in this problem.
Regards
Krishan KumarHi Saeed,
For example if you want t create bom through lsmw then we will *** two files one header and other item one.In the same way .In lsmw start by keeping the idoc method i will only propose at second step how many files it need. Just map the idoc and see. Post if need more help.
Regards,
Madhu.
Maybe you are looking for
-
Report not rendering charts in pdf (A generic error occurred in GDI+)
I've found the following exception stack trace in the Report Server log: ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.RenderingObjectModelException: , Microsoft.ReportingServices.ReportProcessing.RenderingObjectModelException: A gener
-
3GS doesn't fit into iPhone Bluetooth Headset cradle?
Just got my first iPhone, the 3GS. However, I already own the iPhone Bluetooth headset, which comes with a cradle that it supposed to accommodate the bluetooth and the iPhone. Since the new 3GS supposedly has the same dimensions as previous phones, i
-
Save state on logoff? Server as main desktop w/ multiple users
Hello everyone, Just got my mac mini server and plan to use it as the main desktop in our house for my wife and I. We both have laptops, but I hope to eventually make the laptops as thin-as-we-can clients and keep most of our data on the server. So a
-
I am receiving an error message saying "could not open spyware"; and have the Verizon Security Package; how do I correct for it?
-
Loading HTML or PHP page in flash
Hi, I would like someone to tell me if there is a way to load html or php page in flash just like a movieclip without actually navigating from the flash player(by using getURL code). Basically, I am wondering if there is a way to load a html file jus