Wrong Unit Price in a Good Issue Document using DI
Hi,
in my addon I want to create a new Goods Receipt document, using DI.
In the Lines, I set the ItemCode, I set the Quantity, and I set the Price, then I add the document, but when I go to Sap, in the Goods Receipt created, the Unit Price is wrong. I've try to set Quantity and LineTotal, Quantity and Price, Quantity Price and LineTotal but all the combinations is not correct, and the Unit Price is not equals to the price that I have set.
I have try to change the Price List, but nothing is happened.
This is my simple code:
Dim entrataMerce As SAPbobsCOM.Documents = myDB.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInventoryGenEntry)
entrataMerce.CardCode = cardCode
entrataMerce.Series = series
entrataMerce.Lines.ItemCode = itemCode
entrataMerce.Lines.Quantity = 1
entrataMerce.Lines.Price = 100
entrataMerce.Lines.WarehouseCode = whsCode
entrataMerce.Add()
Where is the error?
Thanks
Marco
Instead of Price, try using UnitPrice? This is a confusing area of the DI :/
Similar Messages
-
Error Code "-5002" While adding a Goods Issue Document
Hi,
While adding a goods issue document for only a specific combination of items I get "Internal Error (-5002) occured" message.
The scenario is i am adding 5 rows with following specification
Row1- Serial Managed Item
Row2- Batch Managed Item
Row3- Managed by none
Row4- Batch Managed Item
Row5- Serial Managed ItemHi I had the same Issue,
What my problem solved was setting the baseline number for each serial and batch number on each specific line to the line number of that specific line.
like this:
doc.Lines.SerialNumbers.SetCurrentLine(doc.Lines.SerialNumbers.Count - 1);
doc.Lines.SerialNumbers.InternalSerialNumber = 2;
doc.Lines.SerialNumbers.BaseLineNumber = doc.Lines.SerialNumbers.Count - 1;
Regards -
Profit center substitution in Goods issue document
Hello Gurus
I am determining profit center through the profit center substitution in sales order through 0KEM transaction and activated it in 0KEL as activation 3.
I have taken the fields as sales organization and sales office with transaction code VA01 and VL02N .
After this the substitution happening in sales order and also in delivery but the substitution is not reflecting in the goods issue document neither coming for inventory nor in COGS anyway but it is reflecting in the FI accounting document but not for customer but for sales.
Please help me to with your kind suggestion for resolving this issue.
I need the substituted Profit center also to come in the accounting document of PGI and for customer in FI accounting document.
Thanks in advance
SubuHi Subbu
1. 0KEM works for sales order and related billing.. It does not work for PGI, unless you are in MTO scenario and sales order is CO object
2. At PGI - Inventory a/c will be Cr with PC in Mat Master... COGS (If not a cost element) will also be Dr with the same PC
If you are in MTO, the COGS will be posted to sales order and hence, it will have the same PC as sales order
3. During Billing, revenue a/c is Cr with PC in sales order... Customer line is never shown with PC in the line item....
- If you are on EC-PCA, you need to run 1KEK at month end...
- If you are on New GL + Doc Splitting, PC will be shown in the "General Ledger View" in customer line item... the "Entry View" wont have any PC
BR,Ajay M -
Print Batch No. in Goods Issue Document
Hello,
in SBO Version 2007 it is now possible to print batch no. directly in marketing documents.
Is it also possible to print batch no. directly in the goods issue document???
If I use the same system variable like in the marketing document (system variable 492) I get an error.
Thanks for help.
JacquelineJacqueline,
I believe this option is only available for the sales/purchasing but not the stock transactions and you can't use the same variables for these. For the stock transactions the separate serial/batch transactions report will be printed.
Regards,
Nat -
Override consignment price determination during goods issue process
Hi ALL,
My requirement is that User is asking want to override consignment price determination during
goods issue process. Is there any BADI/User Exit or Enhancement spot which can override the price value and in the
database level during Goods issue.
If yes provide me the enhancement details and where I can implement.
I will very thankful to you all if I get your valuable input.
Regards
SubhasisDear Laxman,
Check these links,
https://wiki.sdn.sap.com/wiki/display/ERPLO/Batch+Determination
Automatic batch determination
Re: how to make the batch determination process automatic
Regards
Mangalraj.S -
Print out issue for Goods issue document
Dear Friends,
I am trying to take a print out for good issue document (Mov. 541)
- Necessary settings have been done in customizing of output details WA01 with print parameters Plant/storage location (also maintained same at config. level)
- MN21 master data maintained but every time I have to define output device by changing the document details in MB02
- When taking print out inMB90 system proposes no document found for processing
Can anybody help in this regards
SGIf the output TYPE is configured, and created in MN21 but the output record is not automatically created for each document, you may be missing config in <B>Output Determination</B>. (In MM02, you can select the output type from a drop-down and process without error)<BR><BR>Please check the following:<BR><BR>SPRO path: <I>Materials Management > Inventory Management and Physical Inventory > Output Determination > Maintain Output Determination Procedures.</I> <BR><BR>Your output type must be assigned to the procedure used by your document. If it is not here, it will not automatically propose the output record.
-
Two step posting of Goods Issue Document ( After Holding )
Hi Gurus,
Is there a way to park a Goods Issue Document (Movement type 261/281) via MIGO?
i.e. Data entry done by one user and park. System generates a docuemnt number.
Second person refer the document and post later.
Regds
NalindaRHi
It is possible. if u go through the user exit.
Thanks & Regards
Ram -
Reversal or cancellation of a Goods Issue document (transaction VL09) ,
Hi Experts,
I am trying to look for a user exit that will be triggered after user confirm the reversal or cancellation of a Goods Issue document (transaction VL09).
I want to put validation while cancelling document if movement type is 101 it should not cancelled.
any solution please reply.
Thanks & Regards,
YogeshCheck this thread ..
User Exit During Goods Issue Cancellation/Reversal
Transaction Code - VL09 Cancel Goods Issue for Delivery Note
Exit Name Description
V02V0001 Sales area determination for stock transport order
V02V0002 User exit for storage location determination
V02V0003 User exit for gate + matl staging area determination (headr)
V02V0004 User Exit for Staging Area Determination (Item)
V50PSTAT Delivery: Item Status Calculation
V50Q0001 Delivery Monitor: User Exits for Filling Display Fields
V50R0001 Collective processing for delivery creation
V50R0002 Collective processing for delivery creation
V50R0004 Calculation of Stock for POs for Shipping Due Date List
V50S0001 User Exits for Delivery Processing
V53C0001 Rough workload calculation in time per item
V53C0002 W&S: RWE enhancement - shipping material type/time slot
V53W0001 User exits for creating picking waves
VMDE0001 Shipping Interface: Error Handling - Inbound IDoc
VMDE0002 Shipping Interface: Message PICKSD (Picking, Outbound)
VMDE0003 Shipping Interface: Message SDPICK (Picking, Inbound)
VMDE0004 Shipping Interface: Message SDPACK (Packing, Inbound)
USER EXIT
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sapgenie.com/abap/code/abap26.htm
http://www.sap-img.com/abap/what-is-user-exits.htm
http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
http://www.easymarketplace.de/userexit.php
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sappoint.com/abap/userexit.pdfUser-Exit
http://www.sap-img.com/ab038.htm
http://help.sap.com/saphelp_46c/helpdata/en/64/72369adc56d11195100060b03c6b76/frameset.htm
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sap-img.com/abap/what-is-user-exits.htm
http://expertanswercenter.techtarget.com/eac/knowledgebaseAnswer/0,295199,sid63_gci982756,00.html
Rewards if useful. -
Multiple Goods Issue documents for single delivery?
Hi
I am getting multiple goods issue documents for single delivery.
In a order there are 3 line items, and one delivery is created and 3 goods issue documents.
What is the probable reasons for this.
The requirement is for one order with n items there should be one delivery document and one goods issue document.
Inputs requested.Since you havent put the issue in details, I have listed my guessses.
This may be happening due to mainly these three reasons. Please answer them and get back to me.
1) The three Good issue may be happeneing due to split delivery active for the item. If yes then correction should be in the Material master.
2) the availability check scheduled is set in that way. If yes please configure the availability and transfer of requirement.
3) Scheduling of the goods throught that particular shipping point. If yes then please conficgure the shipping tab in Logistic Execution.
Please let me know if the problem persists and award points if solved.
Thanks
Adi -
Wrong unit price on the invoice.
Hi guys,
Im requested to look at the production issue where an invoice gets its unit price printed incorrectly, though the other things such as gross weight, net weight , quantity and amount are printed correctly.
also we have the sapscript which calls function module in other abap program.
Guys any ideas on this issue please post them.
Thanks,
VenkatHi,
You need to sit with ABAPer and debugg the program and check why the value is printing wrongly.He is the only one who can solve your problem.
Reward points if useful
Regards,
Amrish Purohit -
CO-PA for good issue documents are not created
Dear All
We are using both account & cost based CO-PA , actually the problem is this that when we are doing the sales cycle, after billing my CO-PA document created but the same when I do delivery COGS document not created ,actually for sales I am taking the sales data from condition type(assignment of condition type to CO-PA value filed) and for COGS , I have assigned the COGS GL accounts in TRANSACTION Code OKB9 (automatic determine the profitability segment) also the same GL accounts I have assigned with value field in
Assignment PA transfer structure
Now when I am doing sales cycle , CO-PA document has been created when I am doing billing but when I am doing Good issue , CO-PA not created but if I go and check the GL account of COGS account I found the all detail of my profitability segment which hit this GL account
Please help in this regard.
Regards
KashifI assume that problem relates to billing in make-to-stock scenario. Since COPA document is automatically created with billing. Please note the following -
1. COGS GL account is not created as cost element.
2. There is no CO / COPA document at the time of delivery.
3. Condition type VPRS should exist in SD pricing. It is updated form material master.
4. Condition type VPRS should be assigned to COPA value field (just like PR00 / price).
5. Revenue and COGS value fields are updated at the time of billing.
Hope it clarifies.
Regards, -
Condition price change after goods issue
Hi, I find we can change sales order item prices even if after picking and goods issue. Is it possible to change the logic so that whenever a picking list is created no price change is allowed? Thanks in advance
In V/06, for your pricing condition type, maintain "D" for the field Manual entries. With this setting, whatever pricing condition is maintained, system will fetch from there when you create a sale order and moreover, once a subsequent document is generated, this condition tab would become grey in sale order.
thanks
G. Lakshmipathi -
Is it possible change cost price when poss goods issue?
Hi experts,
I create a return sales order,then create delivery and post goods receipt,it generate a accounting document,the cost price take from material standard cost, is it possible change the cost price before post goods receipt.
thanks.
lanceDear anand,
I have tried what you said,but it seam not in use.The VPRS in the delivery is 10, MAP in material is 12, after PGR the price in the accounting document is also 12, But I want the price in the accounting document is 10.
Could you tell me is there any mistake.
thanks.
Lance. -
Change Moving Average Price when Post Goods issue posted from VL02N
Hi all,
Please help me to find USER EXIT / BADI or Enhancement to change Price - MSEG-DMBTR
when Post Goods Issue posted from transaction VL02N.
Thanks in advance,
Mila.Hi,
Check these Enhancemnts...
Exit Name Description
V02V0001 Sales area determination for stock transport order
V02V0002 User exit for storage location determination
V02V0003 User exit for gate + matl staging area determination (headr)
V02V0004 User Exit for Staging Area Determination (Item)
V50PSTAT Delivery: Item Status Calculation
V50Q0001 Delivery Monitor: User Exits for Filling Display Fields
V50R0001 Collective processing for delivery creation
V50R0002 Collective processing for delivery creation
V50R0004 Calculation of Stock for POs for Shipping Due Date List
V50S0001 User Exits for Delivery Processing
V53C0001 Rough workload calculation in time per item
V53C0002 W&S: RWE enhancement - shipping material type/time slot
V53W0001 User exits for creating picking waves
VMDE0001 Shipping Interface: Error Handling - Inbound IDoc
VMDE0002 Shipping Interface: Message PICKSD (Picking, Outbound)
VMDE0003 Shipping Interface: Message SDPICK (Picking, Inbound)
VMDE0004 Shipping Interface: Message SDPACK (Packing, Inbound)
Badi Name Description
DELIVERY_ADDR_SAP Determine Time-Dependent Delivery Address in Delivery
DELIVERY_PUBLISH Returns BAdI Implementation: Automatic GR Posting T 2
DELIVERY_PUBLISH Updating of Delivery in Purchase Order
DELIVERY_PUBLISH AIP: Delivery Confirmation for Sales Order
Regards
Raghu -
Goods issue document is not displaying in production order
Hi Gurus, I am having problem That when I am doing goods issue in MB1A t code the document is posting but it is not displaying in production order.but when I am doing same goods issue in MIGO the document is displaying in Production order.when I am doing same goods issue in another plant with MB1A the document is showing.so where is the problem??is there any setting with plant and T code combination??what exactly is the error??why it is not showing in particular t code in particular plant.Please guide me.
Thanks in Advance.Hi,
Check in transaction OPL8 for the combination of plant and order type..is the below indicator are activated or not...
Thanks
Kumar
Maybe you are looking for
-
DNS set up when not distributing dns
Ok it's not clear but let me try, I am in a place where they give me an ip address and my domain names come from godaddy and are directed from there. sorry I'm french. Here's my question, Do I need to setup DNS on leopard server if I want to use all
-
Sender Mail Adapter Error: exception caught during processing mail message;
HI , I am configuring mail to file scenario. Need to read mail content (no need to capture From,TO or Subject details) and create a file with the content in the mail. Need to read mails from microsoft outlook. Exchange server has been configured for
-
How to change the field size cache/buffer in a query
I query a field from sql developer, the field is cases_history, it resides in a data mart in the global network of our company. this field is big in size, it stores logs in a sequential way, so field size increases a lot. when i query it and try a "s
-
Login failure (cannot modify header) PHP/MySQL
I have a login form 100% Dreamweaver8 built using PHP/MySQL. After logging in it fails to goto the $MM_redirectLoginSuccess page (index.php). I did not have this issue prior to the 8.02 update. I designed it the same way as I had before the 8.02 upda
-
Send multiple rows to database from a dynamic table.
I'm using JSP for my application. I have a table that changes in size depending on a value a user selects in a drop down list. They can then enter some values into the table and click the submit button. I know for whatever reason Dreamweaver only sen