Production order for a multiple materials codes...
Dear...
Could you please suggest me the SAP solution for the below production strategy.
This production process is of heat treatment. Actually I am doing heat treatment of Cast and Forge items. These items weights are in the range of 150 kgs to 40000kgs. For example I am having a 40 tons heat treatment furnace. So at a time I can load the materials upto 40 tons. I am having different materials of different sizes and chemical compositions. But heat treatment cycle(Routing) is same. So I can load different types of materials i.e. upto 40tons for the heat treatment for which same type of heat treatment is required. Sometimes this may be a single item .. if the weight of the items is 40 tons. If it is single item...then there is no problem. If I am loading different items...and if execution process is same for all the items, then how can I map this in the SAP. So that I can create a single order for different Items of different materials and quantity. I need to do the confirmation of these items with respect to the same item. Please suggest me...how can we map this scenario into the SAP.
Thanks in advance.
Regards,
Surya.
Hi surya,
As per the heat treatment process concern, total cycle time is constant, and load is also constant (if we havenot changed).
i hope u have defined workcenter formula and routing accordingly.
i think creating single production order for multiple material is not possible, instead of thsi, i would suggest one way,
> Since u have to maintain stock for Heatreated items, create sepearte Material code for each item to be heatreated.
> Create BOM ,Routing for New Material code.
> Acitvate Batch management for New Material Code has been created.
>Now create Production order for each material to be processed in one cycle, Assign the Batch Number manually.Batch number repersents your Heat treatment cycle number and same can de used for traceability.
>Confirm the each order seperately, Now the Heatrement process cost will be updated and stock will be posted to heatreated storage loaction.
But i am worrying about capacity planning and scheduling, For my knowlegde purpose i would like to know your existing scenoria, like workcenter formula and routing operation values has been assigned , if u wish plz share with us.
Please come back with your ideas..
regards
Pradeep
Similar Messages
-
Reservation problem in production order for PIPE line materials
while releasing the specific production order reservation number generated but in generated reservation pipe line materials are not existig hence while doing confimation as backflush indicator activated hence this got stucked in COGI.
On observation found this specific order generated with refernce to other oreder which is not confirmed yet.
& for the same materials orders been created for long time they got confirmed successfully with goods movement.
what could be reason for this order ,please suggest to over come this.please cancel this question
-
In the production order for 1 of the component material no 261 movement
Hi SAP Gurus,
In the production order out of 8 components for 1 of the component material 261 movement is not happening ( Not getting backflushed) Please give some input on this issue.
Thanks and Regards,
SHARAN.Hi Dhaval,
In MRP2 view the backflush indicator has been set. But in the parent material BOM setup this material itself not there I informed the user about this, please refer the below user comment ( In BOM the material:Q7829-60184 is appearing and mat:Q7829-60140 not there in BOM, in production order for both the materials 261 movement not happened ) Please give your input on this issue.
Hi Sharanappa
We just did a PCO roll PCO #4619999R3 on Tuesday 30th Dec.
From Q7829-60140 to Q7829-60184
All options for Q7840A, Q7829A, Q7830A (except #ACJ, already completed), Q7831A.
That's why you are not able to see the part in BOM
How can we rectify this from here?
Thanks and Regards,
SHARANAPPA. -
How to create production order for multiple items having common raw materia
Dear all,
We are running a sheet metal fabrication company at Vadodara Gujrat.
Please guide us how to create single production order for multiple items using single raw material??
For example, We want to produce baby shirt(item code AAA001), shirt with full sleeve(item code AAA002), shirt with half sleeve(item code AAA003),shirt slim fit (item code AAA004),shirt loose fit(item code AAA005) from single raw material say(item code XXX001).
Right now we have to create 5 production order to produce above 5 items of single sales order in SAP B1 though it is made from single raw material which is foolishness and time consuming too. (Please also note that to produce any finfish good item, raw material required for that item may vary every time in our process.)
Kindly guide us how to solve the problem.
Thanks.
RUPESH +91-9227744273
WEB : www.gorasia.co.inHi Rupesh Gorashiya,
This is possible through MRP for that you have to put Sales Order first and Run MRP Wizard
MRP Wizard Put Multi Production Order as per Item Taking in Sales Order just click it on and execute.
Thanks,
Srujal Patel -
How do we do production orders for same item code in different sizes
Hi,
We have Items which we buy as a single sheet of material and our customers can ask for us to cut the complete sheet into different sizes before despatching it. i.e
Item Code Sheet1: Sheet size 100mm x 100mm
Customer asks for sheet to be cut into 10 off 10mm x 10mm sheets, which we presently put on the sales order as a line note
We then generate a production order for this item and indicate on the production order printout the line note
We've recently had a customer who has asked for Item 1 in two different sizes on the same sales order ie
Order Line 1 Sheet1 Qty:1 Line note: cut into 10mm x 10mm sheets
Order Line 2 Sheet1 Qty:1 Line note: cut into 50mm x 50mm sheets
When generating the Production order SAP combines the items into
Product No: Sheet1
Planned Qty: 2
Where as we want it to create 2 production orders 1 of each different sizes items.
I know I can create BOMs for those two sizes, but customers can ask for the sheets to be cut to whatever size they want. Is the best method to create BOMs on the fly for each different sizing option or are there alternative methods that are easier to manage ?
Thanks
CarlHi Carl Rutter,
You have to creat 2 special production order for this item. when issue the component make sure you issue the stock as per the cosumption becaue one have 10mmx10mm and the another item have 50x50 in this case you issue component by square inch wise. for example 10*10 = 100 squre inch.
50*50 = 2500 square inch so the cost will be approtionate. you can Use multiple uom method to obtain this, other wise you have covert into stock then you issue the component. If you want traxk size wise ,you can use batch option for Finishe goods.
Regards
Sridharan -
Single production order for many materials
Dear Experts,
We can create a single purchase order for many materials. Like wise can we create a single production order for many materials which is produced from single raw material in same operation?
Thnaks,
ChetanChetan,
You can not create a single production order for multiple materials.
However, the workaround would be create one material as BOM header and and assign the remaining materials (for which you want to have production order) as BOM components with by-product or co-product. With this you can receive all the materials against one single production order.
This will have implication in many areas like planning and costing.
Evaluate the option with your FICO consultant also, before going ahead.
Regards,
Himanshu -
How do we Prevent Creation of Production Orders for Phantom materials.
Dear Experts;
We have some materials which are Phantoms.
We have set "special procurement type" as 50 in MRP2 and "Strategy Group" as 59 in MRP3
These are non stchable items, but have BOMS.
We dont create orders for them, however at the mement the system allows order creation. How do we prevent creation of production orders for these items in the system.
Thanks in Advance
Richard.Dear Richard,
Check using this BADI - WORKORDER_UPDATE using method IN_UPDATE or Release by including a check if MATNR and for
WERKS combination if SOBSL = 50 from table MARC,then do not allow to save.
Check whether this works or else you have to set a plant specific status using OMS4 for not allowing production order
creation and assign this value in the material master of the phantom assemblies.
Check and revert
Regards
Mangalraj.S -
Create auotmatic purchase order for non stock materials
Hi,
Please provide me information on how to create automtaic purchase order for non stock materials in MM system.
RegardsHi,
For automatic PO creation follow the steps.
1) Material Master purchasing view tick automatic PO check box (Material type NLAG)
2) Vendor Master purchasing view tick automatic PO check box.
3) Maintain Source list for Vendor & Material.
4) Maintain Purchase Info Record.
5) Create a Purchase Requisition.
6) Use T.Code: ME59N & execute for PR for vendor, you will be able to create automatic PO.
Note
Ensure that Purchase Info Record should be there.
If you have more than one vendor then fixes only one vendor in source list.
During PR creation select source determination check box.
SAM -
Create a Production order for rework
Hi,
I would like to create a Production order for rework.
But I don't want to do it in the master PO with trigger point.
I would like to create a new PO for rework and asign to account to the old or master PO.
I've tried to do it but I want to know if it's correct.
CO07, maintained the qty, in the settlement rule maintained (category= order,settlement reciever= master PO number) released the order and by confirmation where can I maintain the qty? (as Yield or as rework qty)
ThanksHi,
Use T code CO07- creation of PO w/o material, settelment rule as u mentioned and the quantity has to be maintained in rework.
When u confirmed the order and settel it, it will be settel againts the main order.
Regards
JDB -
Goods Issue Production Order for Confirmed Qty Component
Dear PP Gurus,
Here is my case :
Stock Qty for Sparepart A : 100 un
First production will require 80 un A, and availability check confirmed. Second Production Order will require 70 un A, where 20 un confirmed and 50 un is not confirmed on availability check. When i try to goods issue the second production order, it is allowed to consumed all 70 un because unrestricted stock is 100. How can i forbid goods issue in second production order only for 20 un A which is confirmed before.
Thanks,
Arman LieDear
First of all what ever qty u release during production it well get copied in confirmation so as u said first production order is 80 so the balance qty is 20 out of 100 units so for 20 production order is confirmed so u need another production order for 70 in that case u have deflicit stock of 50 so for that reason ur production order not get confirmed for 50 in order to confirm this order u need t make a stock of 50.
1. check in the OPK4 enable the actual qty
2.check t-code OPJK Checking Rule and check when material availability when saving the order
and please check in the material master what availability check u have maintained in mrp
[http://help.sap.com/erp2005_ehp_04/helpdata/EN/cf/70124adf2d11d1b55e0000e82de178/frameset.htm]
With Regards
Pushpalas -
Cannot release production order for a plant
Hi:
When I try to release a process order , I get this error message:
"CAnnot release production order for plant".
I get this message for a particular material in the plant. For other materials, it's working fine.
Please give your suggestions!
GauthamHi,
Check the Tasklist usage for your routing for that material.
For this usage ,check in op45 against the task list type whether until release indicator has been enabled.If so remove
and do the release.
or
check whether workcenter which is used for producing the material has been locked in work center itself.
Indicator: Usage only until release in orderIndicator used to specify for a task list usage and a task list type that an operation in the order cannot be released. This occurs when a work center group that is not intended for production is allocated to this operation.
When this type of operation in the order is released you must enter the work center where production should take place.
Regards,
nandha -
Production order for configurable subassemblies
Dear experts,
we have a situation with configurable end products with very complex multilevel BOM, were some of the assemblies and subassemblies on the lower levels (1, 2, 3 etc.) are configurable materials too.
The SOP planning strategy is 56 (or 89). The MRP planning run results in planned orders for the MTS details and PIR's for the configurable materials.
The question is: is it possible to manualy create planned (production) orders for the configurable subassemblies before the sales order? How can we manualy valuate the characteristics of the subassemblies?
Thank you in advance,
PeterHi,
Characteristics Based Planning will let you create demand for lower level assemblies to drive in inventory for commonly used components or raw materials prior to receiving a firm customer order for a finished assembly.
Please refer the following SAP link to know more about Characteristics Based Planning
http://help.sap.com/saphelp_erp2004/helpdata/EN/75/504853a39a11d191930000e8a5f6e6/frameset.htm
Regards,
Brahmaji D -
Production Order For Project with plant stock
Hi,
We have a scenario where in we are required to create a production order for a project.
But the material(raw material) is in a storage location and is a stock item. Even the header material is also a stock item and it to stored in the storage location.
But the order is to be created for Project and to be settled to the Project. Now the system is not allowing me to create the order.
The error is :
"Project does not allow make-to-order stock
Message no. CO746
Diagnosis
There is no project stock for the project.
To create a production order with reference to a WBS element the project must allow project stock to be maintained.
Procedure
You should select a project that allows project stock."
Now,
I don't want to have a project stock. How to go forward...
Regards
PavanHi,
What is the strategy you are using. If you are using strategy 20, then chnage it to 40.
Also maintain individual/collective indicator to "1" - individual in MRP-4 view. So that when the order is created, the stock will be reserved as Q-project stock.
thanks and regards
Murugesan -
Production Order for a material without BOM and Routing
Is it possible to create a production order for a given material without routing and BOM, I know we can
create a production order for a material without a BOM (with a default routing) just wanted to check with
the above criteria
Thanks in Advance!!Members:
Thank you for your valuable replies and time
Santosh:
Tried what you have mentioned, but system still picks up a default routing
Kaushik:
Maintained Default values in OPJG for the given order type, but system still picks up
default routing
Mangalraj:
have no issue in creating a production order without a BOM, but I am trying to see
is there a way where I can create a production order without a BOM and routing (not
even default operation )
Any suggestions on how to create a production order for a material without a BOM
and routing (not even default one ) -
How to get all production orders for a workcenter
Hello ...
I have a requirement to create a report of all production orders for a given workcenter. The user enters the workcenter (CRHD-ARBPL), plant (CRHD-WERKS) and a date range, and wants to see a list of orders (AUFNR) that fall within that date range along with some other data from AFKO and AFPO.
I can't figure out a good, consistent way to get from workcenter to production orders.
Any ideas?
Thanks!
SharonHi there check this program for relation between SO PO and Production order
REPORT z_so_info.
TABLES: vbak, vbap, afko, afpo.
*Field catalog
TYPE-POOLS: slis.
DATA: lv_repid TYPE sy-repid VALUE sy-repid,
xfield TYPE slis_t_fieldcat_alv,
afield TYPE slis_fieldcat_alv.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(25) text-002.
SELECT-OPTIONS: so_so FOR vbak-vbeln OBLIGATORY.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK b1.
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-003.
PARAMETERS:
p_kunnr LIKE vbak-kunnr, " sold-to
p_kunwe LIKE vbak-kunnr. " ship-to
SELECTION-SCREEN END OF BLOCK b2.
*Constants
CONSTANTS: c_zor TYPE vbak-auart VALUE 'ZOR',
c_we TYPE vbpa-parvw VALUE 'WE',
c_ag TYPE vbpa-parvw VALUE 'AG'.
* c_space TYPE space.
*Ranges
RANGES: ra_parvw FOR vbpa-parvw,
ra_kunnr FOR vbpa-kunnr.
*Tables
DATA: BEGIN OF gt_output OCCURS 0,
vbeln LIKE vbak-vbeln, " sales order number
posnr LIKE vbap-posnr, " SO item number
matnr LIKE vbap-matnr, " material number
sh LIKE vbpa-kunnr, " Ship-to
sp LIKE vbpa-kunnr, " Sold-to
lifnr LIKE ekko-lifnr, " Vendor
bstnk LIKE vbak-bstnk, " PO number
banfn LIKE vbep-banfn, " Purchase requi
po_st TYPE char30, " PO status text
pstyv TYPE vbap-pstyv, " Item catagory
aufnr LIKE afpo-aufnr, " Production Order
prd_stat TYPE string, " Prd order status
END OF gt_output.
DATA: wa_output LIKE gt_output.
FIELD-SYMBOLS: <fs_output> LIKE gt_output.
*Table for sales order and PO
TYPES : BEGIN OF gs_data,
vbeln TYPE vbak-vbeln,
posnr TYPE vbap-posnr,
pstyv TYPE vbap-pstyv,
matnr TYPE vbap-matnr,
END OF gs_data.
DATA: gt_data TYPE STANDARD TABLE OF gs_data,
wa_data TYPE gs_data.
*Table for Production Orders
TYPES: BEGIN OF gs_prd,
aufnr TYPE afpo-aufnr,
posnr TYPE afpo-posnr,
kdauf TYPE afpo-kdauf,
kdpos TYPE afpo-kdpos,
wepos TYPE afpo-wepos, "Goods Receipt Indicator
elikz TYPE afpo-elikz, "Delivery Completed Indicator
objnr TYPE aufk-objnr, "Object number
* getri TYPE afko-getri, "Confirmed Order Finish Date
* gltri TYPE afko-gltri, "Actual finish date
END OF gs_prd.
DATA: gt_prd TYPE STANDARD TABLE OF gs_prd,
wa_prd TYPE gs_prd.
*Table for partner data
TYPES: BEGIN OF gs_partner,
vbeln TYPE vbak-vbeln,
posnr TYPE vbap-posnr,
parvw TYPE vbpa-parvw,
kunnr TYPE vbpa-kunnr,
END OF gs_partner.
DATA: gt_partner TYPE STANDARD TABLE OF gs_partner,
wa_partner TYPE gs_partner.
TYPES: BEGIN OF gs_po,
ebeln TYPE ekkn-ebeln,
ebelp TYPE ekkn-ebelp,
vbeln TYPE ekkn-vbeln,
vbelp TYPE ekkn-vbelp,
END OF gs_po.
DATA: gt_po TYPE STANDARD TABLE OF gs_po,
wa_po TYPE gs_po.
TYPES: BEGIN OF gs_preq,
vbeln TYPE vbep-vbeln,
posnr TYPE vbep-posnr,
banfn TYPE vbep-banfn,
END OF gs_preq.
DATA: gt_preq TYPE STANDARD TABLE OF gs_preq,
wa_preq TYPE gs_preq.
TYPES: BEGIN OF gs_po_stat,
ebeln TYPE ekko-ebeln,
procstat TYPE ekko-procstat,
lifnr TYPE ekko-lifnr,
END OF gs_po_stat.
DATA: gt_po_stat TYPE STANDARD TABLE OF gs_po_stat,
wa_po_stat TYPE gs_po_stat.
*Field symbols
FIELD-SYMBOLS: <fs> TYPE tj02t-txt04,
<fs_temp> TYPE tj02t-txt04,
<fs_stat> TYPE char30.
START-OF-SELECTION.
PERFORM fr_build_range.
PERFORM fr_get_data.
PERFORM fr_build_fc.
PERFORM fr_output.
*& Form fr_get_data
* text
* --> p1 text
* <-- p2 text
FORM fr_get_data.
*Get SO
SELECT a~vbeln a~posnr a~pstyv a~matnr
FROM vbap AS a
JOIN vbak AS b
ON a~vbeln = b~vbeln
JOIN vbpa AS c
ON b~vbeln = c~vbeln
INTO TABLE gt_data
WHERE b~vbeln IN so_so
AND b~auart EQ c_zor "Only Sales Orders
AND c~kunnr IN ra_kunnr. "from selection screen
DELETE ADJACENT DUPLICATES FROM gt_data COMPARING vbeln posnr.
*get data of the production order
IF NOT gt_data[] IS INITIAL.
SELECT a~aufnr a~posnr a~kdauf a~kdpos a~wepos a~elikz
b~objnr
FROM afpo AS a
JOIN aufk AS b
ON a~aufnr = b~aufnr
INTO TABLE gt_prd
FOR ALL ENTRIES IN gt_data
WHERE a~kdauf EQ gt_data-vbeln
AND a~kdpos EQ gt_data-posnr.
ENDIF.
*Get partner data
IF NOT gt_data[] IS INITIAL.
SELECT vbeln posnr parvw kunnr
FROM vbpa
INTO TABLE gt_partner
FOR ALL ENTRIES IN gt_data
WHERE vbeln EQ gt_data-vbeln.
ENDIF.
*Get Purchase Order
IF NOT gt_data[] IS INITIAL.
SELECT ebeln ebelp vbeln vbelp
FROM ekkn
INTO TABLE gt_po
FOR ALL ENTRIES IN gt_data
WHERE vbeln EQ gt_data-vbeln
AND vbelp EQ gt_data-posnr.
SELECT vbeln posnr banfn
FROM vbep
INTO TABLE gt_preq
FOR ALL ENTRIES IN gt_data
WHERE vbeln EQ gt_data-vbeln
AND posnr EQ gt_data-posnr.
ENDIF.
IF NOT gt_po[] IS INITIAL.
SELECT a~ebeln a~procstat a~lifnr
FROM ekko AS a
JOIN ekpo AS b
ON a~ebeln = b~ebeln
INTO TABLE gt_po_stat
FOR ALL ENTRIES IN gt_po
WHERE b~ebeln EQ gt_po-ebeln
AND b~ebelp EQ gt_po-ebelp.
ENDIF.
*Move data to output table
LOOP AT gt_data INTO wa_data.
wa_output-vbeln = wa_data-vbeln.
wa_output-posnr = wa_data-posnr.
wa_output-pstyv = wa_data-pstyv.
wa_output-matnr = wa_data-matnr.
READ TABLE gt_po INTO wa_po WITH KEY vbeln = wa_data-vbeln
vbelp = wa_data-posnr.
IF sy-subrc EQ 0.
wa_output-bstnk = wa_po-ebeln.
READ TABLE gt_po_stat INTO wa_po_stat WITH KEY ebeln = wa_po-ebeln.
IF sy-subrc EQ 0.
wa_output-lifnr = wa_po_stat-lifnr.
CASE wa_po_stat-procstat.
WHEN '01'.
wa_output-po_st = 'Version in process'.
WHEN '02'.
wa_output-po_st = 'Active'.
WHEN '03'.
wa_output-po_st = 'In release'.
WHEN '04'.
wa_output-po_st = 'Partially released'.
WHEN '05'.
wa_output-po_st = 'Released Completely'.
WHEN '08'.
wa_output-po_st = 'Rejected'.
ENDCASE.
ENDIF. "inner read subrc
ENDIF. "outer read subrc
READ TABLE gt_preq INTO wa_preq WITH KEY vbeln = wa_data-vbeln
posnr = wa_data-posnr.
IF sy-subrc EQ 0.
wa_output-banfn = wa_preq-banfn.
ENDIF.
READ TABLE gt_prd INTO wa_prd WITH KEY kdauf = wa_data-vbeln
kdpos = wa_data-posnr.
IF sy-subrc EQ 0.
wa_output-aufnr = wa_prd-aufnr.
*get the purchase requisition for production order as well
SELECT SINGLE banfn
FROM ebkn
INTO wa_output-banfn
WHERE aufnr EQ wa_prd-aufnr.
*Get the status of the production order
PERFORM fr_get_prd_stat USING wa_prd-objnr
CHANGING wa_output-prd_stat.
ENDIF. " sy-subrc
READ TABLE gt_partner INTO wa_partner WITH KEY vbeln = wa_data-vbeln
parvw = c_we.
IF sy-subrc EQ 0.
wa_output-sh = wa_partner-kunnr.
ENDIF.
READ TABLE gt_partner INTO wa_partner WITH KEY vbeln = wa_data-vbeln
parvw = c_ag.
IF sy-subrc EQ 0.
wa_output-sp = wa_partner-kunnr.
ENDIF.
APPEND wa_output TO gt_output.
CLEAR: wa_data, wa_prd,wa_partner,wa_output.
ENDLOOP.
ENDFORM. " fr_get_data
*& Form fr_build_range
* text
* --> p1 text
* <-- p2 text
FORM fr_build_range .
*Range for partner function
MOVE 'I' TO ra_parvw-sign.
MOVE 'EQ' TO ra_parvw-option.
MOVE 'SH' TO ra_parvw-low. " we
APPEND ra_parvw.
CLEAR ra_parvw.
MOVE 'I' TO ra_parvw-sign.
MOVE 'EQ' TO ra_parvw-option.
MOVE 'SP' TO ra_parvw-low. " ag
APPEND ra_parvw.
CLEAR ra_parvw.
*Range for ship-to and sold-to
MOVE 'I' TO ra_kunnr-sign.
MOVE 'EQ' TO ra_kunnr-option.
MOVE p_kunnr TO ra_kunnr-low.
APPEND ra_kunnr.
CLEAR ra_kunnr.
MOVE 'I' TO ra_kunnr-sign.
MOVE 'EQ' TO ra_kunnr-option.
MOVE p_kunwe TO ra_kunnr-low.
APPEND ra_kunnr.
CLEAR ra_kunnr.
ENDFORM. " fr_build_range
*& Form fr_build_fc
* text
* --> p1 text
* <-- p2 text
FORM fr_build_fc .
* sales order number
afield-fieldname = 'VBELN'.
afield-seltext_s = 'Sales #'.
afield-ref_tabname = 'VBAK'.
APPEND afield TO xfield. CLEAR afield.
* sales ITEM number
afield-fieldname = 'POSNR'.
afield-seltext_s = 'Item #'.
afield-ref_tabname = 'VBAP'.
APPEND afield TO xfield. CLEAR afield.
* Material Number
afield-fieldname = 'MATNR'.
afield-seltext_s = 'Material #'.
afield-ref_tabname = 'VBAP'.
afield-outputlen = 10.
APPEND afield TO xfield. CLEAR afield.
*Vendor Number
afield-fieldname = 'LIFNR'.
afield-seltext_s = 'Vendor Num.'.
afield-ref_tabname = 'EKKO'.
APPEND afield TO xfield. CLEAR afield.
* ship-to-party
afield-fieldname = 'SH'.
afield-seltext_s = 'Ship-to'.
afield-ref_tabname = 'VBPA'.
APPEND afield TO xfield. CLEAR afield.
* sold-to-party
afield-fieldname = 'SP'.
afield-seltext_s = 'Sold-to'.
afield-ref_tabname = 'VBPA'.
APPEND afield TO xfield. CLEAR afield.
*PO number
afield-fieldname = 'BSTNK'.
afield-seltext_s = 'PO NUM'.
afield-ref_tabname = 'EKKO'.
APPEND afield TO xfield. CLEAR afield.
*PO status
* afield-fieldname = 'PO_STAT'.
* afield-seltext_s = 'Step'.
* afield-ref_tabname = 'zbacklog_v2'.
* APPEND afield TO xfield. CLEAR afield.
*PO step status
afield-fieldname = 'PO_ST'.
afield-seltext_s = 'PO.Status'.
afield-ref_tabname = 'zbacklog_v2'.
APPEND afield TO xfield. CLEAR afield.
*Purchase requisition
afield-fieldname = 'BANFN'.
afield-seltext_s = 'Pur. Req.'.
afield-ref_tabname = 'VBEP'.
APPEND afield TO xfield. CLEAR afield.
*Item catagory
afield-fieldname = 'PSTYV'.
afield-seltext_s = 'Itm. Catg'.
afield-ref_tabname = 'VBAP'.
APPEND afield TO xfield. CLEAR afield.
*Prodcution Order number
afield-fieldname = 'AUFNR'.
afield-seltext_m = 'Prod.Order'.
afield-ref_tabname = 'AFKO'.
APPEND afield TO xfield. CLEAR afield.
*PRODCUTION status
afield-fieldname = 'PRD_STAT'.
afield-seltext_s = 'Prd. Step'.
afield-ref_tabname = 'zbacklog_v2'.
afield-outputlen = 20.
APPEND afield TO xfield. CLEAR afield.
*PRODUCTION step status
* afield-fieldname = 'PRD_ST'.
* afield-seltext_s = 'Prd. Status'.
* afield-ref_tabname = 'zbacklog_v2'.
* APPEND afield TO xfield. CLEAR afield.
ENDFORM. " fr_build_fc
*& Form fr_output
* text
* --> p1 text
* <-- p2 text
FORM fr_output .
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
i_callback_program = sy-repid
* I_CALLBACK_PF_STATUS_SET = ' '
* I_CALLBACK_USER_COMMAND = ' '
* I_STRUCTURE_NAME =
* IS_LAYOUT =
it_fieldcat = xfield[]
i_default = 'X'
i_save = 'A'
TABLES
t_outtab = gt_output
EXCEPTIONS
program_error = 1
OTHERS = 2.
ENDFORM. " fr_output
*& Form fr_get_prd_stat
* text
* -->P_WA_PRD_OBJNR text
FORM fr_get_prd_stat USING p_objnr CHANGING p_prd_stat.
DATA: lt_status TYPE STANDARD TABLE OF jstat,
wa_status TYPE jstat,
lv_status TYPE tj02t-txt04,
lv_temp2 TYPE char5,
lv_buff TYPE string.
CALL FUNCTION 'STATUS_READ'
EXPORTING
client = sy-mandt
objnr = p_objnr
only_active = 'X'
TABLES
status = lt_status
EXCEPTIONS
object_not_found = 1
OTHERS = 2.
LOOP AT lt_status INTO wa_status.
IF wa_status-stat(1) EQ 'I'.
SELECT txt04 FROM tj02t
INTO lv_status
WHERE istat EQ wa_status-stat
AND spras EQ 'E'.
ENDSELECT.
lv_temp2 = lv_status.
CONCATENATE lv_temp2 p_prd_stat INTO p_prd_stat
SEPARATED BY ','.
ENDIF.
CLEAR: wa_status, lv_status, lv_temp2.
ENDLOOP.
lv_buff = p_prd_stat.
*Status of Production Order
IF lv_buff CS 'CRTD'.
p_prd_stat = 'Not Active'.
ENDIF.
IF lv_buff CS 'REL'.
IF lv_buff CS 'GMPS'.
p_prd_stat = 'Printed In Prod'.
ELSE.
p_prd_stat = 'Printed'.
ENDIF.
ENDIF.
IF lv_buff CS 'TECO'.
p_prd_stat = 'Technically Compt.'.
ENDIF.
ENDFORM. " fr_get_prd_stat
Maybe you are looking for
-
Error while starting OMS during installation of Enterprise Manager12c
Hello Guys, I am trying to install Oracle Enterprise Manager 12c(64bit) on OEL5.2(64bit), but after successfully going through all the per-requisites of the installation; the installation fails at 89% "Start Oracle Management Service" phase and at "A
-
Hi I am little confused about down payment requst and clearing process.I understand that it does not follow the double entry system.Can some one take the pain to explain me how to clear the down payment process ? Thanks in advance Satya
-
When I click on the ringtone "bell" symbol, I'm sent to a page that tells me either to click on the bell (which I've already done), or to the Store menu and click on "create ringtone" -- but "create ringtone" is grayed out. What do I do??? This never
-
Oracle 8.16 - installation splash screen doesn't show
When attempting to use the installation program for Oracle Objects 8.16 on the network, the icon changes to an hourglass briefly then disappears and fails to run the installation. We are only encountering this problem when attempting to load to our n
-
Presentation of Project Systems
Hi Gurus, I want a brief presentation of Project System modules. Uses of module Different functionalities WBS, Network, etc Integration Please help me for this presentation. THank You Regards,