Inbound IDOC FM with BAPI
Hi Everyone,
I need some information about posting an application using inbound IDOC with BAPI. I need to write a FM for
Inbound IDOC with BAPI to post it. Can some one give me direction as where to start as I am new to BAPI.
Thanks in advance.
Regards,
vicky
Hi Vicky,
Please take a look at this link which will show step by step on how to setup inbound proscessing.
http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
Also check this links for sample codes.
http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
http://www.sapgenie.com/sapedi/index.htm
Hope this will help.
Regards,
Ferry Lianto
Message was edited by: Ferry Lianto
Similar Messages
-
Outbound delivery with Inbound IDOC DELVRY06 with Message type SHPCON
Hi Friends
I am trying to pack outbound delivery with Inbound IDOC DELVRY06 with Message type SHPCON.
But IDOC has error Specification of destination HU missing.
Could you please help us to resolve the issue to Pack the outbound delivery with the IDOC.
Thanks
SRHI Ian Kehoe
Sorry for delay in reply
Thanks you very much
I solved that problem .
Could you please advice test data for IDOC DELVRY06 packing hierarchy (multi level packing) to pack SAP outbound delivery.
Thanks
Ravi -
Hello,
I have a inbound Idoc of type HRMD_A (basistype HRMD_A07) which is processed by Function module (FM) IDOC_INPUT_HRMD with proofing. After processing an Idoc the status Monitor for ALE messages (BD87) tell me that my Idoc has status 53, which should be the result i would like to have.
Unfortunately when i go to transaction PA20 and check the infotypes, i see that infotype 0302 isn't created. When analyzing this problem i see that during the processing the Infotypes are posted with HR_MAINTAIN_MASTERDATA (dialog mode is 0 and luw_mode = 0 from include LRHA2F02 FORM save_pa_pb_infty) When this is done for infotype 0302 sy-subrc <> 0 the message is A complex application error has occured. This error message is placed in Export parameters
Return and Return1
of HR_MAINTAIN_MASTERDATA. When the program returns to the calling Form it checks if there is message of type E in HR_RETURN (see below) :
CALL FUNCTION 'HR_MAINTAIN_MASTERDATA'
EXPORTING
pernr = ins_objects-objid "#EC DOM_EQUAL
actio = 'INS'
tclas = tclas
dialog_mode = dial_mode
luw_mode = '0'
no_existence_check = $cross
no_enqueue = $cross
IMPORTING
return1 = return
hr_return = hr_return
TABLES
proposed_values = proposed_values.
REFRESH proposed_values.
IF hr_return-msgty = 'E'. "note 984409
CLEAR protocol_error.
protocol_error-msgty = hr_return-msgty.
protocol_error-msgid = hr_return-msgid.
protocol_error-msgno = hr_return-msgno.
protocol_error-msgv1 = hr_return-msgv1.
protocol_error-msgv2 = hr_return-msgv2.
protocol_error-msgv3 = hr_return-msgv3.
protocol_error-msgv4 = hr_return-msgv4.
READ TABLE t_hrobjinfty WITH KEY objid = hr_return-pernr
infty = hr_return-infty
subty = hr_return-subty.
protocol_error-segnum = t_hrobjinfty-segnum.
protocol_error-routid = 'create_prf_pa_pb_object'
As mentioned above, the error message is only placed in the parameters Return and Return1 and not in HR_RETURN.please read the first replyHi,
I think you have preety much done from your end itself .
Could you please tell me what you got in this parameters:
protocol_error-msgty = hr_return-msgty.
protocol_error-msgid = hr_return-msgid.
protocol_error-msgno = hr_return-msgno.
protocol_error-msgv1 = hr_return-msgv1.
protocol_error-msgv2 = hr_return-msgv2.
protocol_error-msgv3 = hr_return-msgv3.
protocol_error-msgv4 = hr_return-msgv4.
It may help us to track down the issue in more better way .
Thanks! -
Processing inbound Idoc ORDERS03 with status 51
Dear ALL
While processing inbound idoc with message type ORDERS03 i am getting a status 51 with below erros
I have maintained the data under VOE2 & VOE4 but not got the solution. We are on SAP ECC6 Version
Customer 1100 is customers purchase organization
Partner no 1109 is customers plant
VKORG, VTWEG, SPART cannot be determined for customer 0000001100 , vendor REN15D
Message no. VG204
Terms of payment in IDoc E1EDK18 have been transferred: Check data
Message no. VG202
Partner number 1109 for customer 0000001100 , partner function WE does not exist.
Message no. VG140
Regards
ArunHi,
Vendor 100002 is not maintained in your system. Maintain the same or use some other vendor which is there in your system.
You should be able to post the document.
Regards,
Lalit Kabra -
Inbound IDOC Failure with WE19
Hi , we are testing a standard IDOC CONF21(inbound) with the test tool WE19.
We have created a FILE port in WE21
We have created a partner relationship in WE21 with inbound parameters (process code CON2)
In WE19 we have populated oly sender and logical message type, plus the segment data. When we try th IDOC in WE19 we have an error in the control record: (partner profile not available)
IDoc 0000000000001027 Current status: 56
Control record Direction: Inbound Sender: LS/ /IDOCTEST
Data records Total number: 000001
E1CONF2 Segment: 000001 CC2 confirmation structure
Status records
56 IDoc with errors added
Message: EDI: Partner profile inbound not available
Is there anyone who can help me for this problem ?
Tanks and Regards,
Riccardo.Yes we have created a partner profile in WE20.
This is the check log, it seems to be correct...
Partner profile IDOCTEST /LS
Header entry (table EDPP1)
Correct partner status
Recipient of notifications exists
Entries for inbound processing (table EDP21)
Entry IDOCTEST /LS/ /CONF21 /
Process code (inbound) exists -
Need to create Idoc using with BAPI in BP
Hi Experts,
Business Partners are created/changed in SAP either directly by using transaction BP or indirectly created from DTI or using the BAPIBUSISM007_CREATEFROMDATA BAPI for new customers and BAPIBUSISM007_CHANGE to change customers. When a business partner is created or changed via transaction BP an IDOC is generated when the create or change is saved. This IDOC is then sent to the appropriate DTI (Third party) clients to ensure the customers remain in sync.
Now issue is that creates and changes made using a BAPI do not generate an IDOC. Therefore, new customers and customer changes made by DTI clients do update ECC but are not being passed on to Ad Sales since an IDOC is not created. The same is true when a customer is created/changed by Ad Sales. The change is made in ECC via the BAPI but since no IDOC is generated the create/change doesn’t get moved to the DTI clients.
what the IDOC triggering mechanism is for generating IDOCS from the BAPIBUSISM007_CREATEFROMDATA BAPI and the BAPIBUSISM007_CHANGE BAPI. This mechanism should be some type of ALE Message that can be used in the partner profile setup to automatically generate the IDOC.
Any inputs about my issue.
Thanks,
AnjiHi Experts,
Any updates or suggestions on this issue.
Thanks,
Anji -
Inbound IDoc error with status 51 : No unique SA could be determined
Hello,
when I would like to create AAU by EDI info;
ORDERS05, DELORD type
how can I set mandatory item for AAU?
Please help
Edited by: Hiroko Numano on Apr 9, 2008 7:13 AMHi,
Vendor 100002 is not maintained in your system. Maintain the same or use some other vendor which is there in your system.
You should be able to post the document.
Regards,
Lalit Kabra -
Goods receipt against process order with inbound idoc
Hi Experts,
We need to post good receipt against process order with movement type 101 and for By-product 531.
Can we use inbound idoc-WMMBID02,with message type WMMBXY to achieve this functionality?
Or please advise if we can achieve this from any other Idoc type.
We are getting below field values for external system
1. process order number
2.plant
3.material
4.quantity in unit of entry
5.unit of measure
6.storage location
7. movement type
8.Batch
Kindly advise how can we achieve this.
Best Regards
CS261 and 262 are two different movement types INDEPENDENT of each other. I definitely know for the fact that SAP allows you to create a 262 without a 261. if you were to restrict it... you can disable access through a tcode for that mov. type 262 and ask users to use MBST to cancel any material documents created via 261 movt type.. that would ensure a smooth process
-
Inbound IDoc w/message ORDERS - issues with error processing
We are using inbound IDoc ORDERS05 with message type ORDERS to create the sales orders in SAP. In WE20 we have the following settings:
- partner type LS (= Sales Org VKORG)
- process code ORDE
- trigger by background program
- post-processing agent of type US (user) with a user ID.
We create IDocs through an ABAP program and use RBDAPP01 to post the IDocs. When there is an application error in the IDoc posting we expect the designated user to receive a workflow item in the SAP Inbox, but for some reason this is not happening.
I did some research and went through all the possible settings for workflow, task, etc. and everything seems to be set up correctly. When debugging RBDAPP01 I have noticed that it calls FM APPLICATION_IDOC_POST_IMMEDIAT, which, in turn, calls IDOC_START_INBOUND. If IDOC_START_INBOUND returns SY-SUBRC = 1 then the workflow item is sent correctly to the designated user, exactly as we want. But for some reason it returns 0 (I changed it to 1 in the debugger).
It seems that IDOC_START_INBOUND reads TEDE2 records (TEVE2-EVCODE = ORDE) and sy-subrc = 1 is only possible when EDIVR2 is 1,2,3 or 4. In our case TEDE2-EDIVR2 = 6. It seems that TEDE2 is maintained in the transaction WE42. However, I tried to change the settings there but it affects the IDoc processing in whole (IDoc gets some odd status and doesn't get processed as before). I've also tried to use process code ORDE_BY_WORKFLOW in WE20 with the same "success".
What do we need to do to get a workflow item for the errors that happen in the application layer when IDoc is posted? Is it even possible with this message type?
Any ideas would be appreciated.Hi,
Can you please share how do you overcome the problem, so that it can be helpful for others. -
Inbound idoc MATMAS - find userexit to map extension
Hi !
I have an inbound IDOC MATMAS04 with a specific extension. I need to map the fields of the extension : some of them into an append of MARA, some others into characteristics.
<b>I can't find the user exits I need.</b>
I guess there are 2 of them. The first one for mara append BEFORE the creation of the material, and the second one for the characteristics AFTER the creation of the material.
Does anyone know where I can find such user exits (even HOW to find them would be so much appreciated) ?
Kind regards,
YannHi..
This is the Enhancement <b>MGV00001</b>
and The FM exit is <b>EXIT_SAPLMV02_002</b> To Enhance IDOC for MARA segment in Inbound.
<b>Reward if Helpful</b> -
Prevent the Output Message when creating PO from inbound IDOC
Hi SAP Gurus,
In my project, I have to create PO from inbound IDOC (PORDCR) with a specific Document Type ('099').
Requirement: These PO should not generate the output message while the others (Doc Type # '099') do.
I have the Z fuction module which call BAPI_PO_CREATE for posting IDOC and it works fine.
In the existing system, there are some set up that trigger the output message type for PO (output NEU) when using ME21 or ME22, as a result my PO created with output message.
Can you please advise if there are some way (User Exit?) that prevent the output message in this scenario (specific PO Type) without touching the current Condition setup?
I'm new in MM and really need help!
Thanks,
Elaine.Hi Vinod,
I really appreciate your anwer. I'm going to explore this with my functional consultant.
Just like to have more questions:
1. Is it easier if we change the existing condition table instead of creating a new routine?
2. There are two forms for routine 101 (FORM KOBEV_101 and FORM KOBED_101). Can you explain to me why we need 2 here for what purpose of each form.
3. In the debug mode by using WE19 to post inbound IDOC, I change the SY-SUBRC = 4 and PO created without output message. Is it the right direction? Anything else I need to pay attention to?
Thanks again.
Regards,
Elaine. -
Hi Experts,
I have a requirement to get the Inbound IDOC for particular PO. I have used the following method:
http://forums.sdn.sap.com/thread.jspa?threadID=1082790
That means using tables:
A) SRRELROLES
B) IDOCREL
This is working for most of the cases except if the inbound IDOC is amended by the sender ( ex:- requested quantity changed ).
1. If inbound IDOC received without any changes, it will be there in SRRELROLES as roletype = 'INBELEG'.
2. If inbound IDOC received with changes it is not there in SRRELROLES.
Could you please help me to resolve this issue?
Thanks,
ChamindaHi,
Thanks for your help.
anyway, finally i had to use the time consuming way as there is no any other way.
1. Get all the ORDRSP Idocs from EDIDC based on the selected date range
select docnum status
into table lt_edidc
from edidc
where credat in p_date1 and
mestyp = 'ORDRSP'.
if sy-subrc eq 0.
sort lt_edidc.
2. Get all segment data records for the control records
select mandt docnum counter segnum segnam psgnum hlevel dtint2 sdata
from edid4
into table lt_edid4
for all entries in lt_edidc
where docnum = lt_edidc-docnum and
segnam = 'E1EDK02'.
3. to imporve the performance, i have used BINARY SEARCH when search back the IDOC from PO.
Thanks,
Chaminda
Edited by: chamindakrat on Feb 17, 2012 12:07 AM -
how to give inbound idoc config in bapi method of lsmw..thank u..
Hello Rajesh
Did you check in [SDN |Using BAPI Method in LSMW].
so that you will get an idea before posting.
Regards! -
Non English characters conversion issue in LSMW BAPI Inbound IDOCs
Hi Experts,
We have some fields in customer master LSMW data load program which can
contain non-English characters. We are facing issues in LSMW BAPI
method with non-English characters Conversion. LMSW steps read and
conversion are showing the non-English characters properly with out any
issue. While creating inbound IDOCs most of the non-English characters
replaced with '#' and its causing issues in creating customer master data in
system. In our scenario customer data with non-English characters in
the first name, last name and address details. Any specific setting
needs to be done from our side? Please suggest me to resolve this issue.
Thanks
Rajesh YadlaIf your language is a unicode tehn you need to change the options like IN SAP you need to change it to unicode in the initial screen Customize local layout(ALT F12) options 118 --> Encoding ....
-
Create PM orders/notif with inbound IDOC
Hi all,
Anyone knows how can I create a PM order and a PM notification with inbounds IDOC?. If there are not IDOC available, it´s possible create PM order and notification trhought BAPI´s?.
Thanks in advance
AbelHi Abel,
Have a look at BAPI_ALM_ORDER_MAINTAIN for PM Order and BAPI_ALM_NOTIF_CREATE for PM Notification.
You can check the BAPI's from transaction code BAPI.
Hope this helps.
Thanks
Lakshman
Maybe you are looking for
-
How to find out the Area Menu for a Report/ Table/Function Module
Hi, Is there any procedure to find out the <b>"AREA MEANU"</b> for a Report/Table/Function Module... Or is there any Transaction code / Report is available to find out all the report for a particular "AREA MENU". Thank you for your quick response...
-
Custom print order in Address Book
HI all, I want to print an member List for my organization in address book with a Custom Sort Order. I don't know how to do it. Here is the thing: I made a contact list of the members of the organization so that I can have on File. Select my C
-
Would like to know the name of the game pre-installed on an eMac.
I would like to know the name of the space ship 3rd-person shooter game pre-installed on an eMac. Awhile back, I had used an eMac with a previous employer and there was a space ship 3rd-person shooter game loaded on the eMac. This may or may not have
-
Can't find ringtones in the itunes store
Hi, I have not purchased ringtones in a while and I can't seem to find them anywhere in the iTunes store. I have tried searching for "Tones and/ or Ringtones," and I get music, books, etc... but no ringtones. What am I doing wrong?
-
Binding ALV GRID with Deep Internal Table
Hello all, I am looking for a way to display ALV Grid with the Deep ITAB. My ITAB is not too complex. It has One Structure which gets whole DB table + One extra field. Therefore my Itab looks as follows. TYPES: BEGIN OF TY_TRIP, ZPM_UPLOAD LI