BAPI_GOODSMVT_CREATE to create a material document for consumable goods
Hi All,
I am using a BAPi (BAPI_GOODSMVT_CREATE) to create a material document using a PO. Please note that the PO contain no material number. It contains short text. The account assignment is being copied in to the MIGO from PO (when i am doing the process manually without BAPI). But when i am using the BAPI at that time i am getting an error as:
E M7 036 No goods receipt possible for purchase order 45XXXXXXXXXX 00010 .
Logically this should not happen as when i do it manually i am able to post MIGO.
Under goods movement header i am giving :
posting date
doc date
text
goods movement code :
01
GOODSMVT_ITEM
plant
mov type
po number
vendor
line item
short text
cost cenrtre
order no(int ord no)
mov indicator: B
GL account
base unit of measure
Where i am going wrong?
Hi Jurgen
In response to my post where i wrote my observations :
As you have suggested i have removed the account assignment objects and now i am not getting the error as mentioned in my post but at the same time i notice in export parameters in the bapi the following things which was not present earlier.
GOODSMVT_HEADRET 50000xxxxx2014
MATERIALDOCUMENT 50000xxxxx
MATDOCUMENTYEAR 2014
Now another thing is i am not getting any entry in return table.... which i should get. Please note that my test run contains no values(X).
i think i am near to the solution. Could you suggest any more crucial points i might be missing?"
for this i found out that there is a way to solve this issue. My concern was why the material document was not updating . Well this is how SAP behaves.
To update it we have to run simultaneously another fm " BAPI_TRANSACTION_COMMIT". This will update it in the mseg table which in turn will reflect it PO history. So my requirement is answered and fulfilled.
Thank you so much for the replies and cooperation.
Thank you all.
Similar Messages
-
MI31: Cannot Create Physical Inventory Document for a Certain Material
Dear SAP MM Friends,
Greetings! I am a budding MM functional analyst in our company. I received a call earlier regarding with transaction code MI31 (Selected Data for Physical Inventory Documents w/o Special Stock). The user cannot generate a physical inventory document for a certain material.
The thing is, we no longer have any stock for this material (MMBE). I tried generating physical document again by ticking "Only Materials with Zero Stock" but to no avail.
May I ask what might be the reasons behind? Your prompt response is highly appreciated.
Thank you very much.
Best Regards,
AlbertHi,
Please check also the existing physical inventory document for material, probably you still have active physical document from previous period.
1. Go to MI22 --> select your plant, storage location or you can also specify your material number --> execute.
2. Check your Physical Document list, at field Status doc. --> if the status is Doc. active, but it is not in your current period, then it could be the problem.
3. Delete the physical inventory doc that you found in step 2 (use tcode MI02 --> physical doc, year --> choose delete button)
4. Try to create new physical document for the material.
hope this help.
rob -
LSMW me51n, how to create one PR document for all the records in the file
HI all,
I need to create LSMW for t-code me51n -Create Purchase Requisition. I`m using Bapi BUS2105, method CREATEFROMDATA, idoc message type PREQCR, basic type PREQCR03. The problem is that the LSMW is creating different idoc and different PR document for every record in the source file. My requirement is to create one PR document for one source file (Every source file is different Purchase Requisition) . I`m trying to do this with writing some code(global functions ) in the 'Mapping and conversion rules' events - BEGINOF_TRANSACTION_, ENDOF_TRANSACTION__..., but i`m not very sure what exactly i`m doing .
Please help me resolve this problem, any help will be appreciated .
Best regards, Emil Milchev.Thank you for you answer.
But I have found faster way of doing it - two source structures, one HEADER and ONE ITEM.
HEADER: one empty text field and identificator for it.
ITEM: everything else.
Then everything was just fine, i`ve mapped the different IDOC segments by PREQ_ITEM fields (equal values in the source file : 10-10-10..., 20-20-20,.... etc.) and put all required fields for my LSMW
SOURCE FIELDS:
Z_ME51N_V2 - MASS_UPLOAD - CREATE create
Source Fields
UPFILE upload file
IDENT C(010) ident
Identifing Field Content: header
TEXT C(001)
UPFILE2 123
IDENT C(010) ident
Identifing Field Content: item
BSART C(004) Document type
BANFN C(010) Purchase requisition number
BNFPO_FOR_MAP N(005) Item number of purchase req. for MAPPING acc.
BNFPO N(005) Item number of purchase requisition
KNTTP C(001) Account assignment category
PSTYP C(001) Item category in purchasing document
MATNR C(018) Material Number
WERKS C(004) Plant
LGORT C(004) Storage Location
MENGE N(013) Purchase requisition quantity
EKGRP C(003) Purchasing group
KONNR C(010) Number of principal purchase agreement
KTPNR N(005) Item number of principal purchase agreement
LIFNR C(010) Desired Vendor
FLIEF C(010) Fixed Vendor
AFNAM C(012) Name of requisitioner/requester
PREIS AMT4(011) Price in purchase requisition
ABLAD C(025) Unloading Point
WEMPF C(012) Goods Recipient
PS_POSID C(024) Work Breakdown Structure Element (WBS Element)
KOSTL C(011) COST_CTR v bapito ?
NAME1 C(040) Name1 - Name of an address
NAME2 C(040) Name2 - Name of an address 2
STREET C(060) Street
DELIVERY_DATE C(008) Date on which the goods are to be delivered
TEXT C(132) item text
STRUCTURE RELATIONS :
Structure Relations
E1PREQCR Header segment <<<< UPFILE upload file
E1BPEBANC Transfer Structure: Create Requisition Item <<<< UPFILE2 123
E1BPEBKN Transfer Structure: Create/Display Requisition Acct Assgt <<<< UPFILE2 123
E1BPEBANTX BAPI Purchase Requisition: Item Text <<<< UPFILE2 123
E1BPESUHC Communication Structure: Limits <<<< UPFILE2 123
E1BPESUCC Communication Structure: Contract Limits <<<< UPFILE2 123
E1BPESLLC Communication Structure: Create Service Line <<<< UPFILE2 123
E1BPESKLC Create Comm. Structure: Acct Assgt Distr. for Service Line <<<< UPFILE2 123
E1BPESLLTX BAPI Services Long Text <<<< UPFILE upload file
E1BPMERQADDRDELIVERY PO Item: Address Structure BAPIADDR1 for Inbound Delivery <<<< UPFILE2 123
E1BPMERQADDRDELIVERY1 PO Item: Address Structure BAPIADDR1 for Inbound Delivery <<<< UPFILE2 123
E1BPPAREX Ref. Structure for BAPI Parameter EXTENSIONIN/EXTENSIONOUT <<<< UPFILE2 123
MAINTAIN FIELD MAPPING AND... :
the MAPPING between two IDOC`s segments:
In first segment:
E1BPEBANC Transfer Structure: Create Requisition Item
Fields
PREQ_NO Purchase requisition number
Source: UPFILE2-BANFN (Purchase requisition number)
Rule : Transfer (MOVE)
Code: E1BPEBANC-PREQ_NO = UPFILE2-BANFN.
PREQ_ITEM Item number of purchase requisition
Source: UPFILE2-BNFPO (Item number of purchase requisition)
Rule : Transfer (MOVE)
Code: E1BPEBANC-PREQ_ITEM = UPFILE2-BNFPO.
In second segment :
E1BPEBKN Transfer Structure: Create/Display Requisition Acct Assgt
Fields
PREQ_NO Purchase requisition number
PREQ_ITEM Item number of purchase requisition
Source: UPFILE2-BNFPO_FOR_MAP (Item number of purchase req. for MAPPING
Rule : Transfer (MOVE)
Code: E1BPEBKN-PREQ_ITEM = UPFILE2-BNFPO_FOR_MAP.
After that everything was OK . -
Not able to create a material document with movement type 103
I am not able to create a material document with movement type 103,
The system is populating the value as 101 .
How do I create a matdoc with movement type 103?What is the error you receive? Please specify with message number.
On MIGO, you need to change the default value mvmt type value to 103 before you enter the PO number to be able to do 103.
Once this defualt value is set, you can enter the PO and item number in the document number fields and proceed with 103.
But you cannot change the mvmt type for already entered items from 101-103 or vice versa.
I think the 101-103 and 103-101 mvmt type conversion message is standard error message -
Material Document for Scrap consumption not Found
Dear Friends
During order confirmation, molten material / raw material is consumed by 261 MT and dross SH100002 is generated by MT 531 along with the finished product with MT 102. I reversed finished product through 102 MT and Raw material through MT 262. Thus do I need to reverse dross through MT 532, against order?
When I went to MB51, I found the material document for finished Material production with MT 101 and raw material consumption with MT 261. But in MB51when I tried to find out dross generation with MT 531, I did not get any material document for that particular order no.
In the production order though total quantity: 88000 and delivered quantity is only 26000. When user is trying to confirm the production order only for 200 units, system is giving the following error message:
Overdelivery is not permitted (Check entry)
Message no. RU139
Diagnosis
The total yield and scrap confirmed exceeds the overdelivery tolerance defined in the order header.
Procedure
You can either
u2022 reduce the confirmed quantity
u2022 deactivate the tolerance check during confirmations (customizing),
u2022 increase the overdelivery tolerance in the order header and then enter the confirmation again
Please tell me why Material movement of dross/ scrap is not visible and why production order is not getting confirmed
Thanks
ChandraChandra,
When you say te movement is with order confirmation then I assume that it is backflush of the components & byroduct.
If you do not find the material document in MB51 then it is not posted yet.
In that case excute T code COGI & process the same.
Regarding the order confirmation error, kindly check the 'Goods receipt' tab page in the order header.
The delivery completed indicator must be marked. Unmark the same & save.
Now try to process the confirmation.
Anyhthing else please let me know.
Hope this helps you.
SmanS -
Material type for consumable item
Hi,
actualy which material type will be used to create material master for consumable items?Hi,
You can use the HIBE --Operating Supplies Material type to create the Consumable Materials.
For stationary HIBE or create you own material type by copying HIBE or VKHM or ERSA
For creating PO - Acct. Assignment - K -
Material Documents for Unplanned Services?
Dear All
I have created a service entry sheet for services against a PO. In the PO, provision was maintained for unplanned service (maintaining some amount in limits.)
Now, while creating service entry sheet, it has been observed that material document created against planned service only. Although the cost of unplanned service is appearing in services entry sheet but no material document created against unplanned service. The payment section is therefore not allowing payment against unplanned services as no material document appearing in PO history against unplanned service.
Can any one help me out what is the solution.
Regards,
AbdullahHi all,
For dispaly of Material Document we have Transaction Code : MB03,
this with the Document No & Year,
like wise for dispaly of Material Document for a date range i want to know the Tranasction Code.
Thanks -
Creation of material Documents for RMPM adjustments using BAPI
Hi
can any one help me Creation of material Documents for RMPM adjustments using BAPI...
i should be grateful to you...
advance thank you
with regards
venkatYou can check MB_CREATE_GOODS_MOVEMENT which has mkpf as inporting parameter.
-
I was at Apple Store yesterday and they created a pages document for me. When I got home and tried to open it, I get a message that I need a newer version of Pages. I see the image before I push "open". The 'kind' is pages publication. The file does not appear in the 'open recent' list.
Just be careful with Pages 5, it is not strictly an upgrade.
Apple has actually removed over 90 features and some work can be very difficult in the newer version.
It was all done to make it more interchangeable with the inferior iOS version:
http://www.freeforum101.com/iworktipsntrick/viewforum.php?f=22&mforum=iworktipsn trick
Peter -
HT5843 How do I create a locked document for privacy?
How do I create a locked document for privacy?
With the document open, tap the tools icon (wrench) and select Set Password. this assumes you are using the most recent version of the iWorks app or apps in question.
-
How to see the material document for Blocked stock
Hello Experts
I having some blocked stock in plant X , How to see the material document for this stock.
Thanks in Advance
Prashanth.v
Edited by: prashanth.venkategowda on Aug 11, 2010 7:38 PMwhich material documents do you want to see?
Material documents can be found and displayed in MB51 transaction.
in MMBE you can put the cursor onto your stock line and then choose from menu Environment > material documents and SAP will list all relevant material documents.
block stock status is not a selection criteria, material number, plant storage location, batch number are selection criterias.
if you want only documents to block stock, then you need to select by movement type, e.g. 343 and 344 are movements that change status from unrestricted to blocked or vica versa. -
MATERIAL DOCUMENTS FOR POSTING DATE TCODE ?
HI ALL,
CAN SOMEBODY GIVE ME THE MATERIAL
DOCUMENTS FOR POSTING DATE TRANSACTION CODE.
THANKS,
KSRHi all,
For dispaly of Material Document we have Transaction Code : MB03,
this with the Document No & Year,
like wise for dispaly of Material Document for a date range i want to know the Tranasction Code.
Thanks -
How to Create a Billing Document For SalesOrder
Hi Guys,
Any one please Explain me how to create a Billing Document for salesOrder. give me step by step procedure so i can easily understand the terms.Thanks in advance.
Thanks
Kiran.BHi Kiran,
Normally a billing doc is created after a sales order-->delivery.
U can create a sales order w.r.t a Contract or another sales order.
In your case, its possible only for sales Returns.
pass billing doc number to ORDER_HEADER_IN-REF_DOC in BAPI_SALESORDER_CREATEFROMDAT2.
Reward points if helpful
Regards,
Hemant -
Need to create a Change document for tracking Purpose on standard table
Hi Experts,
I am updating a field in standard table so need to create a change document for tracking the changes being done on the field.
I created the change Document with transaction SCDO but I am stuck at point - How to call that in the report program to enable the change document.
Please advice.
Thanks!!Hi
U can assign your transaction to Z-report like this:
PARAMETERS: TAB1 RADIOBUTTON GROUP R1 DEFAULT 'X',
TAB2 RADIOBUTTON GROUP R1,
TAB3 RADIOBUTTON GROUP R1.
DATA: TABNAME TYPE TABNAME.
START-OF-SELECTION.
CASE 'X'.
WHEN TAB1. TABNAME = 'BSID'.
WHEN TAB2. TABNAME = 'BSAD'.
WHEN TAB3. TABNAME = 'BKPF'.
ENDCASE.
CALL FUNCTION 'RS_TABLE_LIST_CREATE'
EXPORTING
TABLE_NAME = TABNAME
* ACTION = 'ANZE'
* WITHOUT_SUBMIT = ' '
* GENERATION_FORCED =
* NEW_SEL =
* NO_STRUCTURE_CHECK = ' '
* DATA_EXIT = ' '
* IMPORTING
* PROGNAME =
* TABLES
* SELTAB =
EXCEPTIONS
TABLE_IS_STRUCTURE = 1
TABLE_NOT_EXISTS = 2
DB_NOT_EXISTS = 3
NO_PERMISSION = 4
NO_CHANGE_ALLOWED = 5
OTHERS = 6
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF. -
Creating an Accounting Document for Invoice
We cannot create an accounting document for Invoice.There is no problem in account determination procedure. I've tried to clear in VFX3, but gives me an error message that says "express document 'update was terminated' received from author.
After analysis the error being reported is:
"M2 012: Error determining posting period (info structure S010).Function module is MCV_STATISTICS_UPD_V1_INVOICE V1 NORMAL
Can you suggest how we can post/Release to Accounts?Hi Narendra
Go to T-code MCVV. In this case since the doc is not created it will not work.
Is there an ST22 dump. if yes put a break point there.
Check SM13 and you can see the here where the update fails. Apply break point there.
Go to MC26 and enter S010 and check if any update rules exisit. in one of the formulas you need to put a break point.then go back to VF01 and then before you hit the save enter /h in the command box to go into debug mode.
Once in debug mode Follow the menu path Setings--->update debug on/off.Debug and see why the update is failing.
Thanks
Maybe you are looking for
-
HP Photosmart c3180 Two-sided Printing
I have been advised by HP support that it is not possible to use the two-sided printing feature on this printer with Mac, although it works perfectly on my PC. Does anyone know of a way to enable this feature on Mac or some workaround?
-
How to populate new values in JTable?
hello swing experts!!! i have a problem plz i need your help. tnx. so here's the scenario. i have a program that retrieves information from the database and display it in the JTable. i have JTextBox to search users by "Name" and when i click JButton
-
I have edited the internet options in control panel to get the homepage and tabs i want to come up when i open firefox but they are not coming up when i open the browser. How do i get them to apply to firefox so i can get the homepage and tabs i want
-
Purchased song cant be made into ringtone?
I know that we have to purchase a song from iTunes to make it into a ringtone so I did, but to only find out that it can't be made into a ringtone. I already have the song on my computer (I ripped it from my cd's) and so I have two copies, a worthles
-
I hope the is a differnence between auto-save (as listed in you document properties) and Auto-Recovery (as set in Prefs). I would like some "protection" but I don't want flash saving over my file unless I tell it to save. I got burn last night while