Assigning the field as mandatory in ChaRM
Hi,
could u please tell me how can I assign one particular field as mandatory? Say, I want the CAB field to be mandatory. In standard scenario, you dont need to fill the CAB field. If I want that to become a mandatory field, what all the configuration I need to do?
Please advice.
Rajeev.
Hi
There are 2 ways
with configuration
you can goto partner determination and for the CAB make the mininmum field as "1" ......this make it mandatory
the user will get a error message in the error button but they can proceed further.
with coding
If you want to have a pop up then you need to go for coding BADI for your transaction type ...and you will get a pop that unless CAB is entered users can't proceed
Hope it clarifies.
Regards
Prakhar
Similar Messages
-
Help reqd for coding to assign the field as mandatory.
HI all,
I got the user exit and also assigned the component as "EXIT_SAPLMRIM_002"..im now here to create a code under the include program of "ZM08U09"....for to make the amount field as mandatory(obligatory)..with some pop-up message...
how to do that....
Do u people have any experience on this...pls post ur comments on urgent basis.
thanks & regards
sankar.Hi Sriram.P
thanks for ur prompt reply
...but actually,my problem is...i dont know the exact table for miro (invfp-wrbtr showing in the screen)....i've already prepared some coding but the table i've mentioned is not the correct one...
Do u know the table for Incoming invoices records (MIRO)
thanks & regards
sankar. -
How doset the Field as mandatory at UI Level
Hi all,
How do set the field as mandatory at UI Level.
Thanks in advance
C.KarukkuvelHi Pedja,
Thanks.Working fine.
Regards
C.Karukkuvel -
Help on how to assign a field as mandatory in MIRO and name of user exit
Hi all,
the requirement is...
In MIRO,the Incoimg invoice should not be posted without an empty field of amount(WRBTR) in the Basic Data.Currently as per std,it's not a mandatory field and can be posted by not entering any amount in that.So, either we have to make it as a mandatory field or should restrict not to saving the data if posting of empty field.(Not giving any amount)***seems,it tells the user to give the amount as mandatory.
How to do this.....if its coming under the USER Exit object...pls post both how to get the std program and enhancement assignment(it asks while creating user exit in CMOD) also for user exit.
thanks & regards
sankar.Hi,
Double click the screen number in the table maintainece generator for which you want to make the field mandatory. Goto element list tab, in that goto the special attributes tab, there you change the input column value of the field to required from the drop down list and save, activate. Now the field will be mandatory in the table maintainence screen.
OR
1) Make the field as a KEY field in the table, If Possible.
2) If the field can't be made as a part of the key field, then you have to create Event for the Table. Goto the table maintenance generator. Goto Environment->Modification->Event and add your logic in the required event.
Make change in the Screen will not help i think because whenever the Table maintenance is regenerated, the changes will be reverted back.
Reward points if found helpful...
Cheers,
Chandra Sekhar. -
How to make the field as mandatory in module pool program.
Hi Experts,
Could you please advice me in making a screen field as mandatory input field in module pool programming.
Thanks in advance.Or you could add a check in a PAI module to check if there is some value, if not give error message.
module check_value.
if lv_value is initial.
message e001(00) with 'Enter a value'.
endif.
endmodule
In the PAI screen flow logic...
Process after input.
field lv_value module check_value.
Regards,
Rich Heilman -
Problem while assigning the fields of EBM to ABM in Provider
Hi All,
I am facing a problem with the fields of EBM not being able to Assign to ABM in ProviderBPEL
In RequestorABCSImpl, i am transforming a ABM to SupplierPartyEBM(CreateSupplierPartyListEBM is the type i am using)
Field called 'PayementTerm' is being mapped as below
<corecom:PaymentTerm>
<corecom:Code>
<xsl:value-of select='dvm:lookupValue(concat("oramds:/apps/AIAMetaData/dvm/","SY_SUPPLIERPARTY_TERMTYPE",".dvm"),"MULTISYS_01",tnsaboabo:PaymentTerm/text(),"COMMON",aia:getServiceProperty($ServiceName,"SyncSupplierPartyList.PaymentTerm.Code",false()))'/>
</corecom:Code>
</corecom:PaymentTerm>
after transform I am able to see the value for PaymentTerm/Code while testing requestor.
Now in provider I am using an Assign activity to assign 'PaymentTerm/Code' to ABM field called 'termID '
Here
'PaymentTerm/Code' is a TermType
'termID ' is a string.
When i test end to end
i am getting an error while assigning 'PaymentTerm/Code' to 'termID'
Error i am getting is "Error in evaluate<from expression at line 677. the result is empty for xpath expression inputvariable/./../PaymentTerm/Code
Please guide me what is wrong in this. In Input Payload i am able to see the value coming in provider but while assigning i'ts failingThis is the input xml
<CreateSupplierPartyListReqMsg><part name="CreateSupplierPartyListEBM" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><CreateSupplierPartyListEBM xmlns="http://xmlns.oracle.com/EnterpriseObjects/Core/EBO/SupplierParty/V1" xmlns:wsa="http://www.w3.org/2005/08/addressing">
<EBMHeader xmlns:fpsdataabo="http://xmlns.cassini.telenor.com/FPS/SupplierParty/V1" xmlns:corecom="http://xmlns.oracle.com/EnterpriseObjects/Core/Common/V2" xmlns="http://xmlns.oracle.com/EnterpriseObjects/Core/Common/V2"><corecom:EBMID>2d323432363737383037393633373932</corecom:EBMID><corecom:EBMName>{http://xmlns.oracle.com/EnterpriseObjects/Core/EBO/SupplierParty/V1}CreateSupplierPartyListEBM</corecom:EBMName><corecom:EBOName>{http://xmlns.oracle.com/EnterpriseObjects/Core/EBO/SupplierParty/V1}SupplierPartyEBO</corecom:EBOName><corecom:CreationDateTime>2012-12-07T08:51:15.135+01:00</corecom:CreationDateTime><corecom:VerbCode>Create</corecom:VerbCode><corecom:MessageProcessingInstruction><corecom:EnvironmentCode>PRODUCTION</corecom:EnvironmentCode></corecom:MessageProcessingInstruction><corecom:Sender xmlns="http://xmlns.oracle.com/EnterpriseObjects/Core/EBO/SupplierParty/V1" xmlns:ebo="http://xmlns.oracle.com/EnterpriseObjects/Core/EBO/SupplierParty/V1" xmlns:ehdr="http://www.oracle.com/XSL/Transform/java/oracle.tip.esb.server.headers.ESBHeaderFunctions" xmlns:hashmap="http://www.oracle.com/XSL/Transform/java/java.util.HashMap"><corecom:ID>MULTISYS_01</corecom:ID><corecom:CallingServiceName>{http://xmlns.oracle.com/ABCSImpl/Multisys/Core/SyncSupplierPartyListMultisysReqABCSImpl/V1.0}SyncSupplierPartyListMultisysReqABCSImpl</corecom:CallingServiceName><corecom:Custom xmlns:xacml="urn:oasis:names:tc:xacml:2.0:context:schema:cd:04" xmlns:tnsaboabo="http://xmlns.cassini.telenor.com/Multisys/SupplierParty/V1"><corecom:LegalEntityReference><corecom:LegalEntityIdentification><corecom:ID/></corecom:LegalEntityIdentification></corecom:LegalEntityReference></corecom:Custom></corecom:Sender><corecom:Target><corecom:ID>EBIZ_01</corecom:ID></corecom:Target><corecom:BusinessScope><corecom:ID>Supplier Party - 0000001</corecom:ID><corecom:InstanceID>CreateSupplierPartyList/32313433363838393939393637303532</corecom:InstanceID><corecom:BusinessScopeTypeCode>BusinessProcess</corecom:BusinessScopeTypeCode><corecom:EnterpriseServiceName>{http://xmlns.oracle.com/EnterpriseServices/Core/SupplierParty/V1}SupplierPartyEBSV1</corecom:EnterpriseServiceName><corecom:EnterpriseServiceOperationName>CreateSupplierPartyList</corecom:EnterpriseServiceOperationName></corecom:BusinessScope><corecom:BusinessScope><corecom:ID>CreateSupplierPartyListReqMsg</corecom:ID><corecom:InstanceID>CreateSupplierPartyListReqMsg/2d323432363737383037393633373932</corecom:InstanceID><corecom:BusinessScopeTypeCode>Message</corecom:BusinessScopeTypeCode><corecom:EnterpriseServiceName>{http://xmlns.oracle.com/EnterpriseServices/Core/SupplierParty/V1}SupplierPartyEBSV1</corecom:EnterpriseServiceName><corecom:EnterpriseServiceOperationName>CreateSupplierPartyList</corecom:EnterpriseServiceOperationName></corecom:BusinessScope><corecom:EBMTracking><corecom:SequenceNumber>1</corecom:SequenceNumber><corecom:ExecutionUnitID/><corecom:ExecutionUnitName>{http://xmlns.oracle.com/EnterpriseFlows/Core/SyncSupplierPartyListEBF/V1}SyncSupplierPartyListEBFV1</corecom:ExecutionUnitName><corecom:ImplementationCode>BPEL</corecom:ImplementationCode><corecom:ActivityDateTime>2012-12-07T08:51:15.136+01:00</corecom:ActivityDateTime></corecom:EBMTracking><xacml:Request xmlns:xacml="urn:oasis:names:tc:xacml:2.0:context:schema:cd:04"/></EBMHeader>
<DataArea><corecom:Create xmlns:corecom="http://xmlns.oracle.com/EnterpriseObjects/Core/Common/V2"/><ebo:SyncSupplierPartyList xmlns:ebo="http://xmlns.oracle.com/EnterpriseObjects/Core/EBO/SupplierParty/V1"><corecom:Identification xmlns:corecom="http://xmlns.oracle.com/EnterpriseObjects/Core/Common/V2"><corecom:ID schemeID="SY_SUPPLIERPARTY_SUPPLIERPARTYID" schemeAgencyID="XREF">33363339373538363835333734303432</corecom:ID><corecom:ContextID>c</corecom:ContextID><corecom:ApplicationObjectKey><corecom:ID schemeID="VENDOR_NUMBER" schemeAgencyID="MULTISYS">0000001</corecom:ID></corecom:ApplicationObjectKey></corecom:Identification><corecom:PartyLocation xmlns:corecom="http://xmlns.oracle.com/EnterpriseObjects/Core/Common/V2"><corecom:Identification><corecom:ApplicationObjectKey><corecom:ID>0000001</corecom:ID></corecom:ApplicationObjectKey></corecom:Identification><corecom:LocationReference><corecom:Address><corecom:LineOne>Hillev?gsv 24</corecom:LineOne><corecom:LineTwo>Hillev?gsv 24</corecom:LineTwo><corecom:LineThree>Hillev?gsv 24</corecom:LineThree><corecom:LineFour>Hillev?gsv 24</corecom:LineFour><corecom:CityName>STAVANGER</corecom:CityName><corecom:PostalCode>4016</corecom:PostalCode></corecom:Address></corecom:LocationReference></corecom:PartyLocation><corecom:PartyContact xmlns:corecom="http://xmlns.oracle.com/EnterpriseObjects/Core/Common/V2"><corecom:Contact><corecom:PersonName><corecom:FirstName>Nordialog Stavanger</corecom:FirstName></corecom:PersonName></corecom:Contact></corecom:PartyContact><corecom:Organization xmlns:corecom="http://xmlns.oracle.com/EnterpriseObjects/Core/Common/V2"><corecom:Name>Nordialog Stavanger</corecom:Name><corecom:LegalStructureCode>00</corecom:LegalStructureCode><corecom:OrganizationFinancialProfile><corecom:FinancialProfile><corecom:FinancialAccount><corecom:AccountNumber>54130613600</corecom:AccountNumber><corecom:TypeCode>SUPPLIER</corecom:TypeCode><corecom:CurrencyCode>NOK</corecom:CurrencyCode></corecom:FinancialAccount></corecom:FinancialProfile></corecom:OrganizationFinancialProfile></corecom:Organization><ebo:CustomerNumber>0000001</ebo:CustomerNumber><ebo:MinimumOrderAmount>0</ebo:MinimumOrderAmount><ebo:TypeCode>VENDOR</ebo:TypeCode><ebo:OneTimeIndicator>false</ebo:OneTimeIndicator><ebo:SupplierPartyTradingLocationProfile><corecom:Identification xmlns:corecom="http://xmlns.oracle.com/EnterpriseObjects/Core/Common/V2"><corecom:ID schemeID="SY_SUPPLIERPARTY_SUPPLIERPARTYTRADINGLOCATIONPROFILEID" schemeAgencyID="XREF">2d323735363933313339333732353537</corecom:ID><corecom:ApplicationObjectKey><corecom:ID schemeID="VENDOR_NUMBER" schemeAgencyID="MULTISYS">0000001</corecom:ID></corecom:ApplicationObjectKey></corecom:Identification><ebo:PrimaryIndicator>true</ebo:PrimaryIndicator><ebo:FreightTermsCode/><ebo:HoldReasonCode/><ebo:InvoiceCurrencyCode/><ebo:PaymentCurrencyCode/><ebo:PaymentPriorityCode>99</ebo:PaymentPriorityCode><ebo:TermsDateBasisCode/><ebo:VATTaxCode>SY25VAT</ebo:VATTaxCode><ebo:VATRegistrationNumber/><ebo:ExcludeFreightFromDiscountIndicator>false</ebo:ExcludeFreightFromDiscountIndicator><ebo:PurchasingEnabledIndicator>false</ebo:PurchasingEnabledIndicator><ebo:RFQOnlyIndicator>false</ebo:RFQOnlyIndicator><corecom:PaymentTerm xmlns:corecom="http://xmlns.oracle.com/EnterpriseObjects/Core/Common/V2"><corecom:Code>6 DAYS</corecom:Code></corecom:PaymentTerm><ebo:TradingLocationProfileAddress><corecom:Address xmlns:corecom="http://xmlns.oracle.com/EnterpriseObjects/Core/Common/V2"><corecom:LineOne>Hillev?gsv 24</corecom:LineOne><corecom:LineTwo>Hillev?gsv 24</corecom:LineTwo><corecom:CityName>STAVANGER</corecom:CityName><corecom:PostalCode>4016</corecom:PostalCode></corecom:Address></ebo:TradingLocationProfileAddress></ebo:SupplierPartyTradingLocationProfile></ebo:SyncSupplierPartyList></DataArea>
</CreateSupplierPartyListEBM></part></CreateSupplierPartyListReqMsg>
And my assign is
bpws:getVariableData('CreateSupplierPartyListReqMsg','CreateSupplierPartyListEBM','/WL5G3N2ebo:CreateSupplierPartyListEBM/WL5G3N2ebo:DataArea/WL5G3N2ebo:CreateSupplierPartyList/WL5G3N2ebo:SupplierPartyTradingLocationProfile/corecom:PaymentTerm/corecom:Code') to an 'invoke_InputVariable/termid' -
Want to Make the field as Mandatory in Forms
Hi All
I need to make the field "Task Number" of Project ->Events screen as mandatory.
Please advice me how i can achive this custom.pll ?
Regards
RajkumarSince we are using 11.5.9 , we cannot do the personalization.So i would like to do this thru custom.pll
So i am going to try this code
IF form_name = '<name of form>'
THEN
IF event_name = 'WHEN-NEW-FORM-INSTANCE'
THEN
app_item_property2.set_property(
'<name of block>.<name of item>'
, REQUIRED
, PROPERTY_ON
END IF;
END IF;
But i couldnt open the custom.pll from the client machine where forms installed thru 'apps user".
It says "PDE - PLI018 Couldnot find library SCSFIN". So i copied the SCSFIN and FNDSQF files in client machine and opened the FNDSQF FIle successfully.
After i tried to open the SCSFIN.pll, it is saying "PDE - PLI018 Couldnot find library FNDSQF"
Please help me with this error.
Regards
Rajkumar -
How to maintain the fields mandatory in Opportunity and quotation SAP CRM?
Hello All,
I have the following two requirements :
1.Need to mark the fields as mandatory in SAP CRM Opportunity (description,sales prospect,phase,status,opportunity group,origin
,product(description,quantity,expected total value) ,Milestones(Start date and end date),Organization.
2.Also the fields in SAP CRM Quotation ( Prodcut,Usage,Project Manager ITS (an Employee) and Capitalization ( our Z-customer field)
How to achieve this ? Is this can be done through pure customization in SAP CRM or any developers work involves? We are using SAP CRM 4.0 .
Pls provide the solution at the earliest .
Cheers
SreedharSome can be done thru customazing in spro>crm>basic settings>incompleteness>Define Incompleteness Procedures. For more enhanced functionality you can use also badi under spro>crm>basic settings>incompleteness>Business Add-In for Incompleteness Check in Business Transac.
To define incompleteness for exampla for SAP CRM Opportunity - description, do the following in spro>crm>basic settings>incompleteness>Define Incompleteness Procedures:
- create new incompletenes group: e.g. ZOPP
- assign this group to your opportunity transaction type
- define incompleteness procedure:
- object type: ORDERADM_H
- field name: DESCRIPTION
- relavance: HEADER
- message: ERROR
- define determination
Regards. -
Set Project Assignment of Requests as Mandatory in Change RequestManagement
Hi Guys,
I am working solution manager 4.0 CHARM implementation. now my issue is i want to set project assignment of requests as mandatory in CHARM. but when i go to transaction code /tmwflow/cmsconf i dont find any projects.
Before this i have created a maintenance project for CHARM with maintenance cycle and activated change request management and i also generated IMG project for my maintenance project, but still i could not find any projects in /tmwflow/cmsconf. Therefore i would like to request you people to give your valuable inputs for this at the earliest possible.
Thanks&Regards
RajuHi Yorker,
For the first part of your question where you want to make a field mandatory in the sales view of article master, you can do it through t-codes OMSR and OMS9 where you can find the field selection group to which your field is attached and change that field to reqd entry.
And for the secod part where you want to find out articles where this field does not have a value. Goto SE16N or SE16 and for that field click on the selection options button and select = and leave the field blank. This will give you all articles that don't have a value in this field.
Regards
Kaizad. -
EhP5 WDA ESS: Not able to marke fields as mandatory
Hello Community,
currently I am customizing WDA ESS Scenarios on EhP5. I added some new fields in the method IF_FPM_GUIBB_FORM~GET_DEFINITION of the feeder class for the scenario.
The method has also an EXPORTING Parameter for the field descriptions (ET_FIELD_DESCRIPTION).
The table line is structure of FPMGB_T_FORMFIELD_DESCR and I did the following to mark some fields as 'mandatory':
READ TABLE et_field_description WITH KEY name = 'STRAS' ASSIGNING <fs_wa_mand_field>.
<fs_wa_mand_field>-MANDATORY = abap_true.
READ TABLE et_field_description WITH KEY name = 'PSTLZ' ASSIGNING <fs_wa_mand_field>.
<fs_wa_mand_field>-MANDATORY = abap_true.
READ TABLE et_field_description WITH KEY name = 'ORT01' ASSIGNING <fs_wa_mand_field>.
<fs_wa_mand_field>-MANDATORY = abap_true.
READ TABLE et_field_description WITH KEY name = 'ZZ_CITY_CODE' ASSIGNING <fs_wa_mand_field>.
<fs_wa_mand_field>-MANDATORY = abap_true.
READ TABLE et_field_description WITH KEY name = 'MELDEZETTEL' ASSIGNING <fs_wa_mand_field>.
<fs_wa_mand_field>-MANDATORY = abap_true.
Now I expect, that the fields on the ESS scenario would have a red asterisk. But I am also able to save the data with not entering all neccessary data.
What I have to do, to mark the fields as mandatory?
Thank you and best regards, ChristianHello community,
I've found the problem.
So in method IF_FPM_GUIBB_FORM~GET_DATA the table CT_FIELD_USAGE was overwritten. At the top of the method this table had the information about all mandatory field. But during the processing the table was overwritten and the information which fields are mandatory, as well.
So if you define the mandatoy fields at the bottom of the method you will get the red asterisk.
Here the code snippet:
FIELD-SYMBOLS <fs_wa_mand_field> TYPE FPMGB_S_FIELDUSAGE.
*** Define maddatory fields
READ TABLE CT_FIELD_USAGE WITH KEY name = 'STRAS' ASSIGNING <fs_wa_mand_field>.
<fs_wa_mand_field>-MANDATORY = abap_true.
READ TABLE CT_FIELD_USAGE WITH KEY name = 'PSTLZ' ASSIGNING <fs_wa_mand_field>.
<fs_wa_mand_field>-MANDATORY = abap_true.
READ TABLE CT_FIELD_USAGE WITH KEY name = 'ORT01' ASSIGNING <fs_wa_mand_field>.
<fs_wa_mand_field>-MANDATORY = abap_true.
READ TABLE CT_FIELD_USAGE WITH KEY name = 'ZZ_CITY_CODE' ASSIGNING <fs_wa_mand_field>.
<fs_wa_mand_field>-MANDATORY = abap_true.
READ TABLE CT_FIELD_USAGE WITH KEY name = 'MELDEZETTEL' ASSIGNING <fs_wa_mand_field>.
<fs_wa_mand_field>-MANDATORY = abap_true.
Thank you and best regards, Christian -
PO no. field is mandatory PO, purchaser has to create a Down Payment Reques
Hi Guyas
whenever an advance is to be released against a
PO, purchaser has to create a Down Payment Request through t. code F-47.
Right now, PO no. field is not mandatory & system allows users to create
a down payment request due to which same cost isn't getting reflected in
the project structure report as well as in the PO history.
Please help me
JKHi,
I got your issue.
You are trying to create a down payment request for an asset PO.
As a standard behaviour of the system, it always allows you to create down payment requests without PO reference also.
If you make the field status mandatory for the PO number field for field status group used in your alternative recon GL account of vendors, then you cannot create further down payment requests without a PO reference.
One more issue is that, if you do a down payment req for a asset PO, then the asset used in that PO will be capitalised also during F-48, if u do F-48 with reference to F-47 DP request. But most the companies does not want the asset to be capitalised at the Down payment level.
So i have a solution to fix this issue. Which will post down pay req and down payments as like for normal POs.
First find the field status groups, which are used in your alternative recon accounts of spl GL indicator F and A.
Then go to OBC4, and choose those field status groups and go to asset accounting part and supress and fields ASSET NO and Sub number.
Then go to OBA5, enter message class as F5 and enter
There add an entry for message number 378 and change the message type as W.
Now do F-47. It will now be posted as like normal POs only. And the F-48 also will be fine.
This will completely resolve your issue.
Thanks,
Srinu
SRB_ASSETPO -
Select -options (fields as mandatory) and alv
Hi all,
i have 5 fields in select options and alv table , based on selection criteria values will display in alv table. now i want to make 2 fields as mandatory in select-options. without entering values in those two fields it should not allow the values to display iin alv table , it should rise a message..
(i have not created node for select-options ,i have directly used data type in wddoinit for select-options and for alv table i have created node)
thanks allHi,
In wddoinit while creating select options by ADD_SELECTION_FIELD method ,it has a parameter called I_OBLIGATORY. Set it as X and thus the field becomes mandatory.
Regards
Karthiheyan M -
How to make amount field as mandatory in portal
Hi experts,
We are working on EHP5 , Ecc 6.0. I am working on claims and reimbursements module . We have already done the configurations and in the portal i need to make an amount field as mandatory . I have gone to content administration - Portal Content - Content provided by SAP- End user content - Employee self Service - I views- Benefits and payments - India- Claim Advance request . Here i have selected an iview then Right click on that we can see the properties. there i have made the field as mandatory . It is getting applicable. But when i close the particular screen and click on that iview the same screen comes across with the field not getting mandatory . Wat are the other steps which i need to make this field as mandatory and gets applicalble to all claim types. So please reply .
. So please respond experts.
Thank you
LokeshHello Lokesh,
For all specific claim types while configuring customized header fields in view V_T77WWW_CLHLDC
& configuring customized multiple line fields in view V_T77WWW_CLMLDC there is an option in the form of checkbox to make those fields mandatory.
The mandatory checkbox can be seen inside the box generic properties.
I trust this clarifies.
Regards,
Pankaj -
Dynamic assign in field symbols
dynamic assign in field symbols
Hi,
DYNAMIC ASSIGN:
If you do not know the name of the field that you want to assign to the field symbol when you write a program, you can use a dynamic ASSIGN statement:
ASSIGN (<f>) TO <FS>.
This statement assigns the field whose name is contained in the field <f> to the field symbol <FS>. You cannot use offset and length in a dynamic ASSIGN.
At runtime, the system searches for the corresponding data object in the following order:
If the ASSIGN statement is in a procedure, the system searches first in its local data.
If it cannot find the object in the local data (or if the ASSIGN statement is not in a procedure), it then looks in the local data of the program.
If the field does not exist in the global data of the program, the system looks in the table work areas declared with the TABLES statement in the main program of the current program group. A program group consists of a main program and all of the programs that are loaded into the same internal session as a result of other program calls.
If the search is successful and a field can be assigned to the field symbol, SY-SUBRC is set to 0. Otherwise, it is set to 4, and the field symbol remains unchanged. For security reasons, you should always check the value of SY-SUBRC after a dynamic ASSIGN to prevent the field symbol pointing to the wrong area.
Searching for the field in this way slows down the program. You should therefore only use the dynamic ASSIGN statement when absolutely necessary. If you know when you create the program that you want to assign a table work area to the field symbol, you can also use the following variant of the dynamic ASSIGN statement:
ASSIGN TABLE FIELD (<f>) TO <FS>.
The system then only searches within the table work areas in the main program of the current program group for the data object that is to be assigned to the field symbol. This addition is forbidden in ABAP Objects, since the latter does not support table work areas.
Suppose we have three programs. The main program:
REPORT demo_field_symbols_dynami_as_1.
TABLES sbook.
sbook-fldate = sy-datum.
PERFORM form1 IN PROGRAM demo_form1.
The other two programs are:
REPORT demo_form1.
FORM form1.
PERFORM form2 IN PROGRAM demo_form2.
ENDFORM.
and
REPORT demo_form2.
FORM form2.
DATA name(20) TYPE c VALUE 'SBOOK-FLDATE'.
FIELD-SYMBOLS <fs> TYPE ANY.
ASSIGN (name) TO <fs>.
IF sy-subrc EQ 0.
WRITE / <fs>.
ENDIF.
ENDFORM.
The output looks something like this:
02.06.1998
The program group in the internal session now consists of the programs DEMO, MYFORMS1 and MYFORMS2. The field symbol <FS> is defined in MYFORMS2. After the dynamic ASSIGN statement, it points to the component FLDATE of the table work area SBOOK declared in the main program DEMO.
REPORT demo_field_symbols_dynami_as_2 .
TABLES sbook.
DATA: name1(20) TYPE c VALUE 'SBOOK-FLDATE',
name2(20) TYPE c VALUE 'NAME1'.
FIELD-SYMBOLS <fs> TYPE ANY.
ASSIGN TABLE FIELD (name1) TO <fs>.
WRITE: / 'SY-SUBRC:', sy-subrc.
ASSIGN TABLE FIELD (name2) TO <fs>.
WRITE: / 'SY-SUBRC:', sy-subrc.
The output is:
SY-SUBRC: 0
SY-SUBRC: 4
In the first ASSIGN statement, the system finds the component FLDATE of the table work area SBOOK and SY-SUBRC is set to 0. In the second ASSIGN statement, the system does not find the field NAME1 because it is declared by the DATA statement and not by the TABLES statement. In this case, SY-SUBRC is set to 4.
Reference: http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb38d5358411d1829f0000e829fbfe/content.htm
reward points if helpful.
Regards,
Ramya -
How to Assign Image field in crystal report through Image UDF
Hi All,
I want to capture the Image UDF in crystal report. How can i assign the field in report.
Can any body help me.
regards,
Kiran KumarHi kiran Kumar,
IPost a message to SAP Businessone Reporting & Printing Forum
and also check this link
Re: SAP Business One and Crystal Reports
Image Type In Crystal Report
Regards
Jambulingam.P
Edited by: Jambulingam P on Jun 19, 2009 8:22 AM
Maybe you are looking for
-
safari will not even load. every time I try to open safari it will bounce in the dock once and then the it will not respond
-
Iphoto 11 installation can't find some of my pics; can't get past errors without crashing
Back in 2009 when I got my Mac I made a big mistake: I had iPhoto reference my external hard drive for some of my older photos (was trying to save space at the time). I had all new photos going directly to iPhoto (the correct, recommended way). In 20
-
First page only when opening PDF (interactive) in Adobe Reader on iPad.
Hi, I am having trouble opening a pdf document in Adobe Reader on iPad. All software is up to date. I created the interactive document in InDesign CS6. Due to the fact that InDesign cannot export directly to PDF when you want to keep certain function
-
IPad thinks it is connected to a dock connector = no sound
Over the past few days, my iPad 2 will suddenly lose sound. When I check the audio output, 'Dock Connector' is always checked. Unfortunately, I don't owe any dock connector nor has my iPad never been connected to one. I read elsewhere that this may b
-
Static LOV functions differently in 9.0.2 from 9.0.1
In my previous Portal applications under IAS 9.0.1 I had several static LOV's that contained the following structure: DISPLAY VALUE RETURN VALUE Login User Name #PORTAL.wwctx_api.get_user This worked as expected, the user sees the display of 'Login U