PM Work Ordre JV
Hi,
I have issue with Joint venture in PM work ordersu2026generally in work orders the Joint Venture is populated form cost center, so this cost center system took either from functional location or equipmentu2026
But I have case in which the cost center is not filled in f.location/equipment both so in that case from where system take this cost center so my JV will populate automatically.
Please suggest.
Thanks
Ankit
Thanks for your response.
Actually Previously I had issue with refurbishment order for which my JV was not popolated but in that case I maintained valuation area for my specific plant in T.Code GJ55 and my solution works perfectly.
But in that case apart from refurbishment ordre I don't think my JV was populating if I mainted valuation area(Batch).
Do you have any suggestion
Similar Messages
-
IW38 How to show Work Ordre Creation Time
Hello,
In IW38 - List of Orders, how can I display Work Order Creation Time in the ALV?
This choice is not available in the list. However, it's possible to display notification creation time (Notification time field) in IW28.
Thanks,
FrançoisFrançois Rocheleau-Lieutenant
Try appending the same field to the IW38 structure RIHAUFK_LIST
PeteA -
How to move object from one cont. to another
Hi I am not able to move object from one container to another container in work order driver. while when i am same line of code in JMS driver its working fine and also log genarated for the same. but in work ordre driver it is not working. here is my code which i m using for the same.ple help me out
<do-move-src-object class-name="ValeUser">
<arg-dn>
<token-local-variable name="var-str-nwoContent"/>
</arg-dn>
<arg-dn>
<token-text xml:space="preserve">\</token-text>
<token-global-variable name="dirxml.auto.treename"/>
<token-text xml:space="preserve">\</token-text>
<token-global-variable name="hrfeed.inactive.container"/>
</arg-dn>
</do-move-src-object>
thanks
Adarsh KumarIdmlearner,
sorry, but you are still posting in the wrong forum. You should ask
these questions in the Identity Manager forum
Shaun Pond -
Difference between Order Header BSD and operation schedule SSD
Hi,
One of your Client is operating on SAP 4.7
There are some cases where Order Header Basic Start Date and operation Schedule Date are no same.
example:
Present Order Basic Start Date 24.06.2011
Present Order Basic Finish Date 01.07.2011
Forward Schedled order.
Operation 1
Operation 2
Work Center has sufficient capacity and is available to perform work 24hrs.
Using planning board CM10 user dispatches operation 1 to 30.06.2011 and operation 2 to 01.07.2011.
The problem is order basic start date is remaining same i.e. 24.06.2011 and not chaning to 30.06.2011.
Can any one please help in this issue.yes for all order types and also i have observed that most of work order has basic start date as 24.06.2011 when all the operations of orders are scheduled in future dates (date other than 24.06.2011).
The first time scheduling of work order operation is done on 24.06.2011 (CM10) and then after re-scheduling (through IW38) of operation changed the schedule start date but work ordre basic start date remained same i.e 24.06.2011.
Dispite of first time scheduling and then re-scheduling basic start date remained 24.06.2011.
Note: Same profile was selected in both CM10 and IW38 while accessing planning board. -
NULL Value in ORDR.DISCPRCNT.
Hi SAP Gurus,
is there any possibility that NULL Values can be passed in ORDR.DISCPRCNT Field in Sales Order Screen..?
on executing query on Doc Num 205926 i found NULL value in ORDR.DISCPRCNT, instead of 0.00,
is there any solutions available for this problem..?
i appreciate your help..
Thanks and Regards,
kaviprashuHi Kaviprashu,
If this is a problem you can either report it to SAP (official), run a simple update query setting all NULL values to 0 (not allowed, so you did not hear this from me), or work around it with
ISNULL(ORDR.DISCPRCNT, 0) AS DISCPRCNT
Regards,
Johan -
Formatted Search for Delivery Date field in SO not working
Hi All
Can anyone help me as to why my formatted search is not working?
I am currently using SAP B1A SP01 Patch 19.
I have created a user query as follows:
SELECT $ [$10.0.DATE] + 5
When I add this to the delivery field within the Sales Order and bring through the saved query which I set to auto refresh when the Posting Date field changes and to Display Saved Values it doesn't work.
Any ideas?
Thanks and best wishes
GailHI Gail,
If I am not mistaken you want to add days to the posting date...if that is so then try this out:
SELECT $[ORDR.DocDate.DATE]+5 From ORDR T0 For Browse
Set The indicator to Auto Refresh when the fields change
Nagesh -
Deletion indicator not working after user exit error
Hi Gurus,
I had one requirement in Purchase Requisition. If the number of items increase by 36 , there should be an error saying that maximum items reached but once that item is deleted that error should disappear.
I have written the coding in an Exit: EXIT_SAPLMEREQ_010.
And the coding is :
IF gs_eban-bsart = gcz902.
LOOP AT gt_eban INTO gs_eban
where loekz is initial.
LOOP AT gt_ebkn INTO gwa_ebkn WHERE banfn = gs_eban-banfn
and bnfpo IN r_bnfpo.
recherche division- ordre interne
LOOP AT ot_div into gwa_div WHERE ot = gwa_ebkn-aufnr AND div = gwa_ebkn-bnfpo.
ENDLOOP.
IF sy-subrc NE 0.
gwa_div-ot = gwa_ebkn-aufnr.
gwa_div-div = gwa_ebkn-bnfpo.
APPEND gwa_div TO ot_div.
ENDIF.
ENDLOOP.
ENDLOOP.
DESCRIBE TABLE ot_div LINES n.
IF n >= 37.
case sy-ucomm.
WHEN 'MESAVE'.
MESSAGE e111(zpfr) with n.
exit.
ENDCASE.
ENDIF.
ENDIF.
So now the exit is working fine......but when i go to delete that extra item it is not getting deleted , so while saving the information message comes that no data changed.
So ho wto delete that extra item.
Do anyone have reply....
thanks in advance.Hello.
If you insert 37 lines you get your error message. But if you delete 1 row, you get error message again, right?
I think that's because you are not refreshing internal table ot_div. Shouldn't you refresh it before LOOP AT gt_eban INTO gs_eban?
Regards.
Valter Oliveira. -
SALES ORDER: Total of a Field from the Grid in a User-Defined Field in ORDR
Hello!
I created a User-Defined Field called "U_Soma" in table ORDR (Marketing Documents / Title).
I need this U_Soma field Totalize the content of another User-Difined Field called "U_TotalPorUM" created in table RDR1 (Marketing Documents / Rows). It must get the Sum the value of all rows in the current record being edited.
Using the Query below, it works fine with already saved records:
SELECT SUM(T1.[U_TotalPorUM]) FROM ORDR T0 INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry WHERE T0.DocEntry = $[ORDR.DocEntry]
However, I need that it work with non saved (yet) records.
Thank you!
VALERIO OLIVEIRA
Edited by: ValerioOliveira on Apr 22, 2010 10:14 PMGordon, thank you for your fast answers!
In other circumstances I would agree with you.
But the U_Soma field must be used to control the maximum weight of a charge.
It becames very usefull if user can see that the charge limit is reached, still when the Sales Order is being edited.
(The U_TotalPorUM field shows the weight of each item).
I would appreciate any help!
Thanks a lot!
VALERIO OLIVEIRA
Edited by: ValerioOliveira on Apr 23, 2010 7:28 PM -
FMS not working when only item chaning is drop down.
I'm having an issue on 2005A where I have a FMS in place the sets a date if another field changes.
Sent: Y/N (Drop Down Box)
Dt: FMS to set to date if sent = Y
The issue is this, if you open the sales order and do nothing else but drop down sent and set to Y the FMS does not fire.
After it is set to Y, you change it to N then change to Y it works.
If you alter any field anywhere else first, then change the sent to Y it works.
Has anyone else experienced this ? Is there a work around?
EliUDFs (Marketing Documents)
U_Extract: Values Y - Yes, N - No. Default = (N)
U_ExtDate: Datefield.
FMS Query:
IF $[ORDR.U_Extract] = 'Y'
select getdate()
FMS is set to Auto Refresh when U_Extract changes.
Open the sales order and do nothing but click the drop down for U_Extract, change to Y, update... NOTHING.
Change any other field, then choose the drop down and select Y and it works.
Thanks,
Eli
Edited by: Eli Lawson on May 12, 2009 4:18 PM -
Trigger is not working while updating the values of UDF
Dear Freind,
I have created one Trigger for ORDR for Sales order. It is working fine. For that i have created two UDF to Title level. When i fill all fields it shows the correct result in DocTotal. But problem is that, while updateing specific record it also update but only refresh the DocTotal.
Means suppose i change the value of UDF fields that time it is not working it gives following error.
"There is difference between the document total and component total"
ALTER TRIGGER AmountForPC1
ON dbo.ORDR
AFTER INSERT,
UPDATE
AS
SET NOCOUNT ON
UPDATE x
SET x.DocTotal = COALESCE(i.DocTotalSy, 0) + COALESCE(i.U_Ref, 0) + COALESCE(i.U_Sub, 0)
FROM dbo.ORDR AS x
INNER JOIN inserted AS i ON i.DocEntry = x.DocEntry
Thanks
SwapnilHi Swapnil,
Are you aware that you might run into trouble, at least when it comes to a support case, because you have created triggers?
Accordingly to note [896891|https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMSZ3PTU4ODAwMDAr)/bc/bsp/spn/smb_searchnotes/display.htm?note_langu=E¬e_numm=896891] triggers are not supported.
Regards
Mario -
SP01: DI error -5002 Invalid Total ORDR.DocTotal
Hi All,
i'm getting a strange error.
i'm adding a sales order via DI.
when the code is executed via the .net debugger it works great.
when i create an installer and install the Addon i receive the error:
-5002 Invalid Total [ORDR.DocTotal]
do someone ever had this kind of error?
btw i'm using SAPB12005A SP1 PL2
thanks
Moty MoshinHere is the code:
oNewOrder = B1Connections.diCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oOrders)
'B1Connections.diCompany.StartTransaction()
Dim LinesAdded As Integer = 0
For i = 1 To intDupAmount
Try
' this loop adds the different items to the Delivery object
oNewOrder.CardCode = strBPCode
oNewOrder.Series = strSeriesCode
oNewOrder.NumAtCard = strVendorRefNo
oNewOrder.Project = strProjectCode
oNewOrder.ShipToCode = strShipToCode
oNewOrder.DocDueDate = strDocDueDate
oNewOrder.Comments = strComments
oNewOrder.PaymentGroupCode = strPaymentTerms
oNewOrder.PaymentMethod = strPaymentMethod
'Currently not available thru the DI/UI
'oNewOrder.header = OQUTHeader
'oNewOrder.Footer = OQUTFooter
Catch ex As Exception
B1Connections.theAppl.MessageBox("In For Step 1")
End Try
Try
oNewOrder.Lines.SetCurrentLine(0)
'Line item fields that are visible on the sales order form
oNewOrder.Lines.ItemCode = currSalesFormLines.ItemCode 'As String '1 'ItemCode
oNewOrder.Lines.ItemDescription = currSalesFormLines.ItemDesc 'As String '1 'ItemDesc
oNewOrder.Lines.WarehouseCode = currSalesFormLines.WhsCode 'As String '24 'WhsCode
oNewOrder.Lines.UnitPrice = currSalesFormLines.UnitPrice 'As Double '14 'UnitPrc
oNewOrder.Lines.DiscountPercent = currSalesFormLines.DiscPct 'As Double '14 'DiscPct
oNewOrder.Lines.Price = currSalesFormLines.Price 'As Double '17 'Price
oNewOrder.Lines.Quantity = currSalesFormLines.Quantity 'As Double '11 'Quantity
'Line item fields that are not visible on the sales order form
oNewOrder.Lines.UserFields.Fields.Item("U_" + cUDinit.udfMdL_EstQty).Value = currSalesFormLines.EstQty 'As Double 'U_XX_EstQty
'oNewOrder.Lines.UserFields.Fields.Item("U_" + cUDinit.udfMdL_STCC).Value = currSalesFormLines.STCC.ToString 'As Double 'U_XX_STCC
'oNewOrder.Lines.UserFields.Fields.Item("U_" + cUDinit.udfMdL_HSC).Value = currSalesFormLines.HSC 'As String 'U_XX_HSC
'oNewOrder.Lines.UserFields.Fields.Item("U_" + cUDinit.udfMdL_CVal).Value = currSalesFormLines.CVal.ToString 'As Double 'U_XX_CVal
oNewOrder.Lines.TotalLc = currSalesFormLines.TotalLc 'As Double '21 'TotalLc
oNewOrder.Lines.Total()
oNewOrder.Lines.UserFields.Fields.Item("U_" + cUDinit.udfMdL_QtyMT).Value = currSalesFormLines.QtyMT 'As Double 'U_XX_QtyMT
oNewOrder.Lines.UserFields.Fields.Item("U_" + cUDinit.udfMdL_QtyST).Value = currSalesFormLines.QtyST 'As Double 'U_XX_QtyST
'oNewOrder.Lines.UserFields.Fields.Item("U_" + cUDinit.udfMdL_DGood).Value = currSalesFormLines.DGood.ToString 'As String 'U_XX_DGood
Catch ex As Exception
B1Connections.theAppl.MessageBox("In For Step 2 - Lines")
End Try
Try
'Header level UDF's
oNewOrder.UserFields.Fields.Item("U_" + cUDinit.udfMdH_ConNum).Value = cLastUdfMD.ConNum
oNewOrder.UserFields.Fields.Item("U_" + cUDinit.udfMdH_ConTyp).Value = cLastUdfMD.ConTyp
oNewOrder.UserFields.Fields.Item("U_" + cUDinit.udfMdH_ConSta).Value = cLastUdfMD.ConSta
If cLastUdfMD.RefCon <> "" Then
oNewOrder.UserFields.Fields.Item("U_" + cUDinit.udfMdH_RefCon).Value = cLastUdfMD.RefCon
End If
'Get Release number
'B1Connections.theAppl.MessageBox("Before Add Msg 2")
lngNextRelease = cReleaseNumber.GetNextNum(cUDinit.udoRn_ReleaseNumber, strSeries)
If lngNextRelease = -1 Then
B1Connections.diCompany.EndTransaction(BoWfTransOpt.wf_RollBack)
retVal = cReleaseNumber.UnLockNumbering(cUDinit.udoRn_ReleaseNumber, strSeries)
B1Connections.theAppl.MessageBox("Error - Cannot Get Next Number from NNM1")
Exit Sub
End If
releaseNumbers.Add(lngNextRelease)
oNewOrder.UserFields.Fields.Item("U_" + cUDinit.udfMdH_RelNum).Value = lngNextRelease.ToString 'intRelNum
oNewOrder.UserFields.Fields.Item("U_" + cUDinit.udfMdH_ShDtSt).Value = cLastUdfMD.ShDtSt
oNewOrder.UserFields.Fields.Item("U_" + cUDinit.udfMdH_ShDtEn).Value = cLastUdfMD.ShDtEn
If cLastUdfMD.StrDt <> "" Then
oNewOrder.UserFields.Fields.Item("U_" + cUDinit.udfMdH_StrDt).Value = cLastUdfMD.StrDt
End If
If cLastUdfMD.StrAmt <> "" Then
oNewOrder.UserFields.Fields.Item("U_" + cUDinit.udfMdH_StrAmt).Value = cLastUdfMD.StrAmt
End If
If cLastUdfMD.AcrAmt <> "" Then
oNewOrder.UserFields.Fields.Item("U_" + cUDinit.udfMdH_AcrAmt).Value = cLastUdfMD.AcrAmt
End If
oNewOrder.UserFields.Fields.Item("U_" + cUDinit.udfMdH_CQTY).Value = cLastUdfMD.CQTY
oNewOrder.UserFields.Fields.Item("U_" + cUDinit.udfMdH_LN).Value = cLastUdfMD.LN
oNewOrder.UserFields.Fields.Item("U_" + cUDinit.udfMdH_STerms).Value = cLastUdfMD.STerms
oNewOrder.UserFields.Fields.Item("U_" + cUDinit.udfMdH_Mode).Value = cLastUdfMD.Mode
oNewOrder.UserFields.Fields.Item("U_" + cUDinit.udfMdH_Carrier).Value = cLastUdfMD.Carrier
If cLastUdfMD.PortEntry <> "" Then
oNewOrder.UserFields.Fields.Item("U_" + cUDinit.udfMdH_PtEnt).Value = cLastUdfMD.PortEntry
End If
If cLastUdfMD.CBrok <> "" Then
oNewOrder.UserFields.Fields.Item("U_" + cUDinit.udfMdH_CBrok).Value = cLastUdfMD.CBrok
End If
oNewOrder.UserFields.Fields.Item("U_" + cUDinit.udfMdH_Fterm).Value = cLastUdfMD.FTerms
If cLastUdfMD.PriveEq <> "" Then
oNewOrder.UserFields.Fields.Item("U_" + cUDinit.udfMdH_PrivEq).Value = cLastUdfMD.PriveEq
End If
If cLastUdfMD.Route <> "" Then
oNewOrder.UserFields.Fields.Item("U_" + cUDinit.udfMdH_Route).Value = cLastUdfMD.Route
End If
oNewOrder.UserFields.Fields.Item("U_" + cUDinit.udfMdH_TF).Value = cLastUdfMD.TF
'oNewOrder.UserFields.Fields.Item("U_" + cUDinit.udfMdH_Season).Value = cLastUdfMD.Season
'oNewOrder.UserFields.Fields.Item("U_" + cUDinit.udfMdH_STCity).Value = cLastUdfMD.STCity
'oNewOrder.UserFields.Fields.Item("U_" + cUDinit.udfMdH_STCtr).Value = cLastUdfMD.STCtr
'oNewOrder.UserFields.Fields.Item("U_" + cUDinit.udfMdH_STSt).Value = cLastUdfMD.STSt
oNewOrder.UserFields.Fields.Item("U_" + cUDinit.udfMdH_TAmtIn).Value = cLastUdfMD.TAmtIn
oNewOrder.UserFields.Fields.Item("U_" + cUDinit.udfMdH_TAmtOr).Value = cLastUdfMD.TAmtOr
Catch ex As Exception
B1Connections.theAppl.MessageBox("In For Step 3 - Header Level UDF")
End Try
' add sales order current quntity () from total (U_XX_TQTYR)
' add sales order current dollar value() from total (U_XX_TAMTR)
' Try to add the sales order object to the database
'B1Connections.theAppl.MessageBox("Before Add Msg 3")
lRetCode = oNewOrder.Add()
'B1Connections.theAppl.MessageBox("Before Add Msg 3.1")
If lRetCode <> 0 Then ' If the addition failed
B1Connections.diCompany.GetLastError(lErrCode, sErrMsg)
B1Connections.theAppl.MessageBox("Error - " & lErrCode & sErrMsg)
' B1Connections.diCompany.EndTransaction(BoWfTransOpt.wf_RollBack)
Try
B1Connections.diCompany.EndTransaction(BoWfTransOpt.wf_RollBack)
Catch ex As Exception
B1Connections.theAppl.MessageBox("Error - Add Error:" & lRetCode & " - " & ex.Message)
End Try
retVal = cReleaseNumber.UnLockNumbering(cUDinit.udoRn_ReleaseNumber, strSeries)
'B1Connections.diCompany.GetLastError(lErrCode, sErrMsg)
'B1Connections.theAppl.MessageBox("Error - " & lErrCode & sErrMsg)
Exit Sub
Else
End If
LinesAdded = LinesAdded + 1
' init the order object
oNewOrder = B1Connections.diCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oOrders)
Next i
'B1Connections.diCompany.EndTransaction(BoWfTransOpt.wf_Commit)
retVal = cReleaseNumber.UnLockNumbering(cUDinit.udoRn_ReleaseNumber, strSeries) -
HI
We have new scenerio for JOB WORK PROCESS
Customer will provide us the Raw Material and on proccessing it we will produce two diffrent finish goods
which will be billed to that customer through JOB ORDER
Can anyone tell us how to configure process into SAP .
Regards
PRhi
Create Sales Order. And Purchase requisitionVA01,Check stock / requirements situation for finished product. MD04
Check list of Purchase requisition ME5A
Create Subcontracting order with reference to the Purchase Requisition ME21N
MD04
Post Goods Isue w.r.t to Subcontracting Order MB1B
Create Subcontracting Challan 4.5/4.6 J1IF01
Create Billing Document VF01
Post goods receipt with reference to purchase order MIGO
Post invoice verification MIRO
this is process for job work ,
this is for one proces another process as same for this document but this maintain the
va01-vl01n(movement type 541)-j1if01 her u can cant maintanin any prise
ofter comes to finshed product ,
u can maintian this process: jobwork charges
va01_vl01n_vf01_j1iin
u maintain the settings for vov8 delivary type only,
in this process u can matain the vov8 for one document type ( it for only internaloreder jobwork)
ofter jobwork chages vov8;maintain normaly
for job work for other material /(rawmaterial) u maintain tcode for j1id - maitain the assessable value for revelant material and plant, and matain subcontract activae in material and chepted id comination,
this cin setting
so u maintain the
two ordr type one is jobwork internal order
another one is job work charges
and also maintain the copy controls(internla order)
Order requirements : 001
Combination requirmt: 051
Header Data : 001
Header Data Ext. Sys : 0
Handling Units : 000
u maintian thia routines for header
Sales doc. type: jobwork internal ord
Item category : Job work item
Order requirements: 101 Item
Item data: 901 Item(101 div change)
Item Ext. System : 0
Business data ; 2 Business Data
this for item details for copy contols
as same of internal order
here comes billing
it for coman billings routines -
Condition ZMAP is missing in pricing procedure A BBP 0100 ( Purchase Ordre)
Hi Experts,
We work with SRM 7.0
Please i created, a new condition surcharge. i affected it on my calculation schema. But on my purchase ordre, i have this error message:
Condition ZMAP is missing in pricing procedure A BBP 0100
Please i need a help
ThanksHave you searched in SCN about this error ?
We have plenty discussions about this error..
Try to search in SCN Search
I've got too many results and many of them got correct solution.. -
Work around/Alternate solution for Oracle error ORA-01460 and ORA-02063
After the installation of Oracle.DataAccess version 2.111.7.20, I get the following error.(the code worked fine with Oracle.DataAccess version 9.2.0.700 )
I have attached the error as well as the sample code.
ORA-01460 and ORA-02063 are known bugs in the new ODP but would like to know if there is any Work around/Alternate solution for this problem(other than
the use of stored procs)..
Thanks!
Error:
ORA-01460: unimplemented or unreasonable conversion requested
ORA-02063: preceding line from BSREAD_STAGINGRO at Oracle.DataAccess.Client.OracleException.HandleErrorHelper(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src, String procedure, Boolean bCheck)
at Oracle.DataAccess.Client.OracleException.HandleError(Int32 errCode, OracleConnection conn, String procedure, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src, Boolean bCheck)
at Oracle.DataAccess.Client.OracleCommand.ExecuteReader(Boolean requery, Boolean fillRequest, CommandBehavior behavior)
at Oracle.DataAccess.Client.OracleCommand.ExecuteReader()
SampleCode
private bool isValidFieldData(string clientName, string fieldNumber, string uniqueID, string clientID)
using (OracleConnection mBSConnection = new OracleConnection(mBSConnectionString))
OracleDataReader oRdr = null;
OracleCommand Valid_FieldData_Command = null;
try
Valid_FieldData_Command = new OracleCommand();
Valid_FieldData_Command.Connection = mBSConnection;
Valid_FieldData_Command.CommandText = "SELECT uniqueid FROM EXTDB.BSData WHERE agencyid = :agencyid and agencyname=:agencyname AND fieldnumber =:fieldnumber AND uniqueid = :uniqueid";
Valid_FieldData_Command.Parameters.Add(":agencyid", OracleDbType.Varchar2, 255).Value = agencyID;
Valid_FieldData_Command.Parameters.Add(":agencyname", OracleDbType.Varchar2, 255).Value = agencyName;
Valid_FieldData_Command.Parameters.Add(":fieldnumber", OracleDbType.Varchar2, 255).Value = fieldNumber;
Valid_FieldData_Command.Parameters.Add(":uniqueid", OracleDbType.Varchar2, 255).Value = uniqueID;
mBSConnection.Open();
oRdr = Valid_FieldData_Command.ExecuteReader(); ->Error occurs here
The error occurs whenever the length of any of the parameter is increased. But there is no specific length where it is breaking down.
For example in this case, it breaks down with the given error if
agencyID > 8
agencyName > 6
fieldNumber > 9
uniqueid > 6The problem was mapping input parameter type.
VARCHAR2-type mapping input parameter works with String-type PF parameter. But CHAR-type won't. -
Bonjour,
je suis un peu embetté, car je me bat avec un fichier .h !
En fait, j'ai une fenetre de sélection qui me permet de scanner un code barre et de valider l'objet par la suite...
J'ai donc plusieurs boutons, objets, décorations etc...
Ceux ci se présentent de cette manière :
#define P_x 1 /* callback function: Panelx */
#define P_x_DOSSIER 2
#define P_x_UNITE 3
#define P_x_CP 4
#define P_x_TYPE 5
#define P_x_DATE_IN 6
#define P_x_DATE_PASSAGE 7
#define P_x_CHARG_PARAM 8 /* callback function: Chargement_parametres */
#define P_x_PASS 9 /* callback function: Force */
#define P_x_EXIT 10 /* callback function: Exit */
#define P_x_DECORATION 11
#define P_x_TEXTMSG_2 12 /* callback function: Appel_Password */
#define P_x_TEXTMSG 13
#define P_x_COMMANDBUTTON 14 /* callback function: Help */
#define P_x_PICTURE_2 15
#define P_x_PICTURE 16
#define P_x_VALIDATION 17 /* callback function: Validation */
/* Menu Bars, Menus, and Menu Items: */
/* (no menu bars in the resource file) */
/* Callback Prototypes: */
int CVICALLBACK Appel_Password(int panel, int control, int event, void *callbackData, int eventData1, int eventData2);
int CVICALLBACK Chargement_parametres(int panel, int control, int event, void *callbackData, int eventData1, int eventData2);
int CVICALLBACK Exit(int panel, int control, int event, void *callbackData, int eventData1, int eventData2);
int CVICALLBACK Force(int panel, int control, int event, void *callbackData, int eventData1, int eventData2);
int CVICALLBACK Help(int panel, int control, int event, void *callbackData, int eventData1, int eventData2);
int CVICALLBACK Panelx(int panel, int event, void *callbackData, int eventData1, int eventData2);
int CVICALLBACK Validation(int panel, int control, int event, void *callbackData, int eventData1, int eventData2);
Donc quand je scanne la boite avec la douchette, il arrive qu'un bouton se déclenche. Cependant, ce n'est pas le bouton VALIDATION, ce qui m'embette !
C'est le bouton Chargement paramètres, déclaré au début des appels de fonction dans les define.
Donc, quand je le met dans cette ordre là, le bouton Validation est bien sélectionné par défault (encadré par un rectangle noir), puisque je pense il est au début des #define...
Quand mon bouton Validation est grisé, il passe au suivant (Force), ce qui est tout à fait ce que je souhaite !
#define P_x 1 /* callback function: Panelx */
#define P_x_DOSSIER 2
#define P_x_UNITE 3
#define P_x_CP 4
#define P_x_TYPE 5
#define P_x_DATE_IN 6
#define P_x_DATE_PASSAGE 7
#define P_x_VALIDATION 8 /* callback function: Validation */
#define P_x_PASS 9 /* callback function: Force */
#define P_x_CHARG_PARAM 10 /* callback function: Chargement_parametres */
#define P_x_EXIT 11 /* callback function: Exit */
#define P_x_DECORATION 12
#define P_x_TEXTMSG_2 13 /* callback function: Appel_Password */
#define P_x_TEXTMSG 14
#define P_x_COMMANDBUTTON 15 /* callback function: Help */
#define P_x_PICTURE_2 16
#define P_x_PICTURE 17
Cependant, lorsque je grise ou pas un bouton, par la suite, ce n'est pas le bon bouton qui est affectée, puisque j'ai modifié l'ordre et il n'apprécie guère...
Ex: je demande de grisé le bouton Validation et c'est le bouton Chargement_Paramètres qui est grisé
Donc avez vous une solution à ca ou pouvez vous m'aider ??
Merci beaucoup
Rémi
Solved!
Go to Solution.What you are observing now is a special case which can lead to some misunderstandment. To fully comprehend CVI internal logic you can simply create a UIR file with more than one panel inside and examine the corresponding #include file. What you will see will be the following:
#define PANEL1 1
#define PANEL_CONTROL1 2
#define PANEL_CONTROL2 3
#define PANEL2 2
#define PANEL_CONTROL1 2
#define PANEL_CONTROL2 3
and so on. That is: panel IDs are unique inside the UIR file and progressively numbered; control IDs are unique within the owner panel and progressively numbered.
What CVI does when you address a control with for example SetCtrlVal (panelHandle, controlID, ...) is to translate this instruction into: "address control with index <controlID> into panel identified by <panelHandle> variable". This permits on one side to load more than one panel in memori at the same time but also to load the same panel more than once, each time identifying it with the corresponding handle (wich is guaranteed unique by the OS).
Regarding the first control in a panel being identified by number 2 I cannot say anything: it depends on an internal logic in CVI and you cannot alter it, but it's indeed transparent to us and as you already noted it's prefectly working.
Proud to use LW/CVI from 3.1 on.
My contributions to the Developer Zone Community
If I have helped you, why not giving me a kudos?
Maybe you are looking for
-
Is there a way to prevent photos from displaying larger than resolution allows?
When I display a small photo (e.g. 2"x3") on the iMac, the photo is dispalyed that size. However, on the iPad, the photo is enlarged to the full screen size and it is so pixellated that it is garbage. I have been pasting the small photo into a larg
-
Why a black box (or fuzzy "i") when opening an image?
In one particular folder in "Events", when I click on an image to open, it opens to a black box or at best a fuzzy "i" - were the image should be, what has happened? All other options appear as normal but if I click "edit"for example - my options bec
-
Hi, does anybody have experience with XI and RFID? Regards, Udo
-
How do you turn off the screen with out turning off the computer?
How do you turn off the screen without turning off the computer?
-
Ideal Upgrade to Speed Up my Laptop?
I find this computer unacceptably slow. I am not too familiar with hardware, mainly software. I've tried doing a bit of research and found out it could possibly be due to the fact that I only have 4GB of Ram? Not really sure. If there's an ideal upgr