AFPO-DNREL and AFPO-XLOEK
Hi ,
I am using the extractor 2LIS_04_P_MATNR for production orders. The user is not interested in the orders which have AFPO-DNREL = X and AFPO-XLOEK = X.
But this extractor is not delivering those 2 fileds. Even if i enhance the xtractor with this 2 fileds, i am doubting on delta functionality. If there is a Deletion Indicator (AFPO-DNREL = X) is set to the existing records, then it will not come in the delta as this is extracted using the user exit.
How to achive this?. Any ideas?>
Thanks.
Mummaneni.
Sales order No. and sales line item will only be transfer to production order in MTO ( Make to Order) scenario.
If your scenario is MTO and the sales order reference is not getting transfer, then check your requirement type and requirement class setting in T.Code OVZH and OVZG.
In standard SAP 'KE' requirement type 40 requirement class is used for MTO scenario.
Similar Messages
-
Sales Order and Sales Item not copy over to table AFPO-KDAUF and AFPO-KDPOS
Hi Expert,
May I know why I run MRP and convert planned order to production order based on Sales Order, why the sales order and sales item is not copied and save in table AFPO-KDAUF and AFPO-KDPOS?
I can see the sales order and sales item is appearing in MD04, but how is the linkage between production order and sales order/item?
Thanks.Sales order No. and sales line item will only be transfer to production order in MTO ( Make to Order) scenario.
If your scenario is MTO and the sales order reference is not getting transfer, then check your requirement type and requirement class setting in T.Code OVZH and OVZG.
In standard SAP 'KE' requirement type 40 requirement class is used for MTO scenario. -
Hi there,
can anybody say me which role the table AFPO plays for a process order? Where can I see these positions in the standard SAP-transactions. Is there in every case only one position per process order? Is this sure?
Thanks a lot!
Kind regardsI mean:
Is it possible that a process order hast 2 "positions" in Tabele AFPO, that means for example order 4711
AUFNR = 4711
POSNR = 1
AUFNR = 4711
POSNR = 2
Is this possible? In the standard COR-transaction I can't see any "position table", but I cannot get for what the AFPO table with POSNR in key is used.
Thanks a lot.
Kind regards
Max -
hi all,
i have a problem regarding relation or link between sales and production order. i have to fetch production order number related to sales order number. i have checked in the table AFPO that is production order item table , there is field AFPO-KDAUF and AFPO-KDPOS ie, sales order and sales item. but when i see these two fields there is no data into the field so how can i get data into the table related to production order.can anyone help me on this issue.Please refer to the below links -
https://forums.sdn.sap.com/post!reply.jspa?threadID=309885
Integration points with MM/IM and PP are some of the following -
When a Production order is created and released a reservation gets created for the materials in BOM
When the reservation is created and materials are posted against the reservation with mvt type 311 these are transferred to the respective location.
When a GR is posted with mvt type 101, the Finished or Semifinished goods are posted to the respective storage location and inventorized.
When a consumption is posted with mvt type 261 then stock will get reduced in resepective storage location.
When a batch determination is done in a production order basing on the batch search strategy and sort rule material, quantity and batch are selected.
If WM is configured an associated internal movement for all the above movement types will be posted.
During MRP, BOM which is a master data for PP is used to calculate the dependent requirements of materials.
During availabilty check of a production order basing on the availability check configured materials will be selected and checked.
Hope the above may help you. -
Linking between PP and SD tables
Hai friends,
I want one link between PP and SD tables. My requirement is i have planned order PLAF table. i want to link Sales table. Please guide me.
Thanks and Regards
visvanathHi
You can simply link the Sales order No and ITEM
VBAP-VBELN and VBAP-POSNR with the PP order item table
AFPO-KDAUF and AFPO-KDPOS and get the Pp related info
or in Sales tables there is a field called AUFNR in VBAP
use that for PP order number
SD tables
http://www.erpgenie.com/abap/tables_sd.htm
PP tables
http://www.erpgenie.com/abap/tables_pp.htm
Regards
Kiran Sure -
Sales order number based on Production order number.
Hi,
Can anyone provide me the relationship between the sales order and production order .
I need to get the customer material description(ie from vbap for related sales document no) when i give the input as a production order number ,now my question is how the data is retriewed i mean how the production order gets related to sales order and form it how the material no is picked up and its material description..
Please provide me with the tables and what key fields are related (clear view how tables are related and how could i fetch the data)Swetha,
There is no exact relationship between a Production order and a Sales order in an MakeToStock environment. I will therefore assume that you are speaking of MakeToOrder, where there is an exact relationship between the Production order and the Sales Order/Item.
Functionally, CO03 > enter the production order number. On the display screen will be displayed the associated Sales order and item. Double click on this and it will bring you to VA03. Select the item of interest, and then Goto > Item > Purchase order data. The customer material is displayed. If you have entered a customer material description in your Customer Material Info Record (CMIR) (VD51), and if the Material in the sales order was determined by the customer material info record, then the description will be displayed instead.
So, at table level:
Look in AFPO to find production order number. Contained in AFPO is AFPO-KDAUF and AFPO-KDPOS.
Use these fields to look in VBAP to locate your sales order/item. Find VBAP-KDMAT. This is customer material.
The description of the 'standard' customer materials can always be found in KNMT. To look this up, you need to know sales org, dist channel, customer, and material. Lookup using a program is dicey, since it is possible, within a sales order, to determine the material from Customer material, or it is possible to just enter any customer material in the sales order. When the material is determined, it depends upon your determination logic (sold to? Hierarchy?), which can differ from system to system, and from customer to customer. To sum it up, it is possible to get the CustMat description from data found in VBAP and VBAK, but you first need to know how your CMIRs are structured.
For a simple lookup, I suggest you just get to the customer material in VBAP, and stop there.
For more info about how data is stored in the Sales documents, you might want to ask your question in one of the SD forums.
Best Regards,
DB49 -
Modify production order tolerance limits through BAPI
Hi experts,
I need to modify tolerance limits at production orders, but I can't find a BAPI that acomplishes my needs. Nor BAPI_ALM_ORDER_MAINTAIN, neither BAPI_PRODORD_CHANGE have those fields (AFPO-UNTTO and AFPO-UEBTO).
Could anybody help me?
Thanks in advance.
Maite.Hi,
if you are using this BAPI, you must ensure the following,
o All the necessary master data has been created correctly (for
example, material master, BOM, routing or recipe, work centers or
resources).
o All the necessary Customizing settings have been made to the orders.
For more information refer the BAPI Document in SE37. it is helpful to find out the which are the parameters are obligatory.
Refer the below link.
[Re: Can not display the Long Text in PO creation|Re: Can not display the Long Text in PO creation]
Reward if found helpful.
Regards,
Boobalan Suburaj -
DB View Error between MSEG AFPO and AFKO
I want to create a view based on the following conditions between tables - MKPF , MSEG , AFPO , AFKO
CONDITION -
1. Get the date based on the movement types ( tables mkpf and mseg )
2.I NEED TO LINK SALES ORDER AND SALES ORDER LINE ITEM field FROM MSEG and AFPO.
3. THEN AFTER DETERMINING THE PO FROM THE ABOVE CONDITION , LINK THE Production Order (AFPO) TO AFKO TABLE.
HOW CAN THIS BE DONE. PLZ HELP MATTER URGENT.I want to create a view based on the following conditions between tables - MKPF , MSEG , AFPO , AFKO
CONDITION -
1. Get the date based on the movement types ( tables mkpf and mseg )
2.I NEED TO LINK SALES ORDER AND SALES ORDER LINE ITEM field FROM MSEG and AFPO.
3. THEN AFTER DETERMINING THE PO FROM THE ABOVE CONDITION , LINK THE Production Order (AFPO) TO AFKO TABLE.
HOW CAN THIS BE DONE. PLZ HELP MATTER URGENT. -
For report with material and workcenter
my client reqd a report for the materials plan order and production generate for the period with respective week in specific workcenter.
Hence for the plan order order and production order i am useing PLAF and AFPO but i am expecting a excelent tips to get a workcenter wise report .As for the materials defined with production version i am getting by production line but for non production version material how do i fetch.
Input will be plant and workcenter on the basis of that generated count of plan orders and count of production orders need to appear.
expecting a help from SAP PP gurus.............Hi,
Before developing customized report please check with std. report COOIS.
First give input as List = order Header , profile, select Production order check box alone & workcenter/plant/date & excute .
Then try with planned order check Box ,
This will give sepearte list for Both production & plant order.
u can use change layout option to design report output as u need
Please check & come back
Regards
pradeep -
Link between contract and service order.....urgent
hi...
plz tell me the link between <b>contract,</b>in VA43 transaction .....and ....
i want the service order fields...
reply soon..
thanks in advanceHi
Pass the contract number EBELN and Item EBELP to ESLH table and take the Service pack number
<b>or from EKPO take the AUFNR field (order No) and goto AFKO and AFPO and take the details</b>
Reward points for useful Answers
Regards
Anji -
Selection-Screen Parameter and select option
Hi
I had a very small and silly problem , i have a selection screen in which i had one select-options and another parameter .
when i define both variable as select option i get output but if i define plant as parameter i dont get any output, .the code .
SELECTION-SCREEN : BEGIN OF BLOCK s_screen WITH FRAME TITLE text-001.
SELECT-OPTIONS: s_matnr FOR plaf-matnr.", " OBLIGATORY,
PARAMETERS: s_werks like plaf-pwwrk. " , " OBLIGATORY.
SELECTION-SCREEN: END OF BLOCK s_screen.
in this code when
i enter material number i dont get output .
i enter plant the i get output
SELECT afko~aufnr
afko~gamng
afko~plnbez
afpo~dwerk
afpo~psmng
afpo~matnr
INTO CORRESPONDING FIELDS OF TABLE i_afko
FROM afko INNER JOIN
afpo ON afpoaufnr = afkoaufnr
WHERE afpo~dwerk = s_werks
and afpo~matnr IN s_matnr
AND afpo~elikz = space.
regards
answers will be definately awarded pointsHi
When you use the plant in select-option, your code should be:
WHERE afpo~dwerk IN s_werks
and afpo~matnr IN s_matnr
if it's parameter:
WHERE afpo~dwerk = s_werks
and afpo~matnr IN s_matnr
Are u sayng in the first case you get the data and in the second one you don't?
Max -
Map BATCH number corresponding to ORDER number and Material number .
hi all,
i want to map the BATCH number corresponding to Material Number .
i searched tables MCHA which has two fields Material number and Batch number but it doenot have Order number.
so how can i get Batch number as in table AFPO/AFKO i have all these three fields batch/material/order numbers.
but the batch number column is blank for all .
and in case of table MCHA , these is assigned batch number to every Material number .
also i want to ask , either the Material number in both tables (MCHA AND AFPO) is same or different as i didnot found any relation to map these three field by other fields too.
so please suggest me the Possible way to resolve this .....
sunnyhi dsk,
thanks for your earliar reply,
actually iam working on sapscript there i want to add batch number ,but i am not able to clear my doubt from where i get this.
how can i map batch number with corresponding to PO num ber, '
in the report i used structure vbplp with field charg"(batch num).
also i want to know from which table i can get customer part number and Po number .
how can i add batch num ,..
from which table or with which field i can compare itr to get .
sunny -
Delivery dates and scheduled dates ??
Hi,
Is there a T code to view all (for certain period - weeks, months) the delivery dates for the sales orders from a particular customer and corresponding scheduled dates (from the production orders) ??
Thanks in advance
Regards,
PSSHi
Please try to use SE16 transaction and check the table AUFK,AFKO
and AFPO
I think you will get the information -
Open Production Order with Mark for deletion
Hi
Friends again stuck in open production order
i want to calculate production order quantity for open production order,
only those production order which dont have mark for deletion.
I find a field in afpo XLOEK ..but it wont get reflects when done changes in CO02
Then i used the table JEST and i want to delete those aufnr which has deletion flag i wrote the folowing code pls do correct me where iam wrong .
IN this code deletes aufnr which are marked as deletion ?
SELECT afko~aufnr
afko~gamng
afko~plnbez
afpo~dwerk
afpo~psmng
afpo~matnr
INTO CORRESPONDING FIELDS OF TABLE i_afko
FROM afko INNER JOIN
afpo ON afpoaufnr = afkoaufnr
WHERE afpo~dwerk = s_werks
AND afpo~matnr IN s_matnr
AND afpo~elikz = space.
LOOP AT i_afko.
CONCATENATE 'OR' i_afko-aufnr INTO i_afko-aufnr.
MODIFY i_afko.
ENDLOOP.
IF NOT i_afko[] IS INITIAL.
SELECT jest~objnr
jest~stat
jest~inact
INTO CORRESPONDING FIELDS OF TABLE i_jest
FROM jest
FOR ALL ENTRIES IN i_afko
WHERE objnr = i_afko-aufnr.
ENDIF.
LOOP AT i_jest INTO wa_ijest.
IF wa_ijest-stat = 'I0076' and ( wa_ijest-inact = SPACE ).
DELETE i_afko WHERE aufnr = wa_ijest-objnr.
ENDIF.
ENDLOOP.
i_afko1[] = i_afko[].
SORT i_afko BY matnr dwerk.
DELETE ADJACENT DUPLICATES FROM i_afko COMPARING matnr dwerk.
loop ....
calculate :quantity
endloop.
Regards and answers will be rewarded pointsthnks
solved the problem
regards -
I was hoping someone could help me out. I need to create an ABAP extractor that pulls data from twelve R3 tables and loads it into a single table for transfer to BW. The data is Production Order data and it needs to be reported at the OPERATION level. I have created a simple ABAP "report" that collects the information but I am not sure how to convert it to a extraction program. I know that a select statement that does an "Inner Join" on these tables is likely necessary, and I understand how to join most of the tables in this statement, but I do not know how to join all of them (or if that would be the best way to do it). I have included the ABAP report code below so you can see the combination of information I need. Any help in formulating the code to properly join the tables and create an internal table would be GREATLY appreciated. Thank you. Dave Burrows
REPORT ZBW_PO_DRILL_DOWN NO STANDARD PAGE HEADING LINE-SIZE 650.
TABLES:
AFKO, "Order header data PP orders
AFVC, "Operation within an order
JEST, "Object status
TJ02T, "System status texts
AFPO, "Order item
AFRU, "Order completion confirmations
CRHD, "Work Center Header
AUAK, "Document Header for Settlement
MAKT, "Material Descriptions
MARC, "Plant data for material
T024D, "MRP Controllers
AUFK. "Order Master Data
selection screen
SELECTION-SCREEN BEGIN OF BLOCK b00 WITH FRAME TITLE text-b00.
SELECTION-SCREEN BEGIN OF BLOCK b02 WITH FRAME TITLE text-b01.
PARAMETERS: mrpcntlr LIKE MARC-DISPO OBLIGATORY DEFAULT '001'.
SELECTION-SCREEN END OF BLOCK b02.
SELECTION-SCREEN END OF BLOCK b00.
DATA: W_STATUS(15),
OP_STATUS(15),
JOB_STATUS(15),
W_OBJNR(14),
W_PRODQTY LIKE AFPO-WEMNG,
W_REMAINING_QTY,
W_CALC_PROD_TM LIKE MARC-DZEIT.
FIELD-GROUPS: HEADER.
SELECT * FROM AFKO WHERE
DISPO = MRPCNTLR
ORDER BY AUFNR.
CONCATENATE 'OR' AFKO-AUFNR INTO W_OBJNR.
W_OBJNR = AFKO-AUFNR.
SELECT SINGLE * FROM T024D WHERE DISPO = AFKO-DISPO.
SELECT SINGLE * FROM AUFK WHERE AUFNR = AFKO-AUFNR.
SELECT SINGLE * FROM AUAK WHERE OBJNR = W_OBJNR.
SELECT SINGLE * FROM AFPO WHERE AUFNR = AFKO-AUFNR.
IF AFPO-PSMNG >= AFPO-WEMNG.
W_REMAINING_QTY = AFPO-PSMNG - AFPO-WEMNG.
ELSE.
W_REMAINING_QTY = 0.
ENDIF.
SELECT SINGLE * FROM MARC
WHERE MATNR = AFPO-MATNR
AND WERKS = AFPO-DWERK.
IF MARC-DZEIT <= 0.
W_CALC_PROD_TM = MARC-RUEZT + MARC-TRANZ + MARC-BEARZ.
ELSE.
W_CALC_PROD_TM = MARC-DZEIT.
ENDIF.
SELECT SINGLE * FROM MAKT WHERE MATNR = AFPO-MATNR.
SELECT * FROM AFVC WHERE AUFPL = AFKO-AUFPL.
SELECT * FROM JEST WHERE
OBJNR = AFVC-OBJNR AND
INACT = SPACE.
ENDSELECT.
SELECT * FROM TJ02T WHERE ISTAT = JEST-STAT
AND SPRAS = 'E'.
ENDSELECT.
CLEAR W_PRODQTY.
SELECT * FROM AFRU WHERE RUECK = AFVC-RUECK AND
STOKZ NE 'X' AND
STZHL EQ '0'.
W_PRODQTY = W_PRODQTY + AFRU-LMNGA.
ENDSELECT.
SELECT SINGLE * FROM CRHD WHERE OBJID = AFVC-ARBID.
WRITE: /002 AFPO-DWERK, "Plant
008 AFPO-PROJN, "Program
028 AFPO-DAUAT, "Order Type
038 AFKO-DISPO, "MRP Controller
050 AFKO-AUFNR, "PO No.
060 AFPO-MATNR, "Material No.
080 MAKT-MAKTX, "Material Desc.
125 AFKO-GSTRP, "Order Start Date
137 AFKO-GLTRP, "Order End Date
150 JOB_STATUS, "Order Status Code
166 CRHD-ARBPL, "Work Center
175 AFVC-VORNR, "Operation
183(10) W_STATUS, "Work Status (not used)
195(12) W_PRODQTY, "Confirm Qty
208(12) AFKO-GAMNG, "Order Qty
222(12) AFPO-WEMNG, "Received Qty
237 JEST-STAT, "Order Status
251 TJ02T-TXT04, "Order Status Code Text
259 MARC-DZEIT, "Production Time
269 MARC-RUEZT, "Setup Time
279 MARC-TRANZ, "Interoperation Time
289 MARC-BEARZ, "Processing Time
299 W_CALC_PROD_TM, "Calculated Production Time
319 AFRU-ISDD, "Execution Date
335 AFRU-BUDAT, "Confirmation Date
350 W_REMAINING_QTY, "Remaining Qty
358 AFKO-FTRMS, "Release Date
370 AFKO-GSTRI, "Actual Start Date
383 AFKO-GETRI, "Confirmed Order Finish Date
395 AFKO-GLTRI, "Actual Finish Date
410 MARC-BESKZ, "Procurement Type
420 T024D-DSNAM, "Controller Name
440 AUFK-AEDAT, "Change Date
452 AFKO-FTRMI, "Actual Release Date
470 MARC-BASMG, "Base Qty
490 AFVC-PLNKN, "Total number of operations
500 AFRU-AUFPL, "Routing No.
512 AFVC-RUECK, "Confirmation No.
525 AFRU-RUECK, "Confirmation No.
537 AFRU-AUERU, "Final Confirmation Indicator
540 AFPO-PSMNG, "Order Qty
560 AFVC-OBJNR. "Object No.
ENDSELECT.
ENDSELECT.
TOP-OF-PAGE.
ULINE.
WRITE: /002 'Plant',
008 'Program',
028 'Order_Typ',
038 'MRP_Cntlr',
050 ' PO_No',
060 'Material',
080 'Material_Desc',
125 'Order_Start',
137 'Order_End',
150 'Status',
166 'Work_Ctr',
175 'Op',
182 'Op_Status',
199 ' Confirm_Qty',
211 ' Order_Qty',
227 'Recd_Qty',
237 'Order_Stat',
249 'Stat_Cde',
259 'Prod_time',
269 'Setup_tm',
279 'Intop_tm',
289 'Proc_tm',
299 'Calc_tm',
319 'Exe_Dt',
335 'Cnf_Dt',
350 'Rem_Qty',
358 'Rel_Dt',
370 'Act_Strt_Dt',
383 'Cnf_Fin_Dt',
395 'Act_Fin_Dt',
407 'Proc_typ',
420 'Cntlr_Name',
440 'Chng_Dt',
452 'Act_Rel_Dt',
480 'Base_Qty',
490 'No_Ops',
500 'Routing_No',
512 'Cnf_No1',
525 'Cnf_No2',
537 'Cnf_Ind',
547 'Order_Qty2',
564 'Object_No'.
WRITE: /001 ' AFPO', "Plant
008 ' AFPO', "Program
028 ' AFPO', "Order Type
038 ' AFKO', "MRP Controller
050 ' AFKO', "PO No.
060 ' AFPO', "Material No.
080 ' MAKT', "Material Desc.
125 ' AFKO', "Order Start Date
137 ' AFKO', "Order End Date
150 ' ', "Order Status Code
166 ' CRHD', "Work Center
175 ' AFVC', "Operation No.
182(10) ' ', "Work Status (not used)
201(12) ' ', "Confirm Qty
214(12) ' AFKO', "Order Qty
226(12) ' AFPO', "Received Qty
237 ' JEST', "Order Status
251 ' TJ02T', "Order Status Code Text
259 ' MARC', "Production Time
269 ' MARC', "Setup Time
279 ' MARC', "Interoperation Time
289 ' MARC', "Processing Time
299 ' ', "Calculated Production Time
319 ' AFRU', "Execution Date
335 ' AFRU', "Confirmation Date
350 ' ', "Remaining Qty
358 ' AFKO', "Release Date
370 ' AFKO', "Actual Start Date
383 ' AFKO', "Confirmed Order Finish Date
395 ' AFKO', "Actual Finish Date
408 ' MARC', "Procurement Type
420 ' T024D', "Controller Name
440 ' AUFK', "Change Date
452 ' AFKO', "Actual Release Date
480 ' MARC', "Base Qty
490 ' AFVC', "Total number of operations
500 ' AFRU', "Routing No.
512 ' AFVC', "Confirmation No.
525 ' AFRU', "Confirmation No.
537 ' AFRU', "Final Confirmation Indicator
547 ' AFPO', "Order Qty
564 ' AFVC'. "Object No.
WRITE: /001 '(DWERK)', "Plant
008 '(PROJN)', "Program
028 '(DAUAT)', "Order Type
038 '(DISPO)', "MRP Controller
050 '(AUFNR)', "PO No.
060 '(MATNR)', "Material No.
080 '(MAKTX)', "Material Desc.
125 '(GSTRP)', "Order Start Date
137 '(GLTRP)', "Order End Date
150 'VAR', "Order Status Code
166 '(ARBPL)', "Work Center
175 '(VORNR)', "Operation No.
182(10) 'VAR', "Work Status (not used)
201(12) 'VAR', "Confirm Qty
214(12) '(GAMNG)', "Order Qty
226(12) '(WEMNG)', "Received Qty
237 '(STAT)', "Order Status
251 '(TXT04)', "Order Status Code Text
259 '(DZEIT)', "Production Time
269 '(RUEZT)', "Setup Time
279 '(TRANZ)', "Interoperation Time
289 '(BEARZ)', "Processing Time
299 'VAR', "Calculated Production Time
319 '(ISDD)', "Execution Date
335 '(BUDAT)', "Confirmation Date
350 'VAR', "Remaining Qty
358 '(FTRMS)', "Release Date
370 '(GSTRI)', "Actual Start Date
383 '(GETRI)', "Confirmed Order Finish Date
395 '(GLTRI)', "Actual Finish Date
408 '(BESKZ)', "Procurement Type
420 '(DSNAM)', "Controller Name
440 '(AEDAT)', "Change Date
452 '(FTRMI)', "Actual Release Date
480 '(BASMG)', "Base Qty
490 '(PLNKN)', "Total number of operations
500 '(AUFPL)', "Routing No.
512 '(RUECK1)', "Confirmation No.
525 '(RUECK2)', "Confirmation No.
537 '(AUERU)', "Final Confirmation Indicator
547 '(PSMNG)', "Order Qty
564 '(OBJNR)'. "Object No.
ULINE.
SKIP.
INITIALIZATION.Ryan, Thank you for your response. Actually my problem really is how to get the data together into a single table. The code I originally listed doesn't do any "proper" joins and isn't suitable as-is for a Function Module. And as you said it would be good to add a date field to enable deltas. Below is my stab at writing the code to combine the data into a single table. I have commented out the lines that do not work. I am not sure how to combine this data in the same way as my original code but with proper joins. Any help would be appreciated.
REPORT ZBW_PO_DETAIL line-size 400 line-count 65.
TABLES: afru, crhd, afvc, afpo, aufk, afko, mara, marc, zafru.
TYPES: BEGIN OF GT_PODETAIL,
BUDAT LIKE AFRU-BUDAT, "Confirmation Date
ISDD LIKE AFRU-ISDD, "Execution Date
AUFPL LIKE AFRU-AUFPL, "Routing No.
RUECK2 LIKE AFRU-RUECK, "Confirmation No.
AUERU LIKE AFRU-AUERU, "Final Confirmation Indicator
ARBPL LIKE CRHD-ARBPL, "Work Center
PLNKN LIKE AFVC-PLNKN, "Total number of operations
RUECK1 LIKE AFVC-RUECK, "Confirmation No.
OBJNR LIKE AFVC-OBJNR, "Object No.
VORNR LIKE AFVC-VORNR, "Operation
AUFNR1 LIKE AFPO-AUFNR, "order #
POSNR LIKE AFPO-POSNR, "order item number
DAUAT LIKE AFPO-DAUAT, "order type
MATNR LIKE AFPO-MATNR, "material number of order
DWERK LIKE AFPO-DWERK, "plant
PSMNG LIKE AFPO-PSMNG, "order item quantity
WEMNG LIKE AFPO-WEMNG, "goods rec'd qty for order item
AMEIN LIKE AFPO-AMEIN, "UOM for in-house production
PROJN LIKE AFPO-PROJN, "Program
AEDAT LIKE AUFK-AEDAT, "Change Date
FTRMS LIKE AFKO-FTRMS, "scheduled release date
GLTRS LIKE AFKO-GLTRS, "scheduled finish date
GSTRS LIKE AFKO-GSTRS, "scheduled start date
GSTRI LIKE AFKO-GSTRI, "actual start date
GETRI LIKE AFKO-GETRI, "confirmed order finish date
GLTRI LIKE AFKO-GLTRI, "actual finish date
FTRMI LIKE AFKO-FTRMI, "actual release date
DISPO1 LIKE AFKO-DISPO, "MRP Controller
AUFNR2 LIKE AFKO-AUFNR, "PO No.
GSTRP LIKE AFKO-GSTRP, "Order Start Date
GLTRP LIKE AFKO-GLTRP, "Order End Date
GAMNG LIKE AFKO-GAMNG, "Order Qty
MFRPN LIKE MARA-MFRPN, "manufacturer part number
BESKZ LIKE MARC-BESKZ, "procurement type
DISPO2 LIKE MARC-DISPO, "MRP controller
DZEIT LIKE MARC-DZEIT, "Production Time
RUEZT LIKE MARC-RUEZT, "Setup Time
TRANZ LIKE MARC-TRANZ, "Interoperation Time
BEARZ LIKE MARC-BEARZ, "Processing Time
BASMG LIKE MARC-BASMG, "Base Qty
ZSERNR LIKE ZAFRU-SERNR, "Serial No.
END OF GT_PODETAIL.
*used to build PO Detail internal table
DATA: GT_PODETL TYPE STANDARD TABLE OF GT_PODETAIL WITH HEADER LINE.
DATA GVD_INITDATE LIKE SY-DATUM.
DATA: GVD_DATE LIKE AUFK-AEDAT, "change date
GVT_TIME LIKE AUFK-AEZEIT. "change time
*clear GT_PODETL.
select ABUDAT AISDD AAUFPL ARUECK A~AUERU
B~ARBPL
CPLNKN CRUECK COBJNR CVORNR
DAUFNR DPOSNR DDAUAT DMATNR DDWERK DPSMNG D~WEMNG
DAMEIN DPROJN
E~AEDAT
FFTRMS FGLTRS FGSTRS FGSTRI FGETRI FGLTRI F~FTRMI
FDISPO FAUFNR FGSTRP FGLTRP F~GAMNG
G~MFRPN
HBESKZ HDISPO HDZEIT HRUEZT HTRANZ HBEARZ H~BASMG
I~MAKTX
Z~SERNR
into corresponding fields of table GT_PODETL
from AFRU AS A
inner join CRHD AS B on AARBID = BOBJID
inner join AFVC AS C on AAUFPL = CAUFPL
and AAPLZL = CAPLZL
inner join AFPO AS D on AAUFNR = DAUFNR
inner join AUFK AS E on AAUFNR = EAUFNR
inner join AFKO AS F on AAUFNR = FAUFNR
inner join MARA AS G on AMATNR = GMATNR
inner join MARC AS H on AMATNR = HMATNR
and ADWERK = HWERKS
inner join MAKT AS I on AMATNR = IMATNR
left outer join ZAFRU AS Z on ARUECK = ZRUECK
and ARMZHL = ZRMZHL
where ( F~FTRMI ne GVD_INITDATE
and D~XLOEK ne 1
and ( DDAUAT eq 'ZP01' or DDAUAT EQ 'ZP02' or
DDAUAT eq 'ZCNR' or DDAUAT EQ 'ZCNV' ) )
and ( E~AEDAT lt GVD_DATE
or ( EAEDAT eq GVD_DATE and EAEZEIT le GVT_TIME ) ).
refresh non-depot data in db table
delete from ZBW_PO_DETAIL.
insert ZBW_PO_DETAIL from table GT_PODETL.
commit work.
Maybe you are looking for
-
Visual studion 2005 Master details report
Post Author: shaicrsytal CA Forum: .NET Dear All, I have 2 tables one is student and one is studentResults. So I want to build a report where the header details comes from the student table and the details should come from the studentResu
-
Connect to SAP gateway failed - internal error
Hi, I've developed a simple .NET application that connects to a SAP system and makes a function call using a SAP Connector Proxy object. Everything works fine in my workstation, but deployment doesn't. I'm also deploying the following libraries: SAP.
-
I have used Time machine back up and as I wish to delets photos on my I mac I want to confirm that I have backed up ok. However when I go into Time Machine and attempt to open I photo I get the message ' cant see becasue its in a time machine back up
-
I want to display a tool tip for the values in a selection list in a HTML form in a JSP page. I have tried setting the title attribute on option tag but it does not work. Does anyone know how to do this? Thank you in advance
-
Is there any way to open a site created using iWeb to edit in Muse CC?