on ‎2008 Jan 16 10:42 AM
Hi All,
1) are there alternative approaches that event can be triggered rather than calling FM SWE_EVENT*?
2) There is an object type bus2032 which has an event called CREATED.
Will this event be triggered when Sales document is created successfully in SAP through FM BAPI_SALESORDER_CREATEFROMDAT2 calling from the 3rd party system?
Note: This FM internally calls SD_SALESDOCUMENT_CREATE.
3) What is the main difference in terms of triggering an event when any sales document is created through
- transaction VA01
- BAPI_SALESORDER_CREATEFROMDAT2
Thanks in advance,
Sukhbold
Request clarification before answering.
Check this link this will be of help
http://help.sap.com/saphelp_nw70/helpdata/en/c5/e4b458453d11d189430000e829fbbd/frameset.htm
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can trigger CREATE event of sales order by using change document .
procedure.
1. execute t.code SWEC
2.find out the change object for sales document
2.give the change object for sales document
3. select the 'create' radio button
4. give event 'CREATE'.
now when u create slaes order 'CREATE' will trigger.
THanks,
prabhu
closed
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi All,
Thank you for the responses.
I think I found the solution for 3rd query and it might help for others.
I was talking about 2 things that are
1. BAPI_SALESORDER_CREATEFROMDAT2
2. VA02 (nothing but program SAPMV45A)
there is a subroutine (BELEG_SICHERN) in the program
which is actually performed indirectly by FM BAPI_SALESORDER_CREATEFROMDAT2.
Hierarchy
SAPMV45A (program)
- MV45AF0F (include)
- - MV45AF0F_FCODE_SICH (include)
- - - MV45AF0B_BELEG_SICHERN (include having the subroutine)
Calling FM
BAPI_SALESORDER_CREATEFROMDAT2
- SD_SALESDOCUMENT_CREATE (FM)
- - SD_SALES_DOCU_MAINTAIN (FM)
- - - SD_SALES_DOCUMENT_SAVE (FM)
this FM module performs the subroutine BELEG_SICHERN of program SAPMV45A.
Now, Most important thing is subroutine BELEG_SICHERN performs subroutine USEREXIT_SAVE_DOCUMENT, which is nothing but userexit where we can call the swe_event_create.
I hope this is the way.
Please post if you have any comment on it.
Thanks,
Sukhbold
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
1) You have other techniques such as change documents etc. Would suggest to refer SAP help .
However in case of sales order Creation, I do not think oyu need to do anything else. Standard transaction will raise Created event for you. You have to just use it in your workflow.
2) Created event of sales order will be called once the sales order is created.
3) BAPI_SALESORDER_CREATEFROMDAT2 will implement the same functionality as VA01 , so you should not worry on this front.
Regds,
Akshay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
1) Yes. Try searching function modules starting with SAP_WAPI*
2) and 3) In principle, the event should be creeated the same way via the bapi than via the transaction. The best way to make sure is to enable the event log and try it...
KR,
Patrick
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 15 | |
| 9 | |
| 6 | |
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.