IDOC, created via BAPI-CALL?
Hey experts,
I´m looking for a way to identifiy, if an IDOC has been created via a asynch. BAPI-Call or if it is a usuall IDOC.
Can anyone help me?
Thx a lot!
Oliver
Oliver,
He is not talking about any Idoc. He is talking about the acknowledgement. Check this help on this:
http://help.sap.com/saphelp_nw04/helpdata/en/44/932e8896b610bbe10000000a422035/frameset.htm
---Satish
Similar Messages
-
Capturing Idocs created by BAPI Created Documents
Hi guys,
I have a big problem that i could really need some help, i use a BAPI:
BAPI_ACC_DOCUMENT_POST to create documents, in same cases depending on the accounts used there are some CO documents created and their equivalent idocs.
I searched everywhere but i didn't find any way to get the number of the idoc generated by the CO document that is created, does anyone have any suggestions on what to do ???
In regular Documents i use this Function:
SREL_GET_NEXT_RELATIONS
but in this case it doesn't work even after many trials !
I would really aprecciate the help !Hi
If you are trying to find the idoc number that created a document, there is a way you can find it out.
Note down the important field details of the document that would help you identify the idoc that created it.
Go to transaction WE05. Using the date range the document got posted, pull up a list of idocs.
Then click on the List Specific segment, put in the segment name of the idoc and click continue.
It will bring up a table of table. You can find the row that contains the field information you have and by that approach find the idoc that created the document.
Hope this helps
Deepa -
Create Support Message via BAPI with additional partners
Hi all,
i need to create a support message (slfn) via bapi / function module. The basic creation is no problem with BAPI_NOTIFICATION_CREATE.
But i need to set additional partner(functions) like "approved by" in the support message. With this bapi i can only set the processor and creator of the message.
How can i add additional partners via BAPI call?
Any help would be much appreciated.
DanielHi Daniel,
i do not think there is a standard functionality for this.
you can use function module CRM_DNO_UPDATE_PARTNER to set partner functions to a message. You will have to build your own RFC enabled function module around this, though.
Then you can use it to add your partners after the message was created.
Regards,
Christoph -
Hello,
I am working on a scenario in which a client (abap proxy) sends a message to the integration server, which dispatches the messages to an rfc-adapter, an bapi call.
Therefore I have read the tutorial, which can be found on this site, but unfortunately I have run into problems. Maybe someone can help me at this point. This is what I did:
1.I have imported the BAPI_FLIGHT_CHECKAVAILABILITY as suggested in the tutorial.
2. I created an Message interface named: U2_BAPI_IF
3. For the output message I have chosen: BAPI_FLIGHT_CHECKAVAILABILITY and for the input:
BAPI_FLIGHT_CHECKAVAILABILITY.Response. I have left the fault message field empty.
4. I did no message mapping, since I want to work with the BAPI Response structure in the abap proxy.
5. The Message interface is defined as outbound synchron.
6.In the Integration Directory I created a Receiver Determination with a Service as a sender, the message interface is U2_BAPI_IF. Additionally I configured a "configured receiver" the client with the BAPI.
7.I created a Interface Determination, for the sender the same entries as above and for the configured Inbound Interface I have chosen BAPI_FLIGHT_CHECKAVAILABILITY and the receiver client
8.I created a receiver agreement.
9. Saved the change list.
10. I have generated the abap proxy for the message interface U2_BAPI_IF, without problems
11. I created the following abap program:
data: lv_msg_raus TYPE ZU2_BAPI_IF_BAPI_FLIGHT_CHECK1,
lo_proxy TYPE REF TO ZCO_U2_BAPI_IF,
lv_msg_rein TYPE ZU2_BAPI_IF_BAPI_FLIGHT_CHECKA.
lv_msg_raus-AIRLINEID = 'AA'.
lv_msg_raus-CONNECTIONID = '0017'.
lv_msg_raus-FLIGHTDATE = '20040801'.
create object lo_proxy.
call method lo_proxy->execute_synchronous
exporting
OUTPUT = lv_msg_raus
importing
INPUT = lv_msg_rein.
12. I execute the program and I receive the following error:INTERFACE_REGISTRATION_ERROR, the SAP Stack says:
<SAP:Stack>No implementing class registered for the interface (type ifmmessif, name BAPI_FLIGHT_CHECKAVAILIBILITY, namespace urn:sap-com:document:sap:rfc:functions )</SAP:Stack>
So now my question, do I have to implement a class (proxy) on the receiver side to receive the message and pass it then via bapi call myself, or did I something totally wrong?
I hope somebody can help me,
Thanks
OliverHi Oliver,
I was wondering if you finally got this scenario to work, if Yes. Could you explain how did yo manage to (solve your problem)setup your scenario as described in your earlier note?
Thanks,
Rob. -
Handling unit creation in existing shipment via BAPI or IDOC
Dear all,
Dose any one tried and succeed packing deliveries items in an existing shipment in the shipment level via BAPI or IDOC.
I tried to use IDOC massage type SHPADV. The problem was that it's creates a new shipment with the same deliveries and pack their items, although I entered the existing shipment number.
With regards to "BAPI_SHIPMENT_CHANGE", it is seems like this BAPI is not an option. It is update the shipment in any shipment field but not creating HU in shipment level.
Dose there any solution via those options or there is any other solution.
Thanks in advance,
ItaiI tried simulating this LSMW (message type- PREQCR1, Baisc type -PREQCR101) and it is working fine. I used creation indicator = R in item segment - E1BPMEREQITEM and have not updated value for this field in Header. So try without any value for CREATE_IND in HEADER and just pass R in item.
yogesh -
Can BAPI Calls in a report trigger an IDOC using BAPI-ALE?
Hi,
I had a requirement to create PO using BAPI. The code is complete. But now I have to use an IDOc instead of BAPI since it is an asynchronous scenario.
Is there any possible way that after CALL BAPI step in the report, an IDOc will be triggered. Is it possible if i set BAPI-ALE?
If yes, do we need to call call_bapi_commit.
Regards,
Sreehari.hi Shree,
What i understood from u r question is that u need to send teh created PO(created in by bapi ) through IDoc .
Correct me if i m wrong.
you can trigger IDoc from report program easily . I think u have to use bapi _transaction _commit to commit and then trigger IDoc .
And also check the possiblity of change pointer as they r for the same. -
No Centry in CDHDR when Cost Center is created via Idoc
Hi All,
Whenever a cost center is created via an Idoc the corresponding entry is not maintained in CDHDR table.
Whereas if I use Tcode ks01 to create Cost Center (ie via screen) then there is an entry to CDHDR table.
I tried debugging the FM IDOC_INPUT_COSTCENTER .
Here in PERFORM write_ale_cp_via_cd tables LT_CSKS,
there is a call to CALL FUNCTION 'IDOC_CD_WRITE_CHECK,
here ld_active is always initial.
If I set this as X while debugging then I do have my entry in CDHDR table.
Can anyone let me know the significance of this ld_active and why is it not set to X initially.
As it is important for me to have entry in CDHDR because I need to trigger an event as a cost center is added.
Kindly advice.
Regards,
SwetaSweta,
The same problem has lingered with me for awhile now. Finally, I have a solution.
The controlling area needs to be configured for master data distribution. Take a look at the view V_TKA01_ALE to confirm that the controlling area(s) that you are working with have a logical system(TKA01-LOGSYSTEM) and distribution method(TKA01-ALEMT) set up. These fields are checked in the IDOC_CD_WRITE_CHECK function module. If they are blank, no change documents are created.
Hope this helps.
Brad -
Create IDOC (FIDCCP02) via LSMW
Hi,
i would like to create IDOCs (basic type FIDCCP02) via LSMW. How should source file look? Shall it be only one structure or more (header, items)? I need to create many IDOCs from one source file and IDOCs (FI documents) will have variable number of items. How can i do it?
Thanks, zd.i would also want to know how can something be done via BAPI method in LSMW. one explaining the Idoc method can also pls. explain this.
Thanks in advance. -
Problem with creating business partner via BAPI
Hello! I have a simple File-RFC-File scenario:
XML-file with Firstname, Lastname and PartnerCategory. I use BAPI_BUPA_CREATE_FROM_DATA to create a partner with this data.
It works, in target file I have a number of new business partner, but I can't find new partner in the system. Like I only tested BAPI_BUPA_CREATE_FROM_DATA in "bapi" transaction without real effect.Hi,
probably you didn't comit the BAPI
RFC adapter allows to specify comit for BAPI
add this to your RFC channel configuration and you will see the partner
for more info read section:
Commit Control for Single BAPI Calls
from
http://help.sap.com/saphelp_nw04/helpdata/en/c8/e80440a832e369e10000000a155106/content.htm
Regards,
Michal Krawczyk -
i am trying to generate purchase order and i create a BAPI also which is active.
But when i call the BAPI from SYbase Mobile Object RFC then after calling it gives an Error "Conflict when calling a Function Module (Field Length)".Hi,
Yeah i tried my Z_BAPI in R3 and then giving some ERROR.
This is my CODE-
FUNCTION ZBAPIPOTV2.
*"*"Local Interface:
*" IMPORTING
*" VALUE(POHD) TYPE ZPOHD OPTIONAL
*" VALUE(POITEM) TYPE ZPOITEM OPTIONAL
*" TABLES
*" RETURN STRUCTURE BAPIRET1 OPTIONAL
data: ls_pohd type bapimepoheader,
ls_pohdx TYPE bapimepoheaderx,
lt_poit TYPE TABLE OF bapimepoitem,
lt_poitx TYPE TABLE OF bapimepoitemx,
ls_poit TYPE bapimepoitem,
ls_poitx TYPE bapimepoitemx.
MOVE-CORRESPONDING pohd to ls_pohd.
MOVE-CORRESPONDING poitem to ls_poit.
ls_pohdx-comp_code = 'x'.
ls_pohdx-doc_type = 'x'.
ls_pohdx-vendor = 'x'.
ls_pohdx-purch_org = 'x'.
ls_pohdx-pur_group = 'x'.
ls_poit-po_item = '00010'.
APPEND ls_poit to lt_poit.
ls_poitx-po_item = '00010'.
ls_poitx-po_itemx = 'x'.
ls_poitx-material = 'x'.
ls_poitx-plant = 'x'.
ls_poitx-quantity = 'x'.
APPEND ls_poitx to lt_poitx.
CALL FUNCTION 'BAPI_PO_CREATE1'
EXPORTING
POHEADER = ls_pohd
POHEADERX = ls_pohdx
* POADDRVENDOR =
* TESTRUN =
* MEMORY_UNCOMPLETE =
* MEMORY_COMPLETE =
* POEXPIMPHEADER =
* POEXPIMPHEADERX =
* VERSIONS =
* NO_MESSAGING =
* NO_MESSAGE_REQ =
* NO_AUTHORITY =
* NO_PRICE_FROM_PO =
* PARK_COMPLETE =
* PARK_UNCOMPLETE =
* IMPORTING
* EXPPURCHASEORDER =
* EXPHEADER =
* EXPPOEXPIMPHEADER =
TABLES
RETURN = return
POITEM = lt_poit
POITEMX = lt_poitx
* POADDRDELIVERY =
* POSCHEDULE =
* POSCHEDULEX =
* POACCOUNT =
* POACCOUNTPROFITSEGMENT =
* POACCOUNTX =
* POCONDHEADER =
* POCONDHEADERX =
* POCOND =
* POCONDX =
* POLIMITS =
* POCONTRACTLIMITS =
* POSERVICES =
* POSRVACCESSVALUES =
* POSERVICESTEXT =
* EXTENSIONIN =
* EXTENSIONOUT =
* POEXPIMPITEM =
* POEXPIMPITEMX =
* POTEXTHEADER =
* POTEXTITEM =
* ALLVERSIONS =
* POPARTNER =
* POCOMPONENTS =
* POCOMPONENTSX =
* POSHIPPING =
* POSHIPPINGX =
* POSHIPPINGEXP =
* SERIALNUMBER =
* SERIALNUMBERX =
* INVPLANHEADER =
* INVPLANHEADERX =
* INVPLANITEM =
* INVPLANITEMX =
ENDFUNCTION.
i am trying to generate purchase order and i create a BAPI also which is active. But when i call the BAPI from SYbase Mobile Object RFC then after calling it gives an Error "Conflict when calling a Function Module (Field Length)". -
IDoc created with status 03 checked via we02, but couldnt find in XI
Hi all:
Could you please do me a favor? implement a idoc to idoc issue. it has been created successfully .
as It is found that the idoc created with status of 03 -
data dispatched to port ok (rather than 12 dispatch ok). however, I couldn't find it via SXMB_MONI on XI, there must be something wrong . coudl you please give me a hint ?
Thank you very much!!!hi,
you need to check transaction SM58 (remove the user from it) and F8
it might be the reason that you didn't create a port in IDX1 on XI/PI
but you will see that in SM58
Regards,
Michal Krawczyk -
Document and PS Project - create a link via BAPI?
Hi everybody,
follow problem: I have a document and a project. How can I create a link between both via BAPI?
Means: create a real exsitens document in a project with ...
FB's. What is to do?
Thanks for help.
Regards ThomasHi,
one sol. might be ta <b>OAOH</b> with BUS-object 2001
another <b>OAOR</b>. pls search the corresponding fm's in that transactions
Andreas -
Create PS project via BAPI - using project templates (CJ01)
hi anybody,
if is pos. to create a new project with BAPI* (if yes, which one? and how?) and use a project template (not an existing project).
thanks for help.
regards thomasThanks for welcome.
This BAPI create a new PROJ_DEF, thats clear. But i want to create a new project (with WBS and networks etc.) via BAPI and this with using a existing project template (please look in CJ01), not an existingproject (CJ20N).
You know what I want?
Thomas -
Create BOM alternative via BAPI
How can we create a BOM alternative via BAPI?
I now use CSAP_MAT_BOM_MAINTAIN but then I get the following error:
BOM already exists for 1234 W041 9
I do not want to use batch input.
Kind regards,
LieselotHi,
U can use the following BAPI'S
BAPI_MATERIAL_BOM_GROUP_CREAT
BAPI_MAT_BOM_EXISTENCE_CHECK
i hope they solve your purpose!!
thanks -
Archiving incoming invoice via BAPI
I have a scenario were we receive incoming invoice as a formatted text-file with a corresponding pdf image of the invoice. The concept is to first create an archived document reference of the PDF (via a BAPI call) and then send the archive-doc-id with the INVOIC01 Idoc and link these so that the PDF appears as an attachment in the MM invoice in transaction MIR4. The middleware used is MS BizTalk.
The problem is that the BAPI seems to require a dialog user to post the PDF, and returns the message "RFC partner does not allow to start any program" (CMS057).
Does anyone have experience with this?
The BAPI coding:
function z_bapi_archivobject_createfile .
*"*"Local Interface:
*" IMPORTING
*" VALUE(I_ARCHIV_ID) TYPE BAPITOAV0-ARCHIV_ID
*" VALUE(I_DOCUMENT_TYPE) TYPE BAPIARCPAR-DOC_TYPE
*" VALUE(I_FILEPATH) TYPE SAPB-SAPPFAD
*" EXPORTING
*" VALUE(E_ARCHIV_DOC_ID) TYPE TOAV0-ARC_DOC_ID
*" VALUE(E_BAPIRETURN) TYPE BAPIRET2
call function 'ARCHIVOBJECT_CREATE_FILE'
exporting
archiv_id = i_archiv_id
document_type = i_document_type
path = i_filepath
importing
archiv_doc_id = e_archiv_doc_id
exceptions
error_archiv = 1
error_communicationtable = 2
error_upload = 3
error_kernel = 4
others = 99.
if sy-subrc <> 0.
call function 'BALW_BAPIRETURN_GET2'
exporting
type = sy-msgty
cl = sy-msgid
number = sy-msgno
par1 = sy-msgv1
par2 = sy-msgv2
par3 = sy-msgv3
par4 = sy-msgv4
importing
return = e_bapireturn.
endif.
endfunction.Hi,
You can check whether the invoice has been processed via FM. IDOC_INPUT_BBP_IV in R3 system.
If the invoice has been processed via FM IDOC_INPUT_BBP_IV, then you can check which user-exits can be used for duplicate invoice check within FG BBPI.
In standard BAPI processes system can't support the functionality for
duplicate invoice check. Thanking you
Maybe you are looking for
-
Dear Experts, We are using Net-Weaver 4.0 , BW 3.5 and Office-2007. But recently we have installed these over WINDOWS 7. Previously it was working fine with WINDOWS - XP. And now after installation , when I put RRMX transaction. I am getting erro
-
Hi, I use the File content conversion to convert a flat file into xml. File looks like this: 0TopData 1HeaderData 2ItemData 2ItemData 1HeaderData 2ItemData 9End This is convertet into an XML: <top></top> <header></header> <item></item> <item></item>
-
Why can't i use installed fonts in microsoft office?
i downloaded and installed new fonts to font book and can use them in mac-based applications, but they do not show up in the font list in microsoft office. how can i get them to load in office? thanks!
-
Improve Efficiency of SQL Query (reducing Hash Match cost)
I have the following SQL query that only takes 6 seconds to run, but I am trying to get it down to around 3 seconds if possible. I've noticed that there are 3 places in the Execution Plan that have pretty high costs. 1: Hash Match (partial aggregate)
-
Error 22: Window does not have a constructor.
Hi I am getting the following error message when I try to run scripts in PSE11, including the PSE scripts like PhotoMerge. I have tried reseting my preferences, rebooting my mac, rebuilding the db3 file, and reinstalling the action. None have worked.