Post Goods Receipt
Hi,
To do Post goods receipt against Inbounnd Delivery..i am using Bapi....BAPI_GOODSMVT_CREATE...
The BAPI gives an error for any movement type given...
I have used Movement type 101 that comes directly from the delivery table LIPS
WHAT shud be done...
Vinotha M.
Message was edited by: Vinotha M
Dear all
Bapi BAPI_GOODSMVT_CREATE could be used to post goods receipt against inbound delivery but in consequence no Delivery document flow is updated. This is official SAP explaination.
But there is solution to accomplish it. After posting goods movements you should update Inbound Delivery using fm SD_DELIVERY_UPDATE.
Check following coding:
form process_0112.
clear post_status.
post_status-delivery = wa_likp-vbeln.
* posting
perform post_goodsreceipt changing post_status.
perform post_delivery_hist changing post_status.
perform post_transferorder changing post_status.
* reversal posting if necessary
perform reverse_goodsreceipt changing post_status.
perform reverse_delivery_hist changing post_status.
* display message in case of error
perform issue_message changing post_status.
* leave transaction
leave to transaction sy-tcode.
endform. " process_0112
form post_goodsreceipt changing post_status structure post_status.
* DATA DECLARATION
* material document header
data: begin of it_head.
include structure bapi2017_gm_head_01.
data: end of it_head.
* T158G special code
data: begin of it_code.
include structure bapi2017_gm_code.
data: end of it_code.
* material document returned data
data: begin of it_rthead.
include structure bapi2017_gm_head_ret.
data: end of it_rthead.
* material document items
data: begin of it_pos occurs 100.
include structure bapi2017_gm_item_create.
data: end of it_pos.
* error table
data: begin of it_errmsg occurs 10.
include structure bapiret2.
data: end of it_errmsg.
* return data
data: post_mat_doc type bapi2017_gm_head_ret-mat_doc,
post_doc_year type bapi2017_gm_head_ret-doc_year.
* FILL DATA
* material document header
it_head-pstng_date = sy-datum.
it_head-doc_date = sy-datum.
it_head-header_txt = 'RF'.
it_head-pr_uname = sy-uname.
* T158G code
it_code-gm_code = '01'.
* material document items
loop at it_lips into wa_lips where posnr <> space.
it_pos-mvt_ind = 'B'.
it_pos-deliv_numb_to_search = wa_lips-vbeln.
it_pos-deliv_item_to_search = wa_lips-posnr.
it_pos-po_number = wa_lips-vgbel.
it_pos-po_item = wa_lips-vgpos.
it_pos-move_type = '985'.
it_pos-entry_qnt = wa_lips-rv_lfimg.
append it_pos.
endloop.
* CALL BAPI
refresh: it_errmsg.
call function 'BAPI_GOODSMVT_CREATE'
exporting
goodsmvt_header = it_head
goodsmvt_code = it_code
importing
materialdocument = post_mat_doc
matdocumentyear = post_doc_year
tables
goodsmvt_item = it_pos
return = it_errmsg.
* check result
if post_mat_doc is initial.
post_status-post_mat_doc = space.
post_status-post_doc_year = space.
rollback work.
else.
post_status-post_mat_doc = post_mat_doc.
post_status-post_doc_year = post_doc_year.
commit work and wait.
endif.
endform. " post_goodsreceipt
form post_delivery_hist changing post_status structure post_status.
* DATA DECLARATION
data: it_vbfa like vbfa occurs 0,
wa_vbfa like vbfa.
* CHECK IF UPDATE DELIVERY IS ESSENTIAL
check not post_status-post_mat_doc is initial
and not post_status-post_doc_year is initial.
* POPULATE TABLE
loop at it_lips into wa_lips where posnr <> space.
clear wa_vbfa.
wa_vbfa-vbelv = wa_lips-vbeln.
wa_vbfa-posnv = wa_lips-posnr.
wa_vbfa-vbeln = post_status-post_mat_doc.
wa_vbfa-vbtyp_n = 'R'.
wa_vbfa-vbtyp_v = '7'.
wa_vbfa-plmin = '+'.
select single zeile waers menge dmbtr meins matnr bwart
from mseg
into (wa_vbfa-posnn, wa_vbfa-waers,
wa_vbfa-rfmng, wa_vbfa-rfwrt,
wa_vbfa-meins, wa_vbfa-matnr,
wa_vbfa-bwart)
where mblnr = post_status-post_mat_doc
and mjahr = post_status-post_doc_year
and ebeln = wa_lips-vgbel
and ebelp = wa_lips-vgpos.
append wa_vbfa to it_vbfa.
endloop.
* UPDATE DELIVERY
data: begin of yvbfa occurs 0.
include structure vbfavb.
data: end of yvbfa.
data: begin of xvbfa occurs 0.
include structure vbfavb.
data: end of xvbfa.
data: begin of xvttk occurs 0.
include structure vttkvb.
data: end of xvttk.
sort it_vbfa by mandt vbelv posnv vbeln posnn vbtyp_n.
loop at it_vbfa into xvbfa.
xvbfa-rfmng_flt = xvbfa-rfmng.
xvbfa-updkz = 'I'.
append xvbfa.
at end of vbelv.
call function 'SD_DELIVERY_UPDATE'
exporting
i_vbtyp = '7'
nicht_sperren = 'Y'
no_imseg_refresh = 'X'
tables
zxvbfa = xvbfa
zyvbfa = yvbfa
zxvttk = xvttk
exceptions
others = 1.
if sy-subrc <> 0.
exit.
endif.
refresh xvbfa.
endat.
endloop.
* check result
if sy-subrc <> 0.
post_status-post_deli_hist = 'R'.
rollback work.
else.
post_status-post_deli_hist = 'C'.
commit work and wait.
endif.
endform. " post_delivery_hist
Similar Messages
-
How can I disable POST GOODS RECEIPT button in transactions VL31N/VL32N via Authorization or Role Level, There is a requirement from my client and i propose two methode
1- Creation of Ztcode ZVL32N and do changes ABAP program level
2- Disablement via Authorization/Role level - but how can i find the auth object/ Authorization corresponds to POST GOODS RECEIPT button in VL32NI think you can make use of SHD0 - Transaction variant to achieve this. You can make it as grayed out while recording steps in SHD0.
-
Error while posting goods receipt
Hi All,
I am getting error message while posting goods receipt.
The error says posting only possible 2007/06.....
Thanks in advance
kumarGo to MMPV give your company code and the period and the fiscal year and execute.
Regards'
Navin -
Error in post goods receipt of delivery for a cross company return STO
Hi
I created a cross company return STO in ME21N (with returnd indicator). Vendor V001 (DC) and Site F001.
I created a delivery in VL10B. Delivery Type NCR.
I did a Goods Receipt for STO. Movement Type 161. Internally stock in issued from site F001.
I am trying to do a Post Goods Receipt of the Delivery in VL02N and I am getting this error.
Delivery quantity is greater than supplying site stock quantity
Message no. VL900
Supplying site is F001 which has enough stock.
DC has no stock and I amtrying to return stock to DC from store.
How to eradicate this issue?
Thanks and RegardsHi
http://wiki.sdn.sap.com/wiki/display/B1/SAPBusinessOne...ToGo-3.TheBasicsofFinancial+Accounting
http://help.sap.com/saphelp_sbo88/helpdata/en/45/06b9997d720487e10000000a155369/content.htm
kiran -
Post goods receipt of HU items (Handling unit) inbound deliveries
Hi all,
could u plz tell me how to post goods receipt of HU
items. i am using BAPI Goods_movment_create
( movement indicator 'B' and '01') but it
is giving error. i am not passing purchase number
and item , insted i am passing inbound delivery
number and item. plz help me out.
thanks and regards
manishPLease read the FM documentation.
It is given very clearly.
Regards,
ravi -
Post Goods Receipt Accounting Not Generating
Hello Experts,
I brief the processs....
Our client has trading business. They have a material that is like a configurable material. Based on their customer's requirement the configuration will be intimated to the vendor then vendor tells the cost so that they inform the price to the customer. Based on the configuration the cost always varies from thousands to millions also.
We have considered the material as standard material only (not configurable) and created a separate item category group to identify this material. Because the configuration of the material is happening outside of SAP, so we have created a generic material code. But to capture the MAP independently we are considering the material as batch valuated material (automatic batch). The Individual Purchase Order (third party sales) process is configured to receive the material into our plant.
Once the sales order is created the PR is getting generated in the back ground. With reference to the PR we are generating the PO and receiving the stock with MIGO. The stock is updating in the plant as sales order stock. We are able to create the delivey and issue the goods. The accounting document at goods issue is happening based on the valuation of the material (the cost at which we did the MIGO). There is no problem in invoice creation. Till this process everything is fine.
While doing the Returns Sales process we are facing the issue. With reference to the sales invoice we are generating the returns sales order then returns delivery and in the returns delivery the batch and valuation type are automatically coming. But the issue is while doing the Post Goods Receipt the Accounting Document is not getting generated. The value with which the accounting happened at Goods Issue (sales process) with the same value the accounting should happen in reverese postings at Goods Receipt. We do not have quality check, so we are using 653 movement type in the case of returns to directly take the stock into unrestricted use. We also checked the MAP at the time of Post Goods Receipt by giving the batch number but it is showing Zero in material master. No single PGR of this material is generating the accounting.
Please guide me where to correct the settings.
Thanks,
Sreehari.Hello BS Reddy,
Thanks for your reply.
I have maintained the Requirements Type as KEB (Req.Class also KEB) and it has the account assignment group-M and Special Stock indicator-E.
I have run the returns cycle again but still accounting is not gettting generated at PGR. Below is the screenshot of Req.Class-KEB
Below is the screen shot of T.Code MBBS (Valuated Sales Order Stock). I think the value should be upated here.
Please let me know know where to correct the settings.
Thanks,
Sreehari. -
Error while doing post good receipt
Hi Frnd,
I am doing Returns delivery VL02n while doing Post goods receipt i am getting an error saying that
*Document is incomplete: You cannot post goods movement*
The batches are not defined for delivery item 900001
What is this error ?
Regards
RakeshHi Rakesh,
Go to IMG... logistic general ... batch management ... batch determination and batch check ... batch search procedure and check the activationu2026 Activate Automatic Batch Determination in SD
Activate Automatic Batch Determination for Delivery Item Categories
I think you have not checked the Auto batch determination for your delivery item categories.
Please check and then try.
Hope it helps,
Regards,
MT -
Automatic Post Goods Receipt on TO confirmation
Hi
Hopefully someone can help with my issue.
Issue: Unable to automatically do a PGR for an Inbound Delivery (IBD) which has an Warehouse managed material and a IM managed material.
Scenario: We use warehouse management and Handling Unit Management. My scenario involves a inbound delivery with 2 lines. The first is for a warehouse managed material. The second is for an IM managed material (It is the packaging material). Upon confirmation of the warehouse transfer order I have the config set so it automatically PGRu2019s the IBD for the warehouse managed material
(SPRO/Logistics Execution/Warehouse Management/Interfaces/Shipping/Define Shipping Control/Define Shipping Control at the Movement Type Level/ at movement type 101 it is set to value 4 ie Do not take WM qty as delivery qty, but post GR/GI)
That works fine for the WM material however the IM line for packaging does not PGR & we have to manually go back to the IBD and do the post goods receipt. The IM line does have a different Movement type (501 as opposed to a 101). It also does not require putaway.
Does anyone know of a trigger I can use to post the entire document? Batch jobs and manually posting the document is not preferred.
Much appreciated,
Adam.FYI - This is not possible as standard.
-
Material Document (Post goods receipt) for each Tranfer order in Inbound De
Hello All,
We have following the below process for goods receipt.
1. Create Purchase order.
2. Create Inbound Delivery.
3.Create Transfer order for each line item in Inbound Delivery
4. Confirm tranfers orders.
5. Post goods receipt will automatically takes place after last Transfer order confirmation for that delivery.
So, in the above scenario the Inventory is not available in the IM till last transfer order is confirmed.
So, is it possible to create a Material Document at each transfer order confirmation and post IM inventory , instead of waiting till last transfer order is confirmed.
please advice.
Thank you
T Reddy .Hello Aktar,
Yes With standard SAP we can post goods receipt either before using MIGO and after using VL32N.
In our scenario we are using Inbound Delivery.
So , with using Inbound delivery we are posting goods receipt after last TO confirmation.
But In our client they may take 2 days to puyawat all the items of an Inbound Delivery.So they do not want to wait till 2 days for the IM posting.
ie in SAP WM as soon as Inbound delivery is created it creates negative stock in 902 and once all the transfer order are confirmed and then post goods receipt takes place and 902 is cleared.
So, we are slitting the TO at delivery line item level and creating separate TO for each line item in a delivery.
So, I am wondering whether is there a way so as soon as first TO is confirmed WM stock updates and IM stock also should also update with same amount with a material docuement.
ie TO by TO IM posting should take place and at Last TO post goods receipt should happen at delivery level.
Please advice.
Thank you
T Reddy. -
Post goods receipt against a Inbound Delivery(VL32N) FM or BAPI Method
Hi Expert,
I am looking for a Function Module or BAPI Method to Confirm the Inbound Delivery i.e. that can post Goods Movement Against a Delivery Document.
My scenario is Create PO-> create Inbound delivery-> post Goods Receipt.
Regards,
Kapil.
Edited by: Kapil Kumar Gupta on May 5, 2011 2:46 PMIn OSS note 520813 it is said:
16. Question:
Which goods movements should I not post using the BAPI_GOODSMVT_CREATE BAPI?
Answer:
You should not post the goods receipt for the inbound delivery using BAPI_GOODSMVT_CREATE BAPI because the document base and the status of the inbound delivery are not updated. See Note 199703.
If you check OSS note 199703 you can see that it is valid from release 45 to release 500.
Assigned to this note you can find another: 1050944 (it's worth of reading!!!).
I feel there are contradictions here - it might possible that the first note (520813) is not updated properly. (As far as I remember in my case this BAPI was working properly too).
In my opinion you should send a message to OSS and ask them whether the statement in note 520813 is still valid or not - you should also tell them that the referred note (199703) is not applicable to ECC6.0.
(there's a setting in ECC6.0 which enables that document flow is updated if GR is posted via MIGO with reference to IBD - V_TVSHP-SPE_INB_VL_MM)
I would like to ask you if you have a reply from them, please update this thread - it may be helpful for us.
Edited by: Csaba Szommer on May 9, 2011 2:34 PM
One more remark: (based on OSS note 1050944) it seems that you cannot use it only in case of packing (IBD with HU).
Edited by: Csaba Szommer on May 9, 2011 3:05 PM -
Post Goods Receipt before putaway
Hi Experts,
We're planning to implement SAP WM of SAP ECC 6.0. We're using inbound delivery for our goods receiving into the warehouse. The process steps that I found out from the SAP document is as follows:
1. Create inbound delivery
2. Pack if necessary
3. Putaway
4. Confirm Putaway
5. Post Goods Receipt
We've business requirement to do the Post Goods Receipt before putaway.
I do not find the configuration for this requirement.
Could some-one help me on this? Any help on this would be greatly appreciated.
Please send me the documents how to configure this.
Thank you.
with regards,
Muthu Ganapathy.Hi Philip,
Thank you for your response. I have found-out the same option as you mentioned from the 4.6c release notes. I tried and it's still not working. Don't know the cause for not working. Any thought on this? Please let me know.
Thank you again,
with regards,
Muthu Ganapathy. -
Hitting error when post goods receipt in MIGO
Dear SAP Gurus and Expert
Kindly advice what config or setting need to be done when the post good receipt in MIGO hit the error of "Acct. 81110140 for trans. /ev. key ANL, is not a control account".
Thank you
Regards
Leonard TanHi
http://wiki.sdn.sap.com/wiki/display/B1/SAPBusinessOne...ToGo-3.TheBasicsofFinancial+Accounting
http://help.sap.com/saphelp_sbo88/helpdata/en/45/06b9997d720487e10000000a155369/content.htm
kiran -
Posting goods receipt in migo getting the error
hi
when posting goods receipt in tc migo getting the error ' check table 169p: entry "cocode" does not exist". What does it mean? what is th e solution for this?Hi,
Use Se12-Enter table name T169Pdisplay---select utilities from menu bar--table entries-create entries--enter your company code and save.
try the entry again.
Regards
Aravind
Assign points if useful -
Cannot post Goods receipt in MIGO Error message"Field Business Area requird
Hai
I am posting Goods Receipt ( MIGO) with Reference to Purchase Order its having 47 Line item material. When i will doing Goods Receipt with rreference to po number its triggered error message in :Message No F5808 Field business Area is a Required field for G/L account 1180 300000 . for only particular line item 47 material shown error..
i checked all the settings in MM Automatic determination And G/L element, field variants, posting keys.. but everything configured profer settings..why particulat materail it shown error? how to resolve this error?Hi Thiru,
A somewhat late aswer, but it might be helpfull for other users with the same problem. You can solve this problem by assigning the division/valuation area to the business area. Follow the path below to execute this:
SPRO - enterprise controlling - Consolidation - Integration: preparation for consolidation - Preparation in the sender system - Further settings for Business Area Consolidation - Materials Management - Assign Division/Valuation Area to Business area.
Under Enterprise structure - Assignment - Logistics General, you will find a similar function. First execute option 1 or 2 here and then execute option 3. This makes it work as well, exept that it will not be recorded in a proper transport. The first option I gave for assigning is properly transportable.
Greetings,
Sjaak van den Berg
Magnus Technology Consultants
Edited by: S. van den Berg on Aug 14, 2009 1:09 PM
Edited by: S. van den Berg on Aug 14, 2009 1:10 PM -
Hi......
There is an error " Update Control of Movement Type is Incorrect (entry 161XX_L_V) when i create Post Goods Receipt.
Need help
ThanksTry maintaining spcial indicators E or Q. It might help.
Regards,
Rohit -
Post Goods Receipt(PGI) with custom condition types on purchase order(PO)
Hi all,
I am trying to post goods receipt with custom conditions on the PO. One of the custom conditions is freight (delivery cost). The value on this condition will post to a different G/L account (freight provision account, rather than GR/IR).
My problem is, when posting this GR, the cost center assigned in the PO under 'account assignment' is not used for posting the custom condition, which I really need it to happen.
Simply put, I want all postings from this PO inherit values in 'account assignment'.
I have been looking into configurations in automatic posting and condition types, but I still have no clue where I can make it happen. Do I have to use BADI?
Thanks.Delivey cost condition will be posted to accrual accounts not to the cost center.
Maybe you are looking for
-
How to print a page range in Word 2011
Hello I would like to print only a certain rage of pages of a large Word 2011 document. However, when I enter "from page" = 5 and "to page" = 7, my MacBook and my MacMini oth print always the whole document. I tried it on three diffrent printer (Can
-
Hi, I need to transfer photos from iphone to mac. My mac can 'see' my iphone with iphoto open, but the box says there are no photos to download. Could anyone help me please? This has never been a problem before (it was fine about 2 weeks ago). I've t
-
Hi Friends, can Anyone Tell me how can i post a Entry of Payment to multiples vendor with a singhle cheques or Letter. For Example in our organisation we have paid the Exp Rebustment Directly to All employes bank A/c, but when i am going to post the
-
WLI2.1 Timed workflow is executing in a loop
In Wbelogic Integrator 2.1 I have created a scheduled workflow. If you go to the start Task properties and click on the timed radio button and put a start date for the execution of the workflow. The worklfow starts at that particular time but never e
-
Hi there, I would like to introduce a cross fade between two sequences. I made sure I had enough cropping -- several tens of frames-- of the two sequences to allow cross fade. What happens is that I still see briefly deleted frames on the final editi