BAPI for PURCHASE ORDER with OPEN QUANTITY field
Hi All,
I wanted to use the BAPI_PO_GETDETAIL to get the Purchase Order details upon triggering from Warehouse management system,
But the details required contains a field called OPEN QUANTITY...which is not used in this BAPI.
I request to let me know if any BAPI exits for PO details having the structure for this field:Open Quantity.
Am using SAP version 4.0B.
If not exists please advise how to customize the existing BAPI to meet the requirement.
thanks
mahi
Hi,
Open quantity is a calculated field. I guess the BAPI gives the details of the delivery, so take the ordered qty and substract the delivered qty from that.
Delivery data is EKET table.
Regards,
Ravi
Similar Messages
-
BAPI For Create Goods Issue for Sales order with picked quantity
Hi friends,
Is there any BAPI available to create Goods issue For sales order with picked quantity...............?
we hv used BAPI_OUTB_DELIVERY_CREATE_SLS
with sales order .......its creating delivery order but not doing goods issue with piked quantity........pls,reply its argent
-
BAPI for Purchase Order Confirmation and update EKES table
Hi all,
I have a requirement to update the PO confirmation soon after successful creation of PO in an IDOC.
I have used BAPI_PO_CHANGE function module which didnt serve the purpose as it cannot update confirmations.
I tried using ME_CONFIRMATION_UPDATE where I was able to add a confirmation entry in EKES table but that is not being reflected in ME23N transaction when I display the PO.
Please help me out on this.
Thanks & Regards
PavanNB: Never use a standard update FM (check attributes of ME_CONFIRMATION_UPDATE) its often only a SQL statement collector without any check, logging of changes or database consistency, if you perform a where-used you should find it is never called alone but with a bunch of other update FM after checks and other update preparation.
Get back to the BAPI and table parameter POCONFIRMATION, also use BAPI_PO_GETDETAIL1 to get current data for the call of BAPI_PO_CHANGE.
Regards,
Raymond
PS: If it is not in 197958 - BAPIs for purchase orders: Missing functions, you should be able to do it -
No. of sales order with open quantity in a month
Hello experts,
I have a requirement to calculate open sales order quantity and
the number of sales order with open quantity for current month.
Please advise which tables can give this logic. I have the idea
of calculating open SO quantity from VBAP and LIPS table but how
to compile the number of sales order with the open quantity
Thanks
RahulHI
can you please try in VBUK table.
Hope this helps
Thanks
Madhav -
Purchase order with zero quantity
Hi all,
When a replenishment delivery is ceated in product view, APO automatically creates purchase order with zero quantity and the replenishment delivery's receipt element. APO does not transfer the purchase order to R/3. Do you have an idea about the problem?
Thanks,
BurakPlese try to send change pointer through /SAPAPO/C5 - Process Change Pointers .
Also check your publication setting in Spro.( Maintain Distribution defination )
Manish -
Pending sales order with open quantity
Hai gurus
Please help me with any table or t.code to find pending sales order with open quantity
With regardsDear,
Please use transaction code V.02 to view all the incomplete sales order.
If you have any concerns please revert back the same to me.
Amjath -
Goods receipt for purchase order with account assignment 'K'
Hello All,
There are couple of purchase orders with acc.*** "K". On doing the GR for these PO's they have been done with mvt type 103 & mvt typ 105.
I understand that material has been directly consumed to the respective cost center.
How do track the internal movement for these materials??
I need to view the stock for these materials at the cost center as in MMBE the stock is seen as ZERO.
All these materials are with QM proc ACTIVE. So a goods receipt is done 105, then the inspection lot is cleared. However, in this case as the material is directly consumed, it is NOT displayed in QA32.
Is the above procedure correct??? Is it better to receive stock against mvt type 101 & then do a 201 mvt ??
Request your inputs.....
Regards,
Manoj ReddyAccount assignment inventories are not maintained. To maintain a report for cost center receiving/issuing you need to make a customized report with help of ABAP.
Other way is to pull report in MB51, with selection criteria COST CENTER and it will give you result of stocks available on cost center. For stocks received on cost center, you can pull report with cost center and movement 101.
201 is used for goods issue to cost center from warehouse, the stock you receive from PO against 101 is directly charged to cost center, so no need to issue later to cost center.
Edited by: Afshad Irani on May 17, 2010 2:17 PM -
Purchase Order History not appearing for Purchase Order with service items
A purchase order with a service item has been created. A SES has been created and Miro transactions as well. When tcode ME2L is executed, the Purchase Order History field is blank. Any configuration missing or is there an applicable OSS note to fix this?
Hi,
It is a coding error.
Could you please check if you have applied the note 1049031 with the latest version 13?
Regards,
Edit -
BAPI for process order header delivered quantity
Hi,
current requirement is to get the process order quantity with drawn and delivered quantity , when we try using the BAPI
BAPI_PROCORD_GET_DETAIL , it does not have the process order delivered quantity - it has only total quantity for which process order is created .
Is there a way or any standard BAPI/RFC gives the below :
1. Process Order Header Delivered Quantity
2. Process order component's quantity with drawn
Regards,
Madhu KiranHi Madhu Kiran,
BAPI_PROCORD_GET_DETAIL of course has all the required fields:
1. --> check table POSITION, field DELIVERED_QUANTITY
2. --> check table COMPONENT, field WITHDRAWN_QUANTITY
Regards,
Andreas -
BAPI for Purchase order change
Hi experts,
I just want to change PO quantity by BAPI function module: BAPI_PO_CHANGE, I fill in PO number, Item number, material number and PO quantity to parameters, but result is not well. it shows a message below and the purchase order is not changed.
message:
For the currency code ALE communication is not allowed
Message no. B1889
Diagnosis
The ISO code assigned to the current currency code is not unique and the primary flag is NOT set. This currency code can therefore not be used for external communication.
I checked currency config in SPRO and the assignment of ISO code is unique and the primary flag is setted actually.
so what else can I do to solve this problem.
thanks in advance.
jackThe B1889 message has the following reasons:
-> The primary flag of the found ISO code is assigned more than once.
-> The ISO code is not unique and the primary flag is not assigned
for associated SAP currency codes.
-> The ISO code is not unique and the current SAP currency code has
NOT assigned the primary flag.
First case: CC ISOCD XPRIMARY
CNY CNY X
RMB CNY
Your ISO code is not unique, therefore you are using the primary flag.
If a dataset wich currency code CNY is encountered, everything is ok
because none of the 3 rules mentioned above can be applied.
If a dataset contains currence code RMB, rule (3) will be applied.
Therefore, you get the following output in this case:
"For curreny code RMB ALE Communication is not allowed"
Second case: CC ISOCD XPRIMARY
CNY CNY
RMB CNY X
If a dataset contains currency code RMB, everything is ok because it is
flagged as primary. Like in the first case, if CNY is encountered,
rule (3) will be applied and you will get the output:
"For curreny code CNY ALE Communication is not allowed"
If you are using both CNY and RMB together, it is not possible to avoi
the B1889 message beause there will be always the case that your ISO
code is not unique AND that one currency code is not flagged as primary,
which is summed up in rule (3).
Please see information in attached note "144349 ALE: Problems with
currency conve". -
FM or BAPI for Purchase Order Creation.
can ne1 help me to
create purchase order reference to PReq(Requisition) thru ne FM or BAPI.Hi,
We can create the PO Using the BAPI_PO_CREATE1 function module.
in this function module fill up the all necessary Details.
With details in Item Table we haveto give the Fields PREQ_NO and PREQ_ITEM for each item .
then it will creates the PO with PREQ.
Reward Points If useful.
Thanks&Regards,
Srinivas. -
GR for purchase order with Account assignment E
Hello All
I am having a scenario where in the BOM structure is as under: A->B->C--->D, D is the raw material, C is the component produced in-house, B is the material which we procure through subcontracting, in the material master of C SPK:30 is used for subcontracting, & A is in-house produced material with purely MTO scenario (20 - strategy).
Once the sales order of A is there we run MRP for it, as per the master data settings described above we get purchase requisition for D & when I convert it to purchase order it is having account assignment as E.
This is all well but the moment I try to save it, system throws an error stating: 'G/L account 20500100 cannot be used (please correct)". This G/L account is of raw material itself.
Can you please guide me to overcome this problem.
I am looking forward to listen from you soon.
Regards,
J K TharwaniHi
Check the OBYC settings for this transaction, assign the correct G/L for this transaction. Try to get the help from MM consultant to resolve this.
Check in BSX Transaction for the invetroy posting.
Check the G/L account it is exist for your company code.
Take the G/L account which is coming in the error message and go to FS00 t code select tab Create/blank/interest , there you will have field status group just double click on that . It will take you to field status group display in that check the combination of the selection.
Thanks
S.Murali
Edited by: S. Murali on Jun 26, 2009 5:07 PM
Edited by: S. Murali on Jun 26, 2009 5:19 PM -
BAPI for Purchase Order Creation
Hi All,
Purchase Order creation through BAPI, Auto Po creation. Please advise program.
The requirement is: when we delivery the goods from one plant to another plant,PO should create in second plant with goods what delivered from first plant.
Pranitha
Moderator message : Spec/requirements dumping is not allowed. Thread locked.
Edited by: Vinod Kumar on Sep 30, 2011 3:37 PMHi,
As per u r requirement
you can use : BAPI => BAPI_PO_CREATE with suitable Document Type ( Stock trasnfert : STO )
IF u want to auto po must be created after each delivry in this case you need to use BADI
'MB_MIGO_BADI; In This BAPI There is method : POST_DOCUMENT
In this method u can write code for Auto PO Creation by using BAPI .
Hope This will Resolve u r query.
Thanks and Regads
Santosh -
Hi all,
I have to retrieve the invoice verification due date given the following:
Retrieve batch number from item level of billing (VBRP-CHARG)
Pick up purchase order number from batch master data MCH1
Based on PO number, retrieve invoice verification number (EKBE-BELNR) where :
1. EKBE-EBELN = PO Number
2. EKBE-VGABE = 2
Based on Invoice receipt number, pick up due data on BSEG-FDTAG where BSEG-BLNR is equal with above invoice verification number.
I've done the first bullet point but don't know how to proceed. How can i pick up the purchase order number, do we have any BAPI for that?
Thanks!Used FM VB_BATCH_GET_DETAIL to get PO number
-
BAPI for Purchase Order Vendor Confirmations
Can any body suggest me the BAPI for the purchase order vendor confirmations transaction code me22n - Tab<b>-(Confirmations)</b> alone.
regs,
RajaDear Asha,
Pls find the below code, this handles only the BDC part of the program.Updates only the EKES table thru standard confirmation tab on ME22N.
Kindly clarify any doubts in this reg.
regs,
Raja.
FORM ins_stdtable .
DATA:var TYPE c LENGTH 30,
cstr(02) TYPE n value '01'.
data istr(02) type n value '00'.
DATA recno TYPE i.
data: eblc type c length 5,
ebli type i.
DATA: kebeln LIKE utab-ebeln.
DATA: BEGIN OF indx,
ebelp type ekes-ebelp,
eindx type i,
END OF indx.
DATA : CNT TYPE I value 1.
DATA: COUNTER(2) TYPE N VALUE '01',
ROWS TYPE P.
DATA: w_textout LIKE t100-text.
DATA: gd_update TYPE i,
gd_lines TYPE i.
data :waek like indx,
itabek LIKE TABLE OF waek.
*Used to stores error information from CALL TRANSACTION Function Module
DATA: BEGIN OF messtab OCCURS 0.
INCLUDE STRUCTURE bdcmsgcoll.
DATA: END OF messtab.
SELECT MAX( ETENS ) FROM ekes INTO zetens WHERE ebeln =
ekko-ebeln.
recno = zetens.
LOOP AT utab.
SELECT distinct ebelp INTO CORRESPONDING FIELDS OF TABLE
itabek FROM eket WHERE ebeln = ekko-ebeln.
loop at itabek into waek.
ebli = ebli + 1.
waek-eindx = ebli.
modify itabek from waek.
endloop.
loop at itabek into waek where ebelp = utab-ebelp.
eblc = waek-eindx.
condense eblc.
endloop.
AT NEW ebeln.
PERFORM bdc_dynpro USING 'SAPLMEGUI' '0014'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=MECHOB'.
PERFORM bdc_dynpro USING 'SAPLMEGUI' '0002'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=MEOK'.
PERFORM bdc_field USING 'BDC_CURSOR'
'MEPO_SELECT-EBELN'.
PERFORM bdc_field USING 'MEPO_SELECT-EBELN'
utab-ebeln.
AT New EBELP.
perform bdc_dynpro using 'SAPLMEGUI' '0014'.
perform bdc_field using 'BDC_CURSOR'
'DYN_6000-LIST'.
perform bdc_field using 'DYN_6000-LIST'
eblc.
perform bdc_field using 'BDC_OKCODE'
'=DDOWN3200'.
PERFORM bdc_dynpro USING 'SAPLMEGUI' '0014'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=TABIDT15'.
perform bdc_field using 'DYN_6000-LIST'
eblc.
PERFORM bdc_dynpro USING 'SAPLMEGUI' '0014'.
PERFORM bdc_field USING 'BDC_OKCODE'
'PICK'.
ENDAT.
ENDAT.
PERFORM bdc_field USING 'DYN_6000-LIST'
eblc.
recno = recno + 1.
cstr = recno.
counter = cstr.
*This is to check whether the scheduled line item exceeding 12 rows. if so, use *page up
if counter >= 13.
rows = counter MOD 13.
istr = ( ( counter - rows ) / 13 ).
do istr times.
perform bdc_dynpro using 'SAPLMEGUI' '0014'.
perform bdc_field using 'BDC_OKCODE'
'=EINB_CREATE'.
enddo.
DO 2 TIMES.
perform bdc_dynpro using 'SAPLMEGUI' '0014'.
perform bdc_field using 'BDC_OKCODE'
'=P+'.
enddo.
COUNTER = '03'.
cstr = '03'.
ENDIF.
CONCATENATE 'EKES-EBTYP(' cstr ')' INTO var.
PERFORM bdc_field USING 'BDC_CURSOR'
var.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING var
utab-ebtyp.
CONCATENATE 'RM06E-EEIND(' cstr ')' INTO var.
PERFORM bdc_field USING var
utab-eeind.
CONCATENATE 'EKES-MENGE(' cstr ')' INTO var.
PERFORM bdc_field USING var
utab-menge.
CONCATENATE 'J_3ASZDI-J_3ASIZED(' cstr ')' INTO var.
PERFORM bdc_field USING var
utab-j_3asize.
AT END OF Ebelp.
PERFORM bdc_dynpro USING 'SAPLMEGUI' '0014'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=MESAVE'.
perform bdc_dynpro using 'SAPLMEGUI' '0014'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
CALL TRANSACTION 'ME22N' USING bdcdata MODE 'E'.
IF sy-subrc EQ 0.
savedone = 'Y'.
saveflag = 'Y'.
initflag = 'N'.
MESSAGE 'SAVED' TYPE 'I'.
else.
saveflag = 'N'.
savedone = 'N'.
initflag = 'Y'.
MESSAGE 'Not Saved' Type 'I'.
endif.
CLEAR: bdcdata.
REFRESH bdcdata.
ENDAT.
ENDLOOP.
ENDFORM.
Hope this will help u
Maybe you are looking for
-
I have checked the emails that I have on file and they are correct. When I press the "Send email" button to help reset security information it is sending it to an email address that I have never ever had! Why is it not sending the email to one of the
-
Adding diffuse map on proe files surfaces
I tried to work with 3d toolkit to edit my proe files and I don't understand one thing: why when I add in material a diffuse map and apply that to my surfaces I cannont visualize it. I can do it with reflection map, but not with diffuse. Is that a pr
-
Can't get twitcam to work on linux FF
I can't paste into this forum, so pardon for the link (otherwise i have to retype it). http://shengchieh.50webs.com/adobe.100517.txt Sheng-Chieh
-
PC Suite cannot get the contacts from my 6133
My PC: Windows Vista Business My Phone: 6133 PC Suite version: 6.83.14.1 Connection: Bluetooth Connection to my phone has no problem. I can see the pictures in the phone, the mp3 files in my phone. I can download games. But I cannot see the contacts.
-
Work Order Header Short Text & Operation Short Text Issue
Hi All, There is one issue while creating the work Order through IW31. When I put the Header Short Text same short text is transpose in to the First Operation short text as per STD SAP behaviour but if I change First Operation short text in creation(