Problem in Matix Mandatory Field
Hi,
I am setting a mandatory field in matrix. All the columns are working well but for the column which holds the numeric value is accepting the value in the text eventhough i check it.
The code follows which i used
Try
Dim k As Integer
Dim oEdit4 As SAPbouiCOM.EditText
If oMatrix.RowCount() = 0 Then
BubbleEvent = False
SBO_Application.SetStatusBarMessage("LLS should not be left blank")
Else
For k = 1 To oMatrix.RowCount()
'oMatrix = oForm.Items.Item("mat1").Specific
oEdit4 = oMatrix.Columns.Item("txttollm").Cells.Item(k).Specific
If oEdit4.String = "" And oEdit4.String = "0.000" Then
BubbleEvent = False
oEdit4.Active = True
SBO_Application.SetStatusBarMessage("LLS should not be left blank")
End If
Next k
End If
Catch ex As Exception
End Try
In matrix for this field i set as numeric(19,6) so it displays "0.000" in matrix this is the problem so its accepting the same value. Plz give me a solution.
Madhavi
If oEdit4.String = "" And oEdit4.String = "0.000" Then
shouldn't it be 'Or' condition? just check it that way.
Binita
Similar Messages
-
Strange problem while checking Mandatory fields
Hi ,
I am checking mandatory fields with the method following method.
CL_WD_DYNAMIC_TOOL=>CHECK_MANDATORY_ATTR_ON_VIEW( VIEW_CONTROLLER = my_controller ).
It was working fine for mandatory fields and also showing one extra input field which is not mandatory with red border .
Please tell me how to avoid this and What could be the problem.
Thanks and Best Regards,
VijayHi Vijay,
the extra vield thats showing in re d will be a field that doesnt support blank entry. try commenting the method thats calling CL_WD_DYNAMIC_TOOL.
CL_WD_DYNAMIC_TOOL=>CHECK_MANDATORY_ATTR_ON_VIEW will check only mandatory fields.. thats for sure.
the error message thats showing on the optional fild is coming from some standard check
Regards
Sarath -
Problem with a mandatory field
Hello Experts, Iu2019m trying to make mandatory the u201CNumAtACardu201D field in the u201CA/P invoinceu201D I´m using this code but it doesnu2019t work
If @transaction_type = 'A' AND @Object_type = '18'
begin
if exists (SELECT T0.docnum FROM dbo.OPCH T0
WHERE T0.NumAtCard is null and T0.DOCENTRY = @list_of_cols_val_tab_del)
select @Error = 1, @error_message = 'Enter Vendor Ref. Number'
end
Hope you can help
Thanks.Hi
I just copied from forum and paste it on my sp_transaction .All I delete was no 1,2,....
I didn't receive any error .
If @transaction_type = 'A' AND @Object_type = '18'
begin
if (SELECT T0.NumAtCard FROM dbo.OPCH T0
where T0.DOCENTRY = @list_of_cols_val_tab_del) is null
Begin
select @Error = 1, @error_message = 'Enter Vendor Ref. Number'
end
End
Can you try one more time
Thank you
Bishal -
Dynamic mandatory field error message is not getting displayed in webui
Hi,
In Appointment if the importance is HIGH i made Location as mandatory.For this i enhanced BT126H_APPT/ApptDetails. In the get_p_location() method of BTACTIVITYYH i have written the code.
Now the problem is Error message for this dynamic mandatory field is not getting displayed in webui.
I debugged in DO_FINISH_INPUT error message is getting generated but it is not getting displayed in ui.
Can anybody tell where the problem is?
Thanks,
Hari.Hi Hari,
Really sorry do not know how to convert this nug file to text
How ever quick solution for your problem would be just keep your validation in 'DO_VALIDATE_INPUT' method of the view controller.
Means even if the User clicks on SAVE , Since it fails here , it would not allow you to go further.
Thanks,
Rajesh P -
What are the Mandatory Fields in Transaction ME51
Hello Seniors,
I have a requirement about purchase order creation. In this process, I am using the BAPI named " BAPI_PO_CREATE1 ". I have passed all the fields but when I debug and look into the internal tables, I couldn't find certain records. I even debugged " bapiret2" and I see an error which reads "" All mandatory fields are missing"". I have even created a PO in ME51 and found out the mandatory fields but in vain. BAPIRET2 still says, there are some more mandatory fields missing. I need to know what are all the mandatory fields to create a Purchase order using TCODE - ME51.
Your reply is most awaited and rewarded.
Thanks and Regards,
MARKIVhi ,
Functionality
Function module BAPI_PO_CREATE1 enables you to create purchase orders. The BAPI uses the technology behind the Enjoy purchase order transaction ( ME21N).
Alternatively, the IDoc type PORDCR1 is available. The data from this IDoc automatically populates the interface parameters of the function module BAPI_PO_CREATE1.
Functionality in Detail
Authorization
The following authorization objects are checked when an Enjoy purchase order is created (activity 01):
M_BEST_BSA (document type in PO)
M_BEST_EKG (purchasing group in PO)
M_BEST_EKO (purchasing organization in PO)
M_BEST_WRK (plant in PO)
Controlling adoption of field values via X bar
For most tables, you can determine via your own parameters in the associated X bar in each case (e.g. PoItemX) whether fields are to be set initial, values inserted via the interface, or default values adopted (e.g. from Customizing or master records) (for example, it is not mandatory to adopt the material group from an underlying purchase requisition - you can change it with the BAPI).
Transfer
Header data
The header data of the Enjoy purchase order is transferred in the table PoHeader.
Item data
The item data of the Enjoy purchase order is stored in the table PoItem (general item data). The delivery schedule lines are stored in the table PoSchedule.
Use the table PoAccount to specify the account assignment information. If account assignments have been specified for services and limits, you show the relevant account assignment line in PoAccount in the table PoSrvAccessValues via the package number of the service or the limit.
Services and limits
Services, free limits and limits with contract reference can be specified in the tables PoServices, PoLimits, and PoContractLimits.
Conditions
Conditions are transferred in the table PoCond; header conditions in the table PoCondHeader. Price determination is reinitiated via the parameter CALCTYPE in the table PoItem.
Vendor and delivery address
The vendor's address can be specified individually in the table PoAddrVendor; the delivery address in the table PoAddrDelivery. If you do not make any individual specification, the fields will be populated via the central address managementfacility.
Note
In this method, the following restrictions apply with regard to addresses:
Addresses can only be created with this method - they cannot be changed. You can only change address data with the method BAPI_ADDRESSORG_CHANGE.
When you create addresses, they are not checked by the method. An Enjoy purchase order may therefore contain faulty address data.
Partner roles
The partners can be maintained individually via the table PoPartner (with the exception of the partner role "vendor").
Import/export data
Import/Export data can be specified per item in the table PoExpImpItem. Foreign trade data can only be transferred as default data for new items.
Texts
Header and item texts can be transferred in the tables PoTextHeader and PoTextItem. Texts for services are imported in the table PoServicesText.
Version Management
You can make use of the Version Management facility via the table AllVersions.
Return
The PO number is returned in the parameter ExpPurchaseOrder. In addition, all information except the service and export/import tables is placed in the output structures.
Return messages
Messages are returned in the parameter Return. This also contains information as to whether interface data has been wrongly or probably wrongly (heuristical interface check) populated. If a PO has been successfully created, the PO number is also placed in the return table with the appropriate message.
Example
Example of population of BAPI interface in the Function Builder
Parameter: POHEADER
COMP_CODE = 1000
DOC_TYPE = NB
ITEM_INTVL = 00001
VENDOR = 0000001000
PMNTTRMS = 0001
PURCH_ORG = 1000
PUR_GROUP = 001
CURRENCY = EUR
Parameter: POHEADERX
COMP_CODE = X
DOC_TYPE = X
ITEM_INTVL = X
VENDOR = X
PMNTTRMS = X
PURCH_ORG = X
PUR_GROUP = X
Parameter: POITEM
PO_ITEM = 00001
MATERIAL = 100-100
PLANT = 1000
STGE_LOC = 0001
QUANTITY = 15.000
TAX_CODE = V0
ITEM_CAT = 0
ACCTASSCAT = K
Parameter: POITEMX
PO_ITEM = 00001
MATERIAL = X
PLANT = X
STGE_LOC = X
QUANTITY = X
TAX_CODE = X
ITEM_CAT = X
ACCTASSCAT = X
Parameter: POSCHEDULE
PO_ITEM = 00001
SCHED_LINE = 0001
DELIVERY_DATE = 02.12.2002
QUANTITY = 6.000
PO_ITEM = 00001
SCHED_LINE = 0002
DELIVERY_DATE = 03.12.2002
QUANTITY = 5.000
PO_ITEM = 00001
SCHED_LINE = 0003
DELIVERY_DATE = 04.12.2002
QUANTITY = 4.000
Parameter: POSCHEDULEX
PO_ITEM = 00001
SCHED_LINE = 0001
PO_ITEMX = X
SCHED_LINEX = X
DELIVERY_DATE = X
QUANTITY = X
PO_ITEM = 00001
SCHED_LINE = 0002
PO_ITEMX = X
SCHED_LINEX = X
DELIVERY_DATE = X
QUANTITY = X
PO_ITEM = 00001
SCHED_LINE = 0003
PO_ITEMX = X
SCHED_LINEX = X
DELIVERY_DATE = X
QUANTITY = X
Parameter: POACCOUNT
PO_ITEM = 00001
SERIAL_NO = 01
QUANTITY = 15.000
GL_ACCOUNT = 0000400000
COSTCENTER = 0000001000
CO_AREA = 1000
Parameter: POACCOUNTX
PO_ITEM = 00001
SERIAL_NO = 01
QUANTITY = X
GL_ACCOUNT = X
COSTCENTER = X
CO_AREA = X
Parameter: POCOND
ITM_NUMBER = 000001
COND_ST_NO = 001
COND_TYPE = PB00
COND_VALUE = 79.900000000
CURRENCY = EUR
CURRENCY_ISO = EUR
COND_UNIT = KG
COND_P_UNT = 1
CHANGE_ID = U
Parameter: POCONDX
ITM_NUMBER = 000001
COND_ST_NO = 000
ITM_NUMBERX = X
COND_TYPE = X
COND_VALUE = X
CURRENCY = X
CHANGE_ID = X
Parameter: POPARTNER
PARTNERDESC = OA
LANGU = EN
BUSPARTNO = 0000001100
PARTNERDESC = GS
LANGU = EN
BUSPARTNO = 0000001200
PARTNERDESC = PI
LANGU = EN
BUSPARTNO = 0000001000
Help in the Case of Problems
1. Note 197958 lists answers to frequently asked questions (FAQs). (Note 499626 contains answers to FAQs relating to External Services Management.)
2. If you have detected an error in the function of a BAPI, kindly create a reproducible example in the test data directory in the Function Builder (transaction code SE37). Note 375886 tells you how to do this.
3. If the problem persists, please create a Customer Problem Message for the componente MM-PUR-PO-BAPI, and document the reproducible example where necessary.
Customer Enhancements
The following user exits (function modules) are available for the BAPI BAPI_PO_CREATE1:
EXIT_SAPL2012_001 (at start of BAPI)
EXIT_SAPL2012_003 (at end of BAPI)
The following user exits (function modules) are available for the BAPI BAPI BAPI_PO_CHANGE:
EXIT_SAPL2012_002 (at start of BAPI)
EXIT_SAPL2012_004 (at end of BAPI)
These exits belong to the enhancement SAPL2012 (see also transaction codes SMOD and CMOD).
There is also the option of populating customer-specific fields for header, item, or account assignment data via the parameter EXTENSIONIN.
Further information
1. Note 197958 contains up-to-date information on the purchase order BAPIs.
2. If you test the BAPIs BAPI_PO_CREATE1 or BAPI_PO_CHANGE in the Function Builder (transaction code SE37), no database updates will be carried out. If you need this function, please take a look at Note 420646.
3. The BAPI BAPI_PO_GETDETAIL serves to read the details of a purchase order. The BAPI cannot read all details (e.g. conditions). However, you can use the BAPI BAPI_PO_CHANGE for this purpose if only the document number is populated and the initiator has change authorizations for purchase orders.
4. Frequently used BAPIs for purchase orders are BAPI_PO_CREATE, BAPI_PO_CREATE1, BAPI_PO_CHANGE, BAPI_PO_GETDETAIL, BAPI_PO_GETITEMS, BAPI_PO_GETITEMSREL, and BAPI_PO_GETRELINFO.
5. For more information on purchase orders, refer to the SAP library (under MM Purchasing -> Purchase Orders) or the Help for the Enjoy Purchase Order, or choose the path Tools -> ABAP Workbench -> Overview -> BAPI Explorer from the SAP menu.
regards
reena -
Credit memo and mandatory fields in Sales order
Dear all,
I have 2 problems, hoping these are not too basic questions I'm asking here.
1). I have created a sales order for credit memo's and I'm using the standard billing type G2.
The amounts are negative in the order & in the billing document, however, when transferring to FI, it is posted as a normal invoice (Debit customer) instead of credit memo.
Where are the posting keys defined or where do you determine which kind of posting will happen in FI based on the billing document?
2). When creation a sales order (VA01), the sales office and sales group should be mandatory fields. What is the best way to do this? Or is the only option to go via the document completeness check?
Many thanks!
Best regards.Hi There,
> 1). I have created a sales order for credit memo's and I'm using the standard billing type G2.
> The amounts are negative in the order & in the billing document, however, when transferring to FI, it is posted as a normal invoice (Debit customer) instead of credit memo.
>
> Where are the posting keys defined or where do you determine which kind of posting will happen in FI based on the billing document?
This is the standard SAP behavior. Simple thing, All the values are negative so when it will post to FI
It will be like
Dr Customer Invoice amount ( which is negative ) so end result is +ve. ( as Debit is -)
I hope its understandable.
For example:
While creation of simple invoice say of 1000 $
Entries were Dr Customer 1000 $
Cr Revenue 1000$
Now After Credit memo
Dr Customer -1000 $
Cr Revenue -1000 $
Which will nullify each other.
> 2). When creation a sales order (VA01), the sales office and sales group should be mandatory fields. What is the best way to do this? Or is the only option to go via the document completeness check?
The best way is to include these two fields in the Sales order incomplete procedure in OVA2. Put Error/warning as required by you.
Thanks,
Raja -
Mandatory fields passing to the structure POCOND in BAPI_PO_CREATE1
Hi,
Please help me that what are the mandatory fields passing to the structure <b>POCOND</b> in <b>BAPI_PO_CREATE1</b>. I am using BAPI to create the PO based on certain conditions. But after creating the PO the condition values are not updating properly. Currently i am not passing any values to the structure.
Your solutions should be highgly appreciated. Please help me this issue as early as possible
Regards,
UdayHi ,
In my current requirement i m using BAPI_PO_CREATE1 to create the PO.
I am passing all the line item detials to the BAPI.
For some of the material rounding value are maintained in MM02 on MRP view.
If the line item material maintains rounding value then instead of taking the PO item quantity, it is taking the rounding value that has maintained in MM02. So to control that i have done the forceful updation using the update statement in one of the exit on BAPI_PO_CREATE1.
Here i m facing one problem. Now i can able to udpate the PO quantity correctly.
But the Condition value maintained in the Condition View still taking the rounding value for calculating.
To control this also i am using update statement on KONV table and the field is KAWRT. But this value is not updating.
Please help any one that in which table the the condition value is going to update and wht are the criteria to update the Condition Value field.
<b>Points should allocate for suitable answer.</b>
Thanks
Uday -
Mandatory fields error messages in HCM forms and processes
Hi,
This may sound to be a very simple problem but I am unable to get to the root of the issue and thus need an expert advise here.
I have created several forms in the system out of which one is an OM form using SAP_PD service for create position. There are few mandatory fields in the form scenario such as
TITLE
ABBREVIATION
EMPLOYEE GROUP
EMPLOYEE SUBGROUP
As expected, system issues an error message if these field are left out blank but the error message is generic for all the fields and is missing the field name.
Actual Error Message
Complete the required entry field ""
Expected Error Message
Complete the required entry field "Employee Group"
Complete the required entry field "Employee Subgroup"
However, there are couple of fields in the form scenario which issues a correct error message
Complete the required entry field "Object abbreviator" (P1000-SHORT)
I am unable to identify the difference between the couple of fields that issues a correct message and rest 20 other fields which doesn't.
Regards,
Murtuza KharodawalaNo, if I enter all the mandatory fields on the form then there is no problem. It allows me to move ahead and submit the form successfully.
As recommended by Siddharth, I tried debugging the message class and what I observed was it passes the complete_fieldname value as Personnel Subarea (I1008_BTRTL) and system expects it to be I1008-BTRTL.
SAP as a fallback tries to read description from the table T5ASRFSCNFLDT but it has a_form_scenario as blank and complete_fieldname has a concatenated value "Personnel Subarea (I1008_BTRTL)" instead of "I1008-BTRTL".
Not sure what am I missing which causes it to have this wrong error message.
Regards,
MK -
Value for mandatory field is missing
Hello again,
I created an application how descripted in 95 Implementing Remote Persistency with CAF and RFCs (Service).
The problem occurred when I try to search for an entry. I get the following error:
german: "ERROR. Wert für Pflichtattribut ... fehlt:"
english: "Value for mandatory field ... is missing"
The option mandatory=true seems to be the problem. But I need this option to make these fields available for the mapping with the create method. After I while of tinkling I find out that the errormessage appears when I set more than to fields to mandatory.
Do anybody know how to resolve this error?
Thanks!Hi Martin,
I reported this issue to development and they said that this is "by design". Here is the recommendation.
1. set the "Mandatory" flag to false for each attribute that is not required by your external interface.
2. perform mappings for only the mandatory attributes in the create method.
3. perform mappings for mandatory and optional attributes in the update method. The update method allows you to map optional attributes.
4. At runtime, first call the create method with only the required attributes, then call the update method to fill any optional attributes.
This should eliminate the error that you get in the Service Browser.
Best Regards,
Austin. -
Hi All,
I have a custom form with 2 fields.
FieldA- LOV(XX,YY)
FieldB becomes required when YY is chosen.
I am able to make fieldB as required, but I am not able to get proper color(yellow).
to achieve this I created a visual group and assigned that to fieldB in runtime using below code:
SET_ITEM_INSTANCE_PROPERTY('FieldB',CURRENT_RECORD,VISUAL_ATTRIBUTE,'DATA_REQUIRED1')
The background color of DATA_REQUIRED1 is r100g100b55. But still I am not able to find the exact yellow that is used for other required field in APPS, my yellow(r100g100b55) is little bit brighter.
Please let me know how to get the visual_attribute of mandatory fields, and assign them in FIELDB.
Note: the entry in registry.dat is:
app.ui.requiredFieldVABGColor=255,0,0(not sure what it means)
Regards,
DebanjanHi...
Use the following code in your List (When list changed trigger)
IF :list_value = 'XX' THEN
SET_ITEM_INSTANCE_PROPERTY('B',CURRENT_RECORD,VISUAL_ATTRIBUTE,'YOUR VISUAL ATTRIBUTE');
ELSIF :list_value = 'YY' THEN
SET_ITEM_INSTANCE_PROPERTY('B',CURRENT_RECORD,VISUAL_ATTRIBUTE,'YOUR DEFAULT VISUAL ATTRIBUTE');
END IF;
And if you have problem with making a field required or not then...
You have to set the property in both 'B' field WHEN VALIDATE ITEM and your list's WHEN LIST CHANGED trigger...
Hope this will help you...
Regards,
Soofi -
Hi!
I have some mandatory fields in my dynpro, but i also have a option to fill data in the dynpro after filling 2 fields and clickin a button.
The problem is that if I click the button, it says that I have to fill the mandatory fields. Is there a way to stop the control-function only for this button-click?
i tried it with exit-commands, but so i don´t get the data from the 2 filled fields, because it only transports the user-command.
thank you in advance!
AndreasHii Andreas..
This is the Solution for u..
You are using the Module AT EXIT-COMMAND to avoid the Mandatory field checks. But in this module the Screen fields are not Copied to Program Variables.
Only the OK_CODE(SY-UCOMM) will be copied.
But you can read the Values of the SCREEN FIELDS by Calling the FM
<b>DYNP_VALUES_READ</b>
(This Fm reads the Screen field values even before they are transported to program)
EG:
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
dyname = sy-cprog
dynumb = sy-dynnr
TABLES
dynpfields = h_dynpfields
EXCEPTIONS
OTHERS = 1.
Let me know if there are any issues.
<b>Reward if Helpful</b> -
Seeburger BIC mapping error(on changing mandatory fields)
Hi Experts,
I am working on IDOC to EDIFACT file scenario with seeburger.
Earlier my end to end scenario was working fine. I got a requirement to change all the mandatory fields of segment NAD into non mandatory field. To acheive this i changed my Seeburger BIC mapping and target XSD in PI. After this process i create .sca file and ask basis to upload it.
But after deployment i am getting error in communication channel where i am using BIC mapping. The error is message is quite big, still i am attaching a part of it. Please help
Message processing failed. Cause: Error in BICMODULE-module:Temporary error: BIC XI Adapter call failed. Reason: 2 errors occured. First error: BICMapping: runMapping() FATAL ERROR: java.lang.OutOfMemoryError: Java heap space (failed to allocate 16777240 bytes) Stacktrace: java.lang.OutOfMemoryError: Java heap space (failed to allocate 16777240 bytes) at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:95) at java.io.BufferedOutputStream.write(BufferedOutputStream.java:105) at sun.nio.cs.StreamEncoder$CharsetSE.writeBytes(StreamEncoder.java:336) at sun.nio.cs.StreamEncoder$CharsetSE.implWrite(StreamEncoder.java:395) at sun.nio.cs.StreamEncoder.write(StreamEncoder.java:136) at java.io.OutputStreamWriter.write(OutputStreamWriter.java:191) at java.io.BufferedWriter.flushBuffer(BufferedWriter.java:111) at java.io.BufferedWriter.write(BufferedWriter.java:212) at java.io.Writer.write(Writer.java:126) at com.seeburger.jucon.dochandler.util.GrammarFileWriter.write(GrammarFileWriter.java:262) at com.seeburger.jucon.dochandler.EdiSegmentData.write(EdiSegmentData.java:234) at com.seeburger.jucon.dochandler.Segment.write(Segment.java:645) at com.seeburger.jucon.dochandler.EdiSegmentData.write(EdiSegmentData.java:390) at com.seeburger.jucon.dochandler.Segment.write(Segment.java:645) at com.seeburger.jucon.dochandler.EdiDocWriter.write(EdiDocWriter.java:367) at com.seeburger.jucon.dochandler.InhouseDocWriter.flush(InhouseDocWriter.java:884) at com.seeburger.jucon.mapping.Mapping.run(Mapping.java:2429) at com.seeburger.jucon.seebicapi.BICMapping.runMapping(BICMapping.java:1724) at com.seeburger.jucon.seebicapi.BICMapping.run(BICMapping.java:2518) at com.seeburger.jucon.seebicapi.BICMapping.startSyncMapping(BICMapping.java:1415) at com.seeburger.bicxiadapter.CCIInteraction.convert(CCIInteraction.java:1201) at com.seeburger.bicxiadapter.CCIInteraction.convertCalledFromModule(CCIInteraction.java:911) at com.seeburger.bicxiadapter.CCIInteraction.execute(CCIInteraction.java:313) at com.seeburger.xi.api.cci.impl.nw71.SeeXIInteractionProxy71.execute(SeeXIInteractionProxy71.java:86) at com.seeburger.bicxiadapter.module.CallBicXIRaBean.process(CallBicXIRaBean.java:384) at com.seeburger.xi.api.module.impl.nw71.SeeModuleAdapter71.process(SeeModuleAdapter71.java:78) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.sap.engine.services.ejb3.runtime.impl.RequestInvocationContext.proceedFinal
java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:169) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:266) DESCRIPTION: BICMapping: FATAL ERROR: Internal Fault. Class could not be load or instatiated. Check Installation, access rights. Last error: java.lang.OutOfMemoryError: Java heap space (failed to allocate 16777240 bytes)
Regards,
ShradhaHi,
Even I faced a Similar problem...
1) make sure that the size of the data that is coming to BIC map is not larger than the size defined in the Source field (Check In BIC and SAP XI/PI map.
2) Make sure id any other seeburger mapping are working fine , This is because you have to deploy the file in form of Active mapping.sca in SAP XI/PI after the changes are made on BIC side.
3) Check the Adapter Engine Cache ...
Hope this helps..
Regards,
Sainath Chutke -
Behaviour of radiobutton and mandatory fields in a selection screen
Hello all
In the selection screen in a report , I have one mandatory field F1 and 2 radio button p_val and p_prov. there's no relationship between p_prov, p_val & F1.
I have 2 others fields p_dom and p_seg which are active when I select p_val : they are also mandatory when selecting p_val.
p_prov is the default radiobutton so p_dom and p_seg are inactive when the screen appears
I have 2 problems :
1 - First I select p_val (the message for F1 as mandatory appears -> normal) so p_val appears selected but The 2 fields p_dom and p_seg are not active. I would like them to be active even I have not filled F1.
2- I fill F1then I select p_val, so p_dom and p_seg are active, I fill only p_dom but not p_seg : I select radio button p_prov (the message for p_seg as mandatory appears -> normal) : p_prov appears selected but I don't want it.
Thanks for your help.
below the code of selection screen with event at selection-screen output :
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS : p_val RADIOBUTTON GROUP GR2 USER-COMMAND radio.
SELECTION-SCREEN COMMENT 4(37) text-132.
SELECTION-SCREEN END OF LINE.
PARAMETERS : p_dom TYPE GSBER OBLIGATORY MODIF ID SC1.
PARAMETERS : p_seg TYPE FB_SEGMENT OBLIGATORY MODIF ID SC1.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS : p_prov RADIOBUTTON GROUP GR2 DEFAULT 'X'.
SELECTION-SCREEN COMMENT 4(37) text-133.
SELECTION-SCREEN END OF LINE.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF SCREEN-GROUP1 = 'SC1'.
IF p_prov = 'X'.
SCREEN-INPUT = '0'.
SCREEN-REQUIRED = '0'.
ENDIF.
IF p_val = 'X'.
SCREEN-INPUT = '1'.
SCREEN-REQUIRED = '1'.
ENDIF.
MODIFY SCREEN.
ENDIF.
ENDLOOP.hello Jerome,
Here you go.
2 things to remember:
1. Remove the obligatory addition from all fields.
2. Remove the input required while changing the screen elements.
PARAMETER: f1 TYPE c LENGTH 10.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS : p_val RADIOBUTTON GROUP gr2 USER-COMMAND radio.
SELECTION-SCREEN COMMENT 4(37) text-132.
SELECTION-SCREEN END OF LINE.
PARAMETERS : p_dom TYPE gsber MODIF ID sc1.
PARAMETERS : p_seg TYPE fb_segment MODIF ID sc1.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS : p_prov RADIOBUTTON GROUP gr2 DEFAULT 'X'.
SELECTION-SCREEN COMMENT 4(37) text-133.
SELECTION-SCREEN END OF LINE.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF screen-group1 = 'SC1'.
IF p_prov = 'X'.
screen-input = '0'.
ENDIF.
IF p_val = 'X'.
screen-input = '1'.
ENDIF.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
AT SELECTION-SCREEN.
CHECK sy-ucomm <> 'RADIO'.
IF p_val = 'X'.
IF p_dom IS INITIAL OR p_seg IS INITIAL.
MESSAGE 'Fill Mandatory fields' TYPE 'E'.
ENDIF.
ENDIF.
IF f1 IS INITIAL.
MESSAGE 'Fill F1' TYPE 'E'.
ENDIF.
Thanks,
Jinesh. -
Check duplicate data entry in multi record block,which is a mandatory field
Dear all,
I have a situation where i have to check duplicate data entry(on a particular field,which is a mandatory field,i.e. it cannot be skipped by user without entering value) while data key-in in a Multi Record block.
As for reference I have used a logic,such as
1>In a When-Validate-Record trigger of that block I am assigning the value of that current item in Table type variable(collection type)
as this trigger fire every time as soon as i leave that record,so its assigning the value of that current time.And this process continues
then
2>In a When-Validate-Item trigger of that corresponding item(i.e. the trigger is at item level) has been written,where it compares the value of that current item and the value stored in Table type variable(collection type) of When-Validate-Record trigger.If the current item value is matched with any value stored in Table type variable I am showing a message of ('Duplicate Record') following by raise_form_trigger failure
This code is working fine for checking duplicate value of that multi record field
The problem is that,if user enter the value in that field,and then goes to next field,enter value to that field and then press 'Enter Query 'icon,the bolth Validate trigger fires.As result first when-validate record fires,which stores that value,and then when-validate-item fires,as a result it shows duplicate record message
Please give me a meaningful logic or code for solving this problem
Any other logic to solve this problem is also welcome@Ammad Ahmed
first of all thanks .your logic worked,but still i have some little bit of problem,
now the requirement is a master detail form where both master and detail is multirecord ,where detail cannot have duplicate record,
such as..........
MASTER:--
A code
A1
A2
DETAIL:--
D code
d1
d2 <-valid as for master A1 , detail d1 ,d2 are not duplicate
d2 <--invalid as as for master A1 , detail d2 ,d2 are duplicate
validation rule: A Code –D Code combination is unique. The system will stop users from entering duplicate D Code for a A Code. Appropriate error message will be displayed.*
actually i am facing a typical problem,the same logic i have been applied in detail section ,its working fine when i am inserting new records.problem starts when i query,after query in ' a ' field say 2 records (i.e. which has been earlier saved) has been pasted,now if i insert a new record with the value exactly same with the already present value in the screen(i.e. value populated after query) its not showing duplicate.................could u tell me the reason?and help me out...............its urgent plzzzzzzzzz
Edited by: sushovan on Nov 22, 2010 4:34 AM
Edited by: sushovan on Nov 22, 2010 4:36 AM
Edited by: sushovan on Nov 22, 2010 8:58 AM -
Mandatory field required in PCUI Account Management
hi gurus,
i am on CRM project with PCUI as front end interphase. my requirement is to have a mandatory field in Account management. for ex i want have First name and Search term to mandatory fields with Red Star(astrich) against these two fileds. for this i tried to control in the field groupings and crmc_blueprint_ct also. but its not working and when i tried to save the account its throwing and errors
"*Enter a value for field Date organization founded", "*
*"Enter a value for field Name 1 of organization"*
*"Enter a value for field Name 2 of organization".*
despite filling all the fields the system is throwing the above errors. so please help me in solving this problem.
Thanks in advanceHi Nanda Kishore,
All you need to do is, in the field group structure for the fields, the field attribute 'Mandatory' check box has to be checked. Then the field group has to be regenerated.
If you have already done this plz send the URL you are using or the procedure how you are launching the application.
Cheers,
Naveen
Maybe you are looking for
-
I have got N96 today and I want to update the firware from v12 to v20 but FOTA says v30 is available,please any help about this cuz under v30,the feature is supported.I prefer v20 to 30 Solved! Go to Solution.
-
I'll start by apologising, I have searched but was unable to find anything similar to my post, so if there is already a thread with this subject please point me in the right direction. Ok I have two user accounts set up on a PMG5 dual 2.3GHz 4.5GB ra
-
My file(xxx.mf) contains big single line which includes header,details,tailer and number of records. example RA.........RW...RS.....RW....RS.....RW...RS..RT...39214 This RA......... header record(1024 bytes) RW...RS.....RW....RS.....RW...RS..(38MB ap
-
Why does Adobe Premiere Elements 12 render only audio?
I have a brand new laptop with all required specs to run Adobe Premiere. I only have the trial version of PRE12 at the moment. The program itself actually runs great, but I can't seem to get it to render correctly. I film on a GoPro Hero 3 White Edit
-
How to install only Garageband from OS 10.6 install discs?
Hi. I recently got a new Mac with OS 10.6.2. It came with the iLife Apps installed.For reasons I won't get into ......I had to try to install the older iMovie 08 (which I believe had some sound files connected to Garageband).After attempting that ins