Master Detail in AdvancedTable - Data is not Saved in VO
I have a Master/Detail region as a table-in-table. The outer and inner tables each have a different VO that is related via a VL. The inner table has updateable columns. However, when the hide/show links are clicked on the master, the changes on the detail columns are not maintained. Do I have to manually commit the data for the inner table's VO to the database so that subsequent queries on the detail rows reflect the newly updated columns? Please advise. Thank you.
Hi Siva,
Check the below link:
[Re: BPS & INTEGRATED PLANING]
Hope this helps you.
Regards,
Yokesh.
Similar Messages
-
Storage location Data is not saving in table MARD using BAPI method.
Hi Experts,
TABLES: T001L, "Storage Locations
MARA, "General Material Data
MAKT, "Material Descriptions
MBEW, "Material Valuation
MARC, "Plant Data for Material
MARD. "Storage Location Data for Mate
DATA: BAPI_HEAD LIKE BAPIMATHEAD, "MATERIAL
BAPI_MAKT LIKE BAPI_MAKT, "Material Description
BAPI_MARA1 LIKE BAPI_MARA, "Client Data
BAPI_MARAX LIKE BAPI_MARAX,
BAPI_MARC1 LIKE BAPI_MARC, "Plant View
BAPI_MARCX LIKE BAPI_MARCX,
BAPI_MBEW1 LIKE BAPI_MBEW, "Accounting View
BAPI_MBEWX LIKE BAPI_MBEWX,
BAPI_MARD1 LIKE BAPI_MARD, "Storage location
BAPI_MARDX LIKE BAPI_MARDX,
BAPI_RETURN LIKE BAPIRET2.
DATA: BEGIN OF INT_MAKT OCCURS 100.
INCLUDE STRUCTURE BAPI_MAKT.
DATA: END OF INT_MAKT.
DATA: BEGIN OF INT_MAT OCCURS 100,
WERKS(4), "Plant
LGORT(4), "Storage location
MTART(4), "Material type
MATNR(18), "Material number
MAKTX(40), "Material description
MATKL(9) , "Material group
MBRSH(1), "Industry sector
MEINS(3), "Base unit of measure
GEWEI(3), "Weight Unit
SPART(2), "Division
EKGRP(3), "Purchasing group
VPRSV(1), "Price control indicator
STPRS(12), "Standard price
PEINH(3), "Price unit
SPRAS(2), "Language key
BKLAS(4), "VALUATION CLASS
VERPR TYPE VERPR_BAPI, "MOVING PRICE
BWTTY(1), "Valuation Catogory
MLAST(1), "Price determination
MLMAA(1), "Material Ledger
EKLAS(4), "Valuation Class for sales order stock
QKLAS(4), "Valuation Class for Project Stock
ZKPRS TYPE DZKPRS, "Future price
ZKDAT TYPE DZKDAT, "Valid From Date
BWPRS TYPE BWPRS, "Tax price 1
BWPS1 TYPE BWPS1, "Tax price 2
VJBWS TYPE VJBWS, "Tax price 3
ABWKZ TYPE ABWKZ, "Devaluatin indicator
BWPRH TYPE BWPRH, "Commercial price 1
BWPH1 TYPE BWPH1, "Commercial price 2
VJBWH TYPE VJBWH, "Commercial Price 3
XLIFO(1), "LIFO/FIFO revelant
MYPOL(4), "Pool no for LIFO
MMSTA(2), "Plant specific material status
AUSME TYPE AUSME, "Unit of issue
QMATA(6), "Material Authorization group
RBNRM(9), "Catalog Profile
WEBAZ TYPE WEBAZ, "Goods reciept processing time in days
PRFRQ TYPE PRFRQ, "Recurring Insepction
SSQSS(8), "QM Control key
QZGTP(4), "Certificate Type
QSSYS(4), "Required QM system for vendor
END OF INT_MAT.
DATA: V_MATNR TYPE MARA-MATNR.
SELECT-OPTIONS:
PLANT FOR MARC-WERKS OBLIGATORY MEMORY ID PLT,
S_LGORT FOR MARD-LGORT MEMORY ID STL,
MATERIAL FOR MARA-MATNR MEMORY ID MAT,
MATLTYPE FOR MARA-MTART MEMORY ID MTY,
DIVISION FOR MARA-SPART MEMORY ID DIV.
PARAMETERS: F_FILE LIKE RLGRAP-FILENAME
DEFAULT 'C:\DATA\ZMATERIAL.XLS' MEMORY ID F_FILE,
GETDATA AS CHECKBOX, "Tick to download materials data to local harddisk
UPDDATA AS CHECKBOX. "Tick to update date to Materials Master
IF GETDATA = 'X'.
PERFORM DOWNLOAD_DATA.
PERFORM DOWNLOAD_FILE.
ENDIF.
IF UPDDATA = 'X'.
PERFORM UPLOAD_FILE.
PERFORM UPDATE_MM.
ENDIF.
FORM DOWNLOAD_DATA.
SELECT * FROM MARC WHERE LVORM EQ ' '
AND WERKS IN PLANT
AND MATNR IN MATERIAL.
CLEAR MARA.
SELECT SINGLE * FROM MARA WHERE MATNR = MARC-MATNR.
CHECK MATLTYPE.
CHECK DIVISION.
CLEAR MBEW.
SELECT SINGLE * FROM MBEW WHERE MATNR = MARC-MATNR
AND BWKEY = MARC-WERKS.
CLEAR MAKT.
SELECT SINGLE * FROM MAKT WHERE SPRAS = 'EN'
AND MATNR = MARC-MATNR.
CLEAR MARD.
SELECT SINGLE * FROM MARD WHERE WERKS IN PLANT
AND LGORT IN S_LGORT.
WRITE:/ MARC-WERKS, "Plant
MARD-LGORT, "Storage location
MARA-MTART, "Material type
MARA-MATNR, "Material number
MARA-MATKL, "Material group
MARA-MBRSH, "Industry sector
MARA-MEINS, "Base unit of measure
MARA-GEWEI, "Weight Unit
MARA-SPART, "Division
MARC-EKGRP, "Purchasing group
MBEW-VPRSV, "Price control indicator
MBEW-STPRS, "Standard price
MBEW-PEINH, "Price unit
MBEW-BKLAS, "VALUE CLASS
MAKT-SPRAS, "Language key
MBEW-BKLAS, "Valuation Class
MBEW-VERPR, "Moving price
MAKT-MAKTX, "Material description
MBEW-BWTTY, "Valutaion Catogorey
MBEW-MLAST, "Price Determination
MBEW-MLMAA, "Material Ledger
MBEW-EKLAS, "Valuation class for Sales order stock
MBEW-QKLAS, "Valutaion Class for Project Stock
MBEW-ZKPRS, "Future Price
MBEW-ZKDAT, "Valid From Date
MBEW-BWPRS, "Tax price 1
MBEW-BWPS1, "Tax price 2
MBEW-VJBWS, "Tax price 3
MBEW-ABWKZ, "Devaluatin indicator
MBEW-BWPRH, "Commercial price 1
MBEW-BWPH1, "Commercial price 2
MBEW-VJBWH, "Commercial Price 3
MBEW-XLIFO, "LIFO/FIFO revelant
MBEW-MYPOL, "Pool no for LIFO
MARC-MMSTA, "Plant specific material status
MARC-AUSME, "Unit of issue
MARC-QMATA, "Material Authorization group
MARA-RBNRM, "Catalog Profile
MARC-WEBAZ, "Goods reciept processing time in days
MARC-PRFRQ, "Recurring Insepction
MARC-SSQSS, "QM Control key
MARC-QZGTP, "Certificate Type
MARC-QSSYS. "Required QM system for vendor
INT_MAT-WERKS = MARC-WERKS. "Plant
INT_MAT-LGORT = MARD-LGORT. "Storage Location
INT_MAT-MTART = MARA-MTART. "Material type
INT_MAT-MATNR = MARA-MATNR. "Material number
INT_MAT-MAKTX = MAKT-MAKTX. "Material description
INT_MAT-MATKL = MARA-MATKL. "Material group
INT_MAT-MBRSH = MARA-MBRSH. "Industry sector
INT_MAT-MEINS = MARA-MEINS. "Base unit of measure
INT_MAT-GEWEI = MARA-GEWEI. "Weight Unit
INT_MAT-SPART = MARA-SPART. "Division
INT_MAT-EKGRP = MARC-EKGRP. "Purchasing group
INT_MAT-VPRSV = MBEW-VPRSV. "Price control indicator
INT_MAT-STPRS = MBEW-STPRS. "Standard price
INT_MAT-PEINH = MBEW-PEINH. "Price unit
INT_MAT-SPRAS = MAKT-SPRAS. "Language key
INT_MAT-BKLAS = MBEW-BKLAS. "VALVATION CLASS
INT_MAT-VERPR = MBEW-VERPR. "MOVING price
INT_MAT-BWTTY = MBEW-BWTTY. "Valutaion Catogorey
INT_MAT-MLAST = MBEW-MLAST. "Price Determination
INT_MAT-MLMAA = MBEW-MLMAA. "Material Ledger
INT_MAT-EKLAS = MBEW-EKLAS. "Valuation class forS.O Stock
INT_MAT-QKLAS = MBEW-QKLAS. "Valutaion Class for Project
INT_MAT-ZKPRS = MBEW-ZKPRS. "Future Price
INT_MAT-ZKDAT = MBEW-ZKDAT. "Valid From Date
INT_MAT-BWPRS = MBEW-BWPRS. "Tax price 1
INT_MAT-BWPS1 = MBEW-BWPS1. "Tax price 2
INT_MAT-VJBWS = MBEW-VJBWS. "Tax price 3
INT_MAT-ABWKZ = MBEW-ABWKZ. "Devaluatin indicator
INT_MAT-BWPRH = MBEW-BWPRH. "Commercial price 1
INT_MAT-BWPH1 = MBEW-BWPH1. "Commercial price 2
INT_MAT-VJBWH = MBEW-VJBWH. "Commercial Price 3
INT_MAT-XLIFO = MBEW-XLIFO. "LIFO/FIFO revelant
INT_MAT-MYPOL = MBEW-MYPOL. "Pool no for LIFO
INT_MAT-MMSTA = MARC-MMSTA. "Plant specific material
INT_MAT-AUSME = MARC-AUSME. "Unit of issue
INT_MAT-QMATA = MARC-QMATA. "Material Authorization group
INT_MAT-RBNRM = MARA-RBNRM. "Catalog Profile
INT_MAT-WEBAZ = MARC-WEBAZ. "Goods reciept processing
INT_MAT-PRFRQ = MARC-PRFRQ. "Recurring Insepction
INT_MAT-SSQSS = MARC-SSQSS. "QM Control key
INT_MAT-QZGTP = MARC-QZGTP. "Certificate Type
INT_MAT-QSSYS = MARC-QSSYS. "Required QM system for
APPEND INT_MAT.
CLEAR INT_MAT.
ENDSELECT.
ENDFORM.
FORM DOWNLOAD_FILE.
call function 'WS_DOWNLOAD'
EXPORTING
FILENAME = F_FILE
FILETYPE = 'DAT'
FILETYPE = 'WK1'
tables
data_tab = INT_MAT
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_WRITE_ERROR = 2
INVALID_FILESIZE = 3
INVALID_TYPE = 4
NO_BATCH = 5
UNKNOWN_ERROR = 6
INVALID_TABLE_WIDTH = 7
GUI_REFUSE_FILETRANSFER = 8
CUSTOMER_ERROR = 9
OTHERS = 10.
IF SY-SUBRC = 0.
FORMAT COLOR COL_GROUP.
WRITE:/ 'Data Download Successfully to your local harddisk'.
SKIP.
ENDIF.
ENDFORM.
FORM UPLOAD_FILE.
call function 'WS_UPLOAD'
EXPORTING
FILENAME = F_FILE
FILETYPE = 'DAT'
FILETYPE = 'WK1'
tables
data_tab = INT_MAT
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_WRITE_ERROR = 2
INVALID_FILESIZE = 3
INVALID_TYPE = 4
NO_BATCH = 5
UNKNOWN_ERROR = 6
INVALID_TABLE_WIDTH = 7
GUI_REFUSE_FILETRANSFER = 8
CUSTOMER_ERROR = 9
OTHERS = 10.
IF SY-SUBRC = 0.
FORMAT COLOR COL_GROUP.
WRITE:/ 'Data Upload Successfully from your local harddisk'.
SKIP.
ENDIF.
ENDFORM.
FORM UPDATE_MM.
LOOP AT INT_MAT.
CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'
EXPORTING
INPUT = INT_MAT-MATNR
IMPORTING
OUTPUT = INT_MAT-MATNR
EXCEPTIONS
LENGTH_ERROR = 1
OTHERS = 2
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Header
BAPI_HEAD-MATERIAL = INT_MAT-MATNR.
BAPI_HEAD-IND_SECTOR = INT_MAT-MBRSH.
BAPI_HEAD-MATL_TYPE = INT_MAT-MTART.
BAPI_HEAD-BASIC_VIEW = 'X'.
BAPI_HEAD-PURCHASE_VIEW = 'X'.
BAPI_HEAD-ACCOUNT_VIEW = 'X'.
Material Description
REFRESH INT_MAKT.
INT_MAKT-LANGU = INT_MAT-SPRAS.
INT_MAKT-MATL_DESC = INT_MAT-MAKTX.
APPEND INT_MAKT.
Client Data - Basic
BAPI_MARA1-MATL_GROUP = INT_MAT-MATKL.
BAPI_MARA1-BASE_UOM = INT_MAT-MEINS.
BAPI_MARA1-UNIT_OF_WT = INT_MAT-GEWEI.
BAPI_MARA1-DIVISION = INT_MAT-SPART.
BAPI_MARAX-MATL_GROUP = 'X'.
BAPI_MARAX-BASE_UOM = 'X'.
BAPI_MARAX-UNIT_OF_WT = 'X'.
BAPI_MARAX-DIVISION = 'X'.
Plant - Purchasing
BAPI_MARC1-PLANT = INT_MAT-WERKS.
BAPI_MARC1-PUR_GROUP = INT_MAT-EKGRP.
BAPI_MARC1-PUR_STATUS = INT_MAT-MMSTA.
BAPI_MARC1-ISSUE_UNIT = INT_MAT-AUSME.
BAPI_MARC1-QM_AUTHGRP = INT_MAT-QMATA.
BAPI_MARC1-GR_PR_TIME = INT_MAT-WEBAZ.
BAPI_MARC1-INSP_INT = INT_MAT-PRFRQ.
BAPI_MARC1-CTRL_KEY = INT_MAT-SSQSS.
BAPI_MARC1-CERT_TYPE = INT_MAT-QZGTP.
BAPI_MARC1-QM_RGMTS = INT_MAT-QSSYS.
BAPI_MARCX-PLANT = INT_MAT-WERKS.
BAPI_MARCX-PUR_GROUP = 'X'.
BAPI_MARCX-PUR_STATUS = 'X'.
BAPI_MARCX-ISSUE_UNIT = 'X'.
BAPI_MARCX-QM_AUTHGRP = 'X'.
BAPI_MARCX-GR_PR_TIME = 'X'.
BAPI_MARCX-INSP_INT = 'X'.
BAPI_MARCX-CTRL_KEY = 'X'.
BAPI_MARCX-CERT_TYPE = 'X'.
BAPI_MARCX-QM_RGMTS = 'X'.
Accounting 1
BAPI_MBEW1-VAL_AREA = INT_MAT-WERKS.
BAPI_MBEW1-PRICE_CTRL = INT_MAT-VPRSV.
BAPI_MBEW1-STD_PRICE = INT_MAT-STPRS.
BAPI_MBEW1-PRICE_UNIT = INT_MAT-PEINH.
BAPI_MBEW1-MOVING_PR = INT_MAT-VERPR.
BAPI_MBEW1-VAL_CLASS = INT_MAT-BKLAS.
BAPI_MBEW1-VAL_CAT = INT_MAT-BWTTY.
BAPI_MBEW1-ML_SETTLE = INT_MAT-MLAST.
BAPI_MBEW1-ML_ACTIVE = INT_MAT-MLMAA.
BAPI_MBEW1-VM_SO_STK = INT_MAT-EKLAS.
BAPI_MBEW1-VM_P_STOCK = INT_MAT-QKLAS.
BAPI_MBEW1-FUTURE_PR = INT_MAT-ZKPRS.
BAPI_MBEW1-VALID_FROM = INT_MAT-ZKDAT.
*ACCOUNTING 2
BAPI_MBEW1-TAXPRICE_1 = INT_MAT-BWPRS.
BAPI_MBEW1-TAXPRICE_2 = INT_MAT-BWPS1.
BAPI_MBEW1-TAXPRICE_3 = INT_MAT-VJBWS.
BAPI_MBEW1-DEVAL_IND = INT_MAT-ABWKZ.
BAPI_MBEW1-COMMPRICE1 = INT_MAT-BWPRH.
BAPI_MBEW1-COMMPRICE2 = INT_MAT-BWPH1.
BAPI_MBEW1-COMMPRICE3 = INT_MAT-VJBWH.
BAPI_MBEW1-LIFO_FIFO = INT_MAT-XLIFO.
BAPI_MBEW1-POOLNUMBER = INT_MAT-MYPOL.
BAPI_MBEWX-VAL_AREA = INT_MAT-WERKS.
BAPI_MBEWX-PRICE_CTRL = 'X'.
BAPI_MBEWX-STD_PRICE = 'X'.
BAPI_MBEWX-PRICE_UNIT = 'X'.
BAPI_MBEWX-MOVING_PR = 'X'.
BAPI_MBEWX-VAL_CLASS = 'X'.
BAPI_MBEWX-VAL_CAT = 'x'.
BAPI_MBEWX-ML_SETTLE = 'X'.
BAPI_MBEWX-ML_ACTIVE = 'X'.
BAPI_MBEWX-VM_SO_STK = 'X'.
BAPI_MBEWX-VM_P_STOCK = 'X'.
BAPI_MBEWX-FUTURE_PR = 'X'.
BAPI_MBEWX-VALID_FROM = 'X'.
BAPI_MBEWX-TAXPRICE_1 = 'X'.
BAPI_MBEWX-TAXPRICE_2 = 'X'.
BAPI_MBEWX-TAXPRICE_3 = 'X'.
BAPI_MBEWX-DEVAL_IND = 'X'.
BAPI_MBEWX-COMMPRICE1 = 'X'.
BAPI_MBEWX-COMMPRICE2 = 'X'.
BAPI_MBEWX-COMMPRICE3 = 'X'.
BAPI_MBEWX-LIFO_FIFO = 'X'.
BAPI_MBEWX-POOLNUMBER = 'X'.
*Storage Locations
BAPI_MARD1-PLANT = INT_MAT-WERKS.
BAPI_MARD1-STGE_LOC = INT_MAT-LGORT.
BAPI_MARDX-PLANT = INT_MAT-WERKS.
BAPI_MARDX-STGE_LOC = INT_MAT-LGORT.
WRITE:/ BAPI_HEAD-MATERIAL, BAPI_MARC1-PLANT ,BAPI_MARD1-STGE_LOC.
call function 'BAPI_MATERIAL_SAVEDATA'
exporting
HEADDATA = BAPI_HEAD
CLIENTDATA = BAPI_MARA1
CLIENTDATAX = BAPI_MARAX
PLANTDATA = BAPI_MARC1
PLANTDATAX = BAPI_MARCX
FORECASTPARAMETERS =
FORECASTPARAMETERSX =
PLANNINGDATA =
PLANNINGDATAX =
<b> STORAGELOCATIONDATA = BAPI_MARD1
STORAGELOCATIONDATAX = BAPI_MARDX</b>
VALUATIONDATA = BAPI_MBEW1
VALUATIONDATAX = BAPI_MBEWX
WAREHOUSENUMBERDATA =
WAREHOUSENUMBERDATAX =
SALESDATA = BAPI_MVKE1
SALESDATAX = BAPI_MVKEX
STORAGETYPEDATA =
STORAGETYPEDATAX =
IMPORTING
RETURN = BAPI_RETURN
TABLES
MATERIALDESCRIPTION = INT_MAKT
UNITSOFMEASURE =
UNITSOFMEASUREX =
INTERNATIONALARTNOS =
MATERIALLONGTEXT =
TAXCLASSIFICATIONS =
RETURNMESSAGES =
PRTDATA =
PRTDATAX =
EXTENSIONIN =
EXTENSIONINX =
IF BAPI_RETURN-TYPE = 'E'.
WRITE:/ 'Error Message ', BAPI_RETURN-MESSAGE.
ENDIF.
ENDLOOP.
ENDFORM.
<b>i am using this bapi method to copy materials from one plant to another plant using storage location so here what happenig is everyting is going correct but only the storage location data is not saving in table mard so any body faced this kind of problem please tell me.... and one more dbt
bapi_marcx-pur_status = 'x' what is 'X' here??? is that mandatory field or required field ???
points wil be rewarded.
reagrds,
sunil k airam.In the HEADDATA structure, STORAGE_VIEW should also be set as 'X' , in order to update storage location data
for example
BAPI_HEAD-STORAGE_VIEW = 'X'.
Also, PUR_STATUS corresponds to field MARA-MSTAE whose domain has value table T141, therefore values in the field are checked against T141
Edited by: Harris Veziris on May 12, 2008 12:37 PM -
HELP: Formula Item data is not saved to database
Hi:
I've added a formula in a database item but when i commit the form the data is not saved to the database. When i am working on form the item reflects the formula value, but when i commit the value is not stored in the database.
I need urgent help.
Thanks
Joao OliveiraIt is not clearly stated in the help file I agree. With a little PLSQL code you could copy the item to a hidden database field and have it be saved to the database. See Note 43012.1 on Metalink for details.
-
Data form not saving enter data after hit of submit
Hi,
Entered data on Data from not saving after hitting the submit button in smartview.
A rules is attached to the same data from and its running on save, after retrieve it's not display enter data.
it's urgent, please help.
RegardsYou need to have the below updates done on the affected PC.
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings]\
"ReceiveTimeout"=00dbba00 (hexadecimal)
"KeepAliveTimeout"=300000 (decimal)
"ServerInfoTimeout"=300000 (decimal)
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings]\
"ReceiveTimeout"=00dbba00 (hexadecimal)
"KeepAliveTimeout"=300000 (decimal)
"ServerInfoTimeout"=300000 (decimal)
if its windows 7 machine the same key has to be added under wow6432node under same path.
once the changes are done reboot the machine and try launching the BR. Hope it works !!!
Thanks
Amith -
How to extract the data from the chart. Data were not saved
Hi everyone. Beginners question, but could not find an answer to it
How can I get the numerical data from the chart. Chart is already on the screen and data vere not saved into file during VI run. All I have - just chart, but I need numbers
Thanks
Message Edited by olka on 07-18-2007 09:41 AMYou can still do it, the process just changes a bit...
Copy the control to a new VI as before, and change it into a control.
Create the diagram shown in the attached screen shot.
Run the new VI. You will get two arrays: one of x-axis values and one of y-axis values.
Mike...
Message Edited by mikeporter on 07-18-2007 12:21 PM
Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion
"... after all, He's not a tame lion..."
Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps
Attachments:
extracting xy data.JPG 5 KB -
When i attach workflow to document library, the custom columns data is not saving.
Hi, i had created SharePoint designer workflow (send Email) for Document Library.
I had created Custom columns like.
"Employee Name" of type Person or Group
"Resume Type" of type Choice
When i attach my workflow to document library, the columns data is not saved.
It is just uploading resume, and sends email to the user groups, but data is not saved for custom columns. !.e "Employee Name" and "Resume Type".
Any help will be appreciated.In SharePoint Document Library, first the document will be uploaded and then the metadata will be updated. So, in your workflow settings, select start workflow when item is changed instead of item is created and then try.
-
I am using Form 9i.
I have 19 blocks and 6 canvas of which 5 blocks viz.
1) :WORKORDER_MASTER - are used for master record of workorder.
2) :WORKORDER_DTLS - are used for labour working under workorder.
3) :WORKODER_MASTER_IMG - image of authorised representative of workorder.
4) :WORKORDER_DTLS_IMG - image of labour working under workorder.
5) :BLK_TEMP_WORKORDER - used for temporary variables like labour_code etc.
are used in 1 canvas WO_TAB. This 5 blocks and 1 canvas is used to enter workorder master-details. :WORKORDER_DTLS is a multi-record block with records_displayed property set to 8. Command button SAVE is exist in :WORKODER_MASTER.
Two table is used to store data viz.
1) WORKORDER_MASTER
2) WORKORDER_DTLS
I am giving summary of saving procedure which is called in SAVE button.
[html]
PROCEDURE save_workorder IS
v_count NUMBER;
BEGIN
SELECT COUNT(*) INTO v_count FROM workorder_master
WHERE workorder_no = :workorder_master.workorder_no;
IF v_count = 0 THEN
insert statement here ---------------------------
COMMIT;
GO_BLOCK('workorder_dtls');
FIRST_RECORD;
LOOP
EXIT WHEN :workorder_dtls.labour_code IS NULL;
IF :workorder_dtls.pass_no IS NULL THEN
generate_pass_no;
:workorder_dtls.status := 'I';
insert statement here --------------------------
ELSE --if pass no is not null then it is old record(labour).
update statement here ----------------------
END IF;
NEXT_RECORD;
END LOOP;
COMMIT;
ELSE --if workorder exist
update statement here -------------------------------------
GO_BLOCK('workorder_dtls');
FIRST_RECORD;
LOOP
EXIT WHEN :workorder_dtls.labour_code IS NULL;
IF :workorder_dtls.pass_no IS NULL THEN
generate_pass_no;
:workorder_dtls.status := 'I';
insert statement here ----------------
ELSE --if pass no is not null then it is previous record.
update statement here
END IF;
NEXT_RECORD;
END LOOP;
COMMIT;
END IF;
END;[html]
I am in great trouble. I am trying to find this solution since long. After executing this procedure, it says 'Records has already been saved.' But when I see boths table, there are no such records. What is wrong with this procedure?
Thanks and regards,
VikasI think there mis understanding of insert statement. I am repeating again of my saving procedure.
[html]
PROCEDURE save_workorder IS
v_count NUMBER;
BEGIN
SELECT COUNT(*) INTO v_count FROM workorder_master
WHERE workorder_no = :workorder_master.workorder_no;
IF v_count = 0 THEN
insert statement for workorder_master table here --------------------------
COMMIT;
GO_BLOCK('workorder_dtls');
FIRST_RECORD;
LOOP
EXIT WHEN :workorder_dtls.labour_code IS NULL;
IF :workorder_dtls.pass_no IS NULL THEN
generate_pass_no;
:workorder_dtls.status := 'I';
insert statement for workorder_dtls for each labour based on pass_no here ----
ELSE --if pass no is not null then it is old record(labour).
update statement for workorder_dtls for each labour based on pass_no here ------
END IF;
NEXT_RECORD;
END LOOP;
COMMIT;
ELSE --if workorder exist
update statement for workorder_master here -----------------------
GO_BLOCK('workorder_dtls');
FIRST_RECORD;
LOOP
EXIT WHEN :workorder_dtls.labour_code IS NULL;
IF :workorder_dtls.pass_no IS NULL THEN
generate_pass_no;
:workorder_dtls.status := 'I';
insert statement for workorder_dtls for each labour based on pass_no here --------
ELSE --if pass no is not null then it is previous record.
update statement for workorder_dtls for each labour based on pass_no here ------
END IF;
NEXT_RECORD;
END LOOP;
COMMIT;
END IF;
END;[html] -
Hi All,
I have enhanced BP screen using BDT .
I have created fields in already exisitng role and tab and the data is not getting saved in ztable .
there is one tcode called BUS7 where I need to give FM for dsave and few other events. I have defined all the events and Executed but unfortunately none of the events are getting called. I have put a break-point no use no event is getting called,
Kindly let me know any one got the same kind of issue.
Thanks & Regards
SasHello ,
y dont you use existing BADI to capture these details into Z table .im not sure y its not triggering your events,but using BADI you can save data into Ztable .
i have done same thing , if user didnt goto my customer Tab..then my Customer Events and FM to capture data , so i have coded in both BADI and FMs .
useful Tcodes : BUPT
regards
Prabhu -
Tax classification data is not saving in QAT
Hello Gurus,
I have a issue with tax classification data in Quality.
When i give tax classification data in developement server its saving the data , i transported the same request to quality here it is not saving the tax classification.
Note -In master data tax classification data is saving in delopement but its not saving master data tax classification data in quality.
looking for inputs.
Thank you all inadvance
Regards
venkatHi JP,
The relevant condition type are maintained in OVK1, OVK3, OVK4
the problem is still same,
Looking for some more inputs .
thanks®ards
venkat
Edited by: K.Venkata Chalapathi on Jul 31, 2010 3:16 PM -
No Master Detail option in Data Control Palette
No Master Detail option in "Drop as:" dropdown list in data control palette.
First I create two entity objects with a referential key relation in a business
components diagram from an existing db schema.
Than I create two view objects and a view link from the entity objects.
Following I create an application module with the view objects and the view link.
The diagram seems correct, it shows the view objects and the view link inside
of the app module.
When I create a data page (jsp) in the struts-config.xml I'm not able to
select the option Master Detail (Many to many) in the dropdown list from
data control palette due to it isn't there.
What is my mistake ?
Many thanks.There is no mistake in your side. Thing is actually you cannot use the many to many option for a view object in jsp. This option is available if you are using UIX page. In case of jsp, you could manually create the master table using master view object and create the child table using the detail view object(present as child in view link). In the master table, you can add another column with ADF operation: setCurrentRowWithKey(String). That's it. Now selecting the select link in master table will refresh the child table rowset.
-
Why typed in data is not saved in adobe form ?
Hello Experts
This is someone new to adobe interactive forms in SAP. I develoveloped many intearcative forms their look and fell is good but problem is that the data typed in the adobe form is not saved .when i save the adobe form with nevigation File -> Save as ->pdf. the file is save with new name but the filled in data is lost. Please
help me in this scenario.
Thanks.
Chitta Ranjan Mahato.You can save the filled form when you enable the form with Adobe Acrobat.
-
Data is not saved in the Real time Cube
Hi all,
After designing the layout in BPS ,when i enter the plan data in the layout (T CODE - UPXPM ),The plan data is not getting saved in cube .i have chosen the type of layout as Excel based.
Please make me clear where the problem occurs.
Thanks
SivaHi Siva,
Check the below link:
[Re: BPS & INTEGRATED PLANING]
Hope this helps you.
Regards,
Yokesh. -
Data is not saving in to DB from POPUP screen.
Hi,
I am opening a popup screen on button click and On the popup screen, I have added the VO as form with submit button.
On the popup fetchlistener, I calling a bean method to invoke the createInsert action as follows.
public String createSubs() {
System.out.println("Inside Action Event*********************");
try{
AdfFacesContext adf = AdfFacesContext.getCurrentInstance();
BindingContainer bc = getBindings();
oracle.binding.OperationBinding opb = bc.getOperationBinding("Create");
opb.execute();
}catch(Exception e){
e.printStackTrace();
return "";
public BindingContainer getBindings() {
return BindingContext.getCurrent().getCurrentBindingsEntry();
When I am clicking on submit button in popup screen, data is appearing on the mainpage table but the same is not saving in the database. One more I have observed that doDML is not calling means SOP's are not comming from doDML method in the entity class.
Please do the needful, its an urgent issue to reslove.
Thanks in Advance,
user5802014HI,
Can you please specify that for your attributes CreatedBy and CreationDate , are you using automatic insert value from your entity or not? Or you are passing default values programatically in doDML() method.
I guess for every new row your are using User name for CreatedBy field and current date for CreationDate field,
Why don't you set these field at the time of creation of new row, Override Create() method in your entity bean and then you can set these fields to there default values. and now you should remove Mandatory property to unchecked for these fields in entity also.
like i'm doing here - I'm setting sequence number as default to field insertedLineNo
protected void create(AttributeList attributeList) {
SequenceImpl seq = new SequenceImpl("NUMBER_SEQ", getDBTransaction());
Number seqNum = seq.getSequenceNumber();
setInsertedLineNo(seqNum);
super.create(attributeList);
}Hope this will help you, and let me know if this helps you.
Fizzz... -
Data is not saving in the variant
i have written the below code for a push button on the application tool bar, i even assigned the org structure, it working fine.
but when i create a variant, the field valuse in the selection scrren are saving but the check box i have selected in the org. structure is not saving. but it is working fine in S_L9C_94000095 transaction.
just check the code.
DATA : r_orgun TYPE RANGE OF objec-objid.
SELECTION-SCREEN FUNCTION KEY 1.
NITIALIZATION.
sscrfields-functxt_01 = ' Org. Structure'.
AT SELECTION-SCREEN.
IF sscrfields-ucomm = 'FC01'.
CALL FUNCTION 'RP_PNP_ORGSTRUCTURE'
EXPORTING
begda = sy-datum
endda = sy-datum
plvar = '01'
TABLES
pobjid = r_orgun.
ENDIF.
regards
Kumar M
Edited by: Kumar M on Jan 27, 2009 6:38 AMNone of them answered.
-
The data is not saved in one of the LOV field
Hi all,
I have two forms in two different pages, both are pretty much identical, except here and there show/hide some of the field and different LOV values. One of the form is working fine, but other form is giving me trouble. There is an LOV in that form, giving and returning proper value. (I checked it with java script alert). But it is not saving in the database. I tried to upload the files to the OTN, but since i could not upload the whole application because of data complexity, I am not able to successfully upload that into the application. (But it is in the Export Repository). As far as I checked, I copied the working form page into not working form page and make the necessary changes. I did not change any property specifically to that field. Any idea what I should be looking into. Thanks.
SoeHi Andy,
Thank you very much for your response. I tried what you have suggested. But still it was not working. But what I found out was it is not displaying what I have selected after I press "Save". But it actually saved in the database. So, I kind of getting a little confuse and do more research why it is doing that. Finally I found out the problem is with the datatype. First form has two characters in the return value and this page has only one character. I used CHAR(2) as the datatype for that field and turned out it is appending space at the end since it has only one character. For that I do not see anything on the screen. I changed the datatype to VARCHAR2 and now the problem resolved. Thank you once again for your time.
Soe
Maybe you are looking for
-
Which virtualization utility should I use on my Macbook?
I'm trying to run Auto Cad and Matlab on my Mac. I just want to install the applications I don't want to have to install the whole Windows system on my machine. Is not clear to me if Parallels or VMWare can do this, they seem to need to have Windows
-
How to create multiple buttons in ALV Toolbar in Webdynpro ABAP
Hi all, I am trying to create multiple buttons in Webdynpro ALV toolbar, please go through the code. What happening is, second button is replacing the first one. DATA lo_cmp_usage TYPE REF TO if_wd_component_usage. lo_cmp_usage = wd_this->wd_cp
-
I want to download the latest version of iTunes
I want to download the latest version of iTunes from the internet rather than on the Apple software update...will i have to re-enter my account details in the iTunes i downloaded...plz help..!!
-
Email Folders missing from Favorites
Hey guys, I just ran into this: A user had a bunch of folders in her Outlook favorites, some of these folders are from a PST opened in her Outlook profile, since yesterday, she is complaining that the folders from the PST file have disappeared from h
-
Have just purchased a New HP touchsmart 3d desktop on windows 7 have a printer Hp Photosmart wireless printer which runs ok with it, however I have an older Hp Photosmart D6100 series UBS cable that wont run with it. Does it require an update ?