How to change the open quantity of PO / STO using BAPI_PO_CHANGE
Hi Friends,
How can I change the open quantity in ME22 using the BAPI BAPI_PO_CHANGE...
I am getting some errors..The values I am passing to the BAPI are:-
*-- Purchase Order document
lv_purchaseorder = tbl_join-ebeln.
*-- Calculate Open quantity
lv_quantity = ( tbl_join-menge - tbl_join-wemng ).
*-- Fills Schedule quantity to be processed.
tbl_poschedule-po_item = tbl_join-ebelp.
tbl_poschedule-sched_line = tbl_join-etenr.
tbl_poschedule-quantity = lv_quantity.
APPEND tbl_poschedule.
*-- Marks the Schedule quantity to be processed.
tbl_poschedulex-po_item = tbl_join-ebelp.
tbl_poschedulex-sched_line = tbl_join-etenr.
tbl_poschedulex-po_itemx = c_true.
tbl_poschedulex-sched_linex = c_true.
tbl_poschedulex-quantity = c_true.
APPEND tbl_poschedulex.
CALL FUNCTION 'BAPI_PO_CHANGE'
EXPORTING
PURCHASEORDER = lv_purchaseorder
POHEADER =
POHEADERX =
POADDRVENDOR =
TESTRUN = 'X'
IMPORTING
EXPHEADER =
EXPPOEXPIMPHEADER =
TABLES
RETURN = tbl_return
POSCHEDULE = tbl_poschedule
POSCHEDULEX = tbl_poschedulex.
Is there any other required fields needs to be passed to change the open quantity..
I am checking in ME22...
The scheduled quantity is 20.
Delivered quantity is 15.
Open quantity is 5 and ( this field is in non-editable display )
Delivery date is 10.10.2002 ( which is in past )
Now using this BAPI ..I want to post the remaining open quantity which is " 5 "
How can i do this ?? Please help.
Hi Hari
Please check after making the following changes:
*-- Marks the Schedule quantity to be processed.
tbl_poschedulex-po_item = tbl_join-ebelp.
tbl_poschedulex-sched_line = tbl_join-etenr.
<b>tbl_poschedulex-po_itemx = 'U'. "c_true.
*tbl_poschedulex-sched_linex = c_true.</b>
tbl_poschedulex-quantity = c_true.
APPEND tbl_poschedulex.
If still you do not get the desired function working add the below code:
tbl_poitem-po_item = tbl_join-ebelp.
tbl_poitem-quantity = lv_quantity.
append tbl_poitem.
tbl_poitemx-po_item = tbl_join-ebelp.
tbl_poitemx-po_itemx = 'U'.
tbl_poitemx-quantity = c_true.
append tbl_poitemx.
Hope this helps.
Kind Regards
Eswar
Similar Messages
-
How to change the pick quantity in outbound delivery using bapi
Hi,
I am using BAPI_OUTB_DELIVERY_CHANGE for changing the outbound delivery picking quantity but there is no field to change the pick quantity.
plas advice any BAPI to change pick quantity
Regards,
KrishnaKrishna....have a look in the below threads where there was a similar requirement..
error while using BAPI_OUTB_DELIVERY_CHANGE
change outbound delivery -
WM-production order-need change the open quantity in Transfer order
Hi,
I created the production order (order quantity 1000). i did material staging and generated TR. .
But i need to change the open quantity in transfer order . i need to create the partial Transfer order
against TR..
KINDLY SUGGEST ME
WITH REGARDS
DineshHi Dinesh,
TO for partial qty is possible.
When you are doing material staging with 319 mov.type, you create a transfer order for partial quantity as follows:
You first create a manual transfer order using transaction LT04.
You specify the TR number in the intial screen and navigate to the detail screen, system shows the Open TR quantity and the proposed TO quantity. By default, both these quantities are equal to the TR quantity.
However, when you create by clicing the "Create TO button" (the icon with a plus sign in the tool bar of LT04 screen), system takes you to another screen where it asks for the "Requested Qty" on the top of the screen. Here you can modify the qty as per your requirement; then you can check and confirm the storage type and storage bin for source and destination stocks & save.
It is important that you give the correct source storage type & storage bin that is having stock or otherwise system might give error message.
System will create a TO line item with the entered qty and propose the balance TR qty as the 2nd TO line item. You can skip this 2nd TO item or delete it from the TO.
Once again, if you click the Save button, system will save the TO with the partial quantity.
The balance quantity will be available in the TR as open quantity and this can be seen in the header data of transaction LB03.
Regards
Prabhu -
How to calculate the OPEN QUANTITY in delivery Duelist Report
Hi Everybody,
I have a query for finding out the OPEN QUANTITY for schedulines for a delivery.
If for example the report is run for 2nd of February, it is necessary to
determine whether there are delivery relevant schedule lines before the
2nd.
If yes, we need to know whether there is an open quantity to this line
item.
If yes, this open quantity is a negative deviation (we delivered not
enough).
If there is no open quantity it is necessary to determine whether for the
earliest future to be deleviered schedule line, the open quantity equals
the ordered quantity (VBEP-WMENG),
if No the the difference between both values equals the positive deviation
(we delivered more than requested)
If the open quantity equals the ordered quantity there is no deviation.
The problem is to calculate the open quantity and the SAP standard there is function
builder used in SAP standard include MV45AF0O_OFFENE_WERTE_ERMITTEL, the
function builder is called RV_SCHEDULE_CHECK_DELIVERIES'. But how could we use in this formulae in a Custom delivery report.
Looking for your helpful suggestions.
Many thanks in Advance,
Mira SaikrishnaKrishna....have a look in the below threads where there was a similar requirement..
error while using BAPI_OUTB_DELIVERY_CHANGE
change outbound delivery -
How to change the print page setup in IE using javascript
dear all,
I want to take print out envelope paper size, so i want to chnage the page setup in IE
i want to change the print page setup in IE using javascriptI think, you can do this using CSS.
http://support.sas.com/rnd/base/ods/templateFAQ/Template_csstyle.html -
How to change the opening page, when we open a new tab?
When I open a new tab, it opens the babylon search (which is annoying). How to change it to the thumbnail view showing most visited pages?
PS: I have not installed anything Babylon related to my PC. I checked the control panel nothing Babylon related is there.Hi,
You can try to right-click and '''Reset''' the '''browser.newtab.url''' key in [http://kb.mozillazine.org/About:config about:config].
[https://support.mozilla.org/en-US/kb/new-tab-page-show-hide-and-customize-top-sites New tab page]
[http://kb.mozillazine.org/About:config_entries about:config Entries]
If the problem persists please see [https://support.mozilla.org/en-US/kb/removing-babylon-searchqu-or-mystart Removing Babylon, SearchQU or MyStart]. -
How to change the style of a single component using oracle skin Jdev 10.1.3
my hole applications is using oracle skin, I only need to change the color of the menuTab, but I don´t want to create a new skin family...
I tried this link http://www.oracle.com/technology/products/jdev/101/howtos/adfskins/index.html
but the dont tell how to create adf-faces-skins-doc.xml
how is that possible?, please I need help....Hi,
Ack, I forgot that 10g doesn't have inheritance support either... You'll have to create an XSS file I think, and those are obscure... Also 10g generates image files for menuTab... I think you'll have to create a brand new skin family, sorry :(
Regards,
~ Simon -
How to change the g/l a/c being used while doing goods issue using migo
when I pass a migo entry whilie purchasing material
, the entry goes through stock
stock (230000 a/c no) 150 dr
GR/IR (150000 a/c) 150 cr
when I issue material after reservation for which again migo is done
entry is
repairs to plant and mach (4800569 a/c) 175
stock (230000 a/c no) 175
The stock a/c is debited and credited due to t.code obyc where for inventory posting I have assigned a/c 2300000 for valuation class assigned to material.
now I want to have a/c no 4800689 in place of 4800569. how can i change that.
that is when I issue material from stock this should be debited to 4800689 instead of 4800569. please provide t.code to change the gl from 4800689 from 4800569
full points will be awardedcontinuing my issue is it possible to that we donot have to change the gbb and vbr and still we can have the desired results.
that is we are able to use different gl for debit while doing goods issue from a single stocked material
or we want to have this result
1. repairs to p&m 1000 dr
stock of cement a/c 1000 cr
2. repairs to building 2000 dr
stock of cement a/c 2000 cr.
3. construction 3500 dr
stock of cement 3500 cr
we donot want to change the GBB and VBR every time or change the GL a/c while doing reservation.
is there any third option where we get the desired result without changing or entering the g/l manually
if there is please let me know the t.codes -
How to find the open po line item by using EKKO &EKPO tables
Hi Gurus,
what i am doing is finding out the OPEN PO line item from EKPO table. I know it has to check the ELIKZ field from the EKPO table.Can you please clarify me on the same in more detail.I has to use the ELIKZ EREKZ fields from EKPO table.Use the field ELIKZ in EKPO. If the field is Blank its an OPEN PO Line Item
refer this link.
How to open PO line item -
How to change the emmbedded ip address in sip using nat
i have traffic on a private ip range sending sip traffic that is being natted to another range on a cisco router. how do i get the nat router to change the ip address embedded in the sip to the nat address.
Hi Daniele,
Thanks. But this is already enabled.
This is my present config and show ver.
sh ver
Cisco IOS Software, C1900 Software (C1900-UNIVERSALK9_NPE-M), Version 15.0(1)M2, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2010 by Cisco Systems, Inc.
Compiled Wed 10-Mar-10 22:27 by prod_rel_team
ROM: System Bootstrap, Version 15.0(1r)M6, RELEASE SOFTWARE (fc1)
NORF50IPT1 uptime is 1 day, 23 hours, 26 minutes
System returned to ROM by reload at 11:21:52 MSD Sat Aug 20 2011
System image file is "flash0:c1900-universalk9_npe-mz.SPA.150-1.M2.bin"
Last reload type: Normal Reload
Last reload reason: Reload Command
interface GigabitEthernet0/0
description link to Avaya PBX
ip address 146.30.106.250 255.255.255.252
ip nat inside
ip virtual-reassembly
duplex auto
speed auto
interface GigabitEthernet0/1
ip address 192.168.211.106 255.255.255.0
ip accounting output-packets
ip nat outside
ip virtual-reassembly
duplex auto
speed auto
ip nat service allow-multipart
ip nat inside source static 192.168.1.10 192.168.211.106 route-map ipt
access-list 1 permit 192.168.1.0 0.0.0.255
route-map ipt permit 10
match ip address 1
here is the output from a debug ip nat sip:-
*Aug 22 10:57:26 MSD: NAT: map match ipt
*Aug 22 10:57:26 MSD: mapping pointer available mapping:0
*Aug 22 10:57:26 MSD: NAT: New entry added to map hash table
*Aug 22 10:57:26 MSD: NAT: i: tcp (192.168.1.10, 52435) -> (192.168.111.2, 5060)
*Aug 22 10:57:26 MSD: NAT: created edit_context (192.168.1.10,52435) -> (192.168.111.2,5060)
*Aug 22 10:57:26 MSD: NAT: s=192.168.1.10->192.168.211.106, d=192.168.111.2
*Aug 22 10:57:26 MSD: NAT: o: tcp (192.168.111.2, 5060) -> (192.168.211.106, 52435)
*Aug 22 10:57:26 MSD: NAT: s=192.168.111.2, d=192.168.211.106->192.168.1.10
NORF50IPT1#
*Aug 22 10:57:52 MSD: NAT: map match ipt
*Aug 22 10:57:52 MSD: mapping pointer available mapping:0
*Aug 22 10:57:52 MSD: NAT:refcount increased to entry in map hash table
*Aug 22 10:57:52 MSD: NAT: i: tcp (192.168.1.10, 45661) -> (192.168.111.2, 5060)
*Aug 22 10:57:52 MSD: NAT: created edit_context (192.168.1.10,45661) -> (192.168.111.2,5060)
*Aug 22 10:57:52 MSD: NAT: s=192.168.1.10->192.168.211.106, d=192.168.111.2
*Aug 22 10:57:52 MSD: NAT: o: tcp (192.168.111.2, 5060) -> (192.168.211.106, 45661)
*Aug 22 10:57:52 MSD: NAT: s=192.168.111.2, d=192.168.211.106->192.168.1.10
I cannot see it changing the embedded ip in the sip. -
How to change the column order in OVS - NOT USING Enhancement Pack 1
Hi Guys,
we are currently using NWDS 7.1.
I cannot seem to chang the order of the columns when the OVS pops up. We have tried to change the order of the fileds of the custom SAP BAPI that is used for this OVS but no success.
Please advise on possible changes of the actual BAPI that might help, or things we can do Java side.
Kind Regards,
ChristiaanHi Christiaan,
This can be done from Java side in itself.
This depends on the order in which you add attributes to the node in the context for ovs output.Recreate the context node of ovs output and add attributes one after the other in the same order you want it to appear in the ovs pop - up.That simple.
Hope this helps.
Regards,
Ashok -
Hi Guys,
I have PO quantity(EKPO-MENGE) and goods receipt quantity(MSEG-ERFMG). Here i want to calculate the open PO quantity which is EKPO-MENGE - MSEG-ERFMG .But here if multiple material docements r getting created for the same for one PO and partial goods receipt quantity is done thru these multiple material documents. then how to net the open quantity.
For example :
PO no PO quantity material documents GR quantity
10 10 100 1
200 2
300 -2
400 3
Now i need the open quantity as 9
7
9
6.
Even i tried with At new Ebeln.but i am not getting it.
Can anybody help me in this.Hi,
Open PO Line Item Qty = PO Line Item Qty - ( Sum(All GR Qty for PO Line Item ) -
Sum(All GR Return Qty for PO Line Item) ).
PO Line Item Qty = EKPO-MENGE.
GR QTY for PO Line Item = EKBE-MENGE with Movement Type = '101'.
GR Return QTY for PO Line Item = EKBE-MENGE with Movement Type = '102'.
SELECT EKPOMENGE EKPOMEINS
FROM EKKO INNER JOIN EKPO ON EKKOEBELN = EKPOEBELN
INNER JOIN EKET ON EKETEBELN = EKPOEBELN AND
EKETEBELP = EKPOEBELP
INNER JOIN LFA1 ON LFA1LIFNR = EKKOLIFNR
INTO CORRESPONDING FIELDS OF TABLE I_PO
WHERE EKKO~BUKRS = P_BUKRS AND
EKPO~WERKS = P_WERKS AND
EKKO~LIFNR IN S_LIFNR AND
EKPO~MEINS IN S_MEINS AND
EKET~EINDT IN S_EINDT AND
EKKO~BSTYP = 'F' AND "Select PO Only"
EKKO~LOEKZ = ' ' AND "PO should not be deleted"
EKPO~LOEKZ = ' ' . "Line Item Should not be DEL
Fetch the PO History Details for the Records of the Internal Table i_po.
LOOP AT I_PO.
SELECT EBELN EBELP BWART MENGE WRBTR
FROM EKBE
APPENDING CORRESPONDING FIELDS OF TABLE I_EKBE
WHERE EBELN = I_PO-EBELN AND
EBELP = I_PO-EBELP AND
BEWTP IN ('E','F').
ENDLOOP.
Edited by: AJAY TIWARI on Oct 19, 2008 5:00 PM -
How to find the open PR in SAP
how to find the open PR list in SAP
HI,
Using T-code ME5A - List Display of Purchase Requisitions and give input data's are as follows.
Plant : _______
Scope of List : ALV
Tick Mark of the below options :
Assign Purchase Requisition to be tick
"Partial Ordered" Requisitions to be tick
Released Requisitions Only to be tick
Requisition for overall Release to be tick
After that, execute the report shown only released and Open purchase requisition(PR) details.
Hope, it is useful for you.
Regards,
K.Rajendran -
How to change the name of column in ActionScript?
I possibly know how to change the name of the column in DataGrid using mxml but dont know how to change the name of column in DataGrid using ActionScript.
var newDataGrid:DataGrid=new DataGrid();
newDataGrid.dataProvider=arrayCollection():
It takes the default names from arraycollection but I wanted to give any column names which I want through ActionScript.
Please HELP!Give your datacolumn and id. Then set the property for that column through the datacolumn id.
DataGridColumn id="nameDC"
Script:
nameDC.headerText = "Name"; -
Change the stock quantity!!
Hi
Is ther any fm for changing the HU Quantity . I tried using HUINV_ITEM_CHANGE , doesn't seems to be working..
pls help
Regards
GunjanHi Gunjan,
Actually calling HUINV_ITEM_CHANGE will not update the database. All the function module does is update an internal table viz. "gt_inv_item" which is part of the function group HU_INV. In this function group, there exists another function module viz. HUINV_POST_DB which actually posts/commits the changes from the internal table into the database.
Hence I would suggest you go through the function group mentioned above and a possible solution might come in the form of using a sequence of call functions to achieve the result.
Hope it helps.
Rgds,
Aditya
Maybe you are looking for
-
Problem when creating Database with Database, OS and hardware Configuraiton
Problem when creating Database: There are two problems, which I faced during creation of database. When creating database with Oracle Database Assistant. One when creating pre tuned database from CD. And second when creating customized database givin
-
Lately I've been having issues with my wireless. Most of the time it works fine, but sometimes (getting more and more frequent) it will fail to get network access (though Windows claims it's connected but with no internet; shows an IP configuration
-
We have app where component may be resized at runtime. I kind of understand how components and containers are resized using height, widht, percentHeight and percentWidth settings and have gone through some of the articles on it on internet. My questi
-
Assigning a music playlist to a slideshow -- similar to Front Row
I don't yet have a AppleTV, but considering one -- the main reason is to view photos. With Front Row, say you create "slideshow A" with music from an iTunes playlist "set A" and "slideshow B" with music from playlist "set B". When you play back "slid
-
Saving emails permanent on the iPad (IMAP)
Hi Guys, I have hundreds of mails and folders on my imap-mailaccount. When I first set up and configured my iPad, all the Folders and Mails have been downloaded by my iPad. But when I'm offline with my iPad, old emails cannot be openend. I just see t