on 12-07-2005 1:41 PM
Hello,
Scenario:
In WD I have one order inputfield,4 batch inputfields and a create button. On clicking on Create, the Bapi "Bapi_Goodsmvt_Create" is called. The Bapi works absolutely fine with 1 batch (that is other 3 batch being empty). I receive a materialdocument number.
If there is more then one batch entered it gives a message "Order XXXX is already being processed". How do I solve this?
Any ideas.....
Best regards,
Dharmi
Hi
Can you give me the import, export and table parameters of the BAPI_GOODS_MVMT_CREATE .
Does the bapi allow creation of multiple batches.
I dont have access to a SAP system.If you can give me the structure and i will tell you how to pass the values.
regards
ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try this.
Hello Ravi,
Sorry for the delayed reply. I appreciate your help very much. Here is the import, export and table parameters of the BAPI_GOODSMVT_CREATE:
<u>Import</u>:
Parameter name:
GOODSMVT_HEADER Like BAPI2017_GM_HEAD_01 -> Reference type
GOODSMVT_CODE Like BAPI2017_GM_CODE -> Reference type
TESTRUN
<u>Export:</u>
GOODSMVT_HEADRET Like BAPI2017_GM_HEAD_RET
MATERIALDOCUMENT Type BAPI2017_GM_HEAD_RET-MAT_DOC
MATDOCUMENTYEAR Type BAPI2017_GM_HEAD_RET-DOC_YEAR
<u>Table:</u>
GOODSMVT_ITEM Like BAPI2017_GM_ITEM_CREATE
GOODSMVT_SERIALNUMBER Like BAPI2017_GM_SERIALNUMBER
RETURN Like BAPIRET2
On Clicking on the reference types you see the fields:
it is difficult to copy and paste here, can you please send me your email id so I can send the screen shots of the same!
"Does the bapi allow creation of multiple batches." No the table has only one batch field.
Let me know if you need any further information.
Many thanks,
Dharmi
Hi Dharmi,
Did u check on to the size fields,u r loading the data via flat file?
Regards,
Nagarajan.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Dharmi,
Is ur Bapi creation is correct.
Did u do all these steps.
PASS VALUE iN TABLES GIVE BAPI RETURN (returns back frm the structure)
assign fun mod to bapi.
evrythig should start with the bapi.
for creating bapi -- > swo1
Inside bapi -- add method -- add func mod name
to implement -- this is on the remote system.
release it
second implement --
generate.
to c the released data goto the transaction code BAPI.
This should work fine.
There might be some mistake in ur flat file.
can u just give me two datas as example in ur flat file.
With size factors also.
Hope this helps u,
Regards,
Nagarajan.
Hello Nagarajan,
"Also c to that if u r able to upload one data then why not the others?" I tried to call the RFC in create button 4 times, and that of course doesn't work in the second call/time resulting in the error I mentioned earlier.
If flat file system is the only way to achieve this, would it work in the online scenario as well, w/o the user needing to upload that flat file (I mean an input field with the browse button next to it). If yes, please explain me step by step:
1. How do I create wrapper around the standard BAPI? (I am not an ABAP person), sorry the above explaination of the BAPI was little unclear for me
2. Other questions in the next post, once the above is clear to me.
Many thanks,
Dharmi
Hi Dharmi,
First what is a BAPI?
BAPIs (Business Application Programming Interfaces) are the standard SAP interfaces. They play an important role in the technical integration and in the exchange of business data between SAP components, and between SAP and non-SAP components. BAPIs enable you to integrate these components and are therefore an important part of developing integration scenarios where multiple components are connected to each other, either on a local network or on the Internet.
Hope this helps u,
Regards,
Nagarajan.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.