Smartform help on currency key fields
hi
i want to concatenate wa_ekpo-netpr with currency key ? in smartform i have pass it and display the data. and i want to display the plant t001w details in my top of the form layout how and where i have to write the code how to declare fields?
pls send some steps and code
Hi Shilpa,
Here is the method.
In the main program.
DATA: FNAME TYPE RS38L_FNAM.
DATA: ITAB TYPE TABLE OF EKPO WITH HEADER LINE.
SELECT EBELN MATNR NETPR NETWR FROM EKPO INTO CORRESPONDING FIELDS OF TABLE ITAB UP TO 10 ROWS WHERE BUKRS = '1000'.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'ZSP_SMFORM1'
IMPORTING
FM_NAME = FNAME
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3
CALL FUNCTION FNAME
TABLES
itab = ITAB[]
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5
In the smartform,
1) In the Form interface, give
ITAB LIKE EKPO
2)In the Global definitions, give
WA_NETPR TYPE EKPO-NETPR
WA_NETWR TYPE EKPO-NETWR
WA_ITAB TYPE EKPO
3)In main window , create a loop(Right click and goto <b>Create->Flow Logic->Loop</b>)
Give the loop as
ITAB INTO WA_ITAB
4) Now create a template(Right click and goto<b>Create->Template</b>).
Create 4 columns(each of 4 CM and height 2 cm)
5) Now create program lines (right click and goto <b>Create->Flow Logic->Program lines</b>.)
In the input parameter, give wa_itab-netpr and wa_itab-netwr
In the output parameter, give wa_netpr and wa_netwr.
In the editor, give the follwoing lines
wa_netpr = wa_itab-netpr.
wa_netwr = wa_itab-netwr.
6) Now create the text (right click and goto<b>Create->text</b>).
In the general attributes for ebeln and matnr , give as
&wa_itab-ebeln and &wa_itab-matnr
For netpr and netwr, give as wa_netpr and wa_netwr.
This will definitely solve your problem.
Regards,
SP.
Similar Messages
-
F4 help values for currency key field in table
Hi all,
I have added currency and currency key fields in my Z table. For the curreny key field, i have assigned the standard data element WAERS. I have implemented Table Maintenance Generator for my table. But the F4 help values for the currency key field is not appearing when i tried to maintain table entry.
Should i need to check the Foreign key check box for the field attribute? But this check box is in disable field in screen layout.
Could someone tell me how to solve this issue?Hi,
Make the check table of the currency field of your Ztable as TCURC,which is the master table of Currency.Inside the domain of the field you write the TCURC as a value table.and make foriegn key relationship with the TCURC table.
Regards,
Suvajit. -
Search help with multiple key fields
Hi,
I want to dispaly search help on a field from a internal table have multiple key fields i.e combination of fld1 + fld2 +fld3 makes one single row. Therfore can any one tell me how to return that single row , because if I am using function F4IF_INT_TABLE_VALUE_REQUEST I get only one return field that I select by which I can't get the actual line that I have selected as there may be more that one line for that field.
please suggest any way through programming not by creating any search help through se11.
thanksHi,
Use select query to select the fields & display them.
In the following code i've selected only a single field in select query but u can do it for more than 1 & proceed similarly.i've tried it before using this code.
SELECT WERKS
NAME1
FROM T001W
INTO TABLE ITEMP
WHERE IWERK = 'M011'.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = ' '
RETFIELD = 'WERKS'
PVALKEY = ' '
DYNPPROG = ' '
DYNPNR = ' '
DYNPROFIELD = ' '
STEPL = 0
WINDOW_TITLE =
VALUE = ' '
VALUE_ORG = 'S'
MULTIPLE_CHOICE = ' '
DISPLAY = ' '
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
TABLES
VALUE_TAB = ITEMP
FIELD_TAB =
RETURN_TAB = T_RETURN
DYNPFLD_MAPPING =
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
S_WERK-LOW = T_RETURN-FIELDVAL.
Hope this helps.
Reward if helpful.
Regards,
Sipra -
Search help for selection screen field
Hi ,
steps for creating search help for a key field in selection screen..
tables is a userdefined from which the field is taken..
thxs,
vindhi,
c this.
REPORT ZXYZ_0002 .
data: dynfields type table of dynpread with header line.
data: return type table of ddshretval with header line.
selection-screen begin of block b1 with frame title text-001 .
selection-screen begin of line.
PARAMETERS: P_BUKRS type T001-BUKRS.
selection-screen comment 30(20) BUTXT for field p_bukrs.
selection-screen end of line.
selection-screen end of block b1.
at selection-screen output.
if butxt is initial.
select single butxt into butxt
from t001
where bukrs = p_bukrs.
endif.
at selection-screen on value-request for p_bukrs.
call function 'F4IF_FIELD_VALUE_REQUEST'
exporting
tabname = 'T001'
fieldname = 'BUKRS'
dynpprog = sy-cprog
dynpnr = sy-dynnr
dynprofield = 'P_BUKRS'
tables
return_tab = return
exceptions
field_not_found = 1
no_help_for_field = 2
inconsistent_help = 3
no_values_found = 4
others = 5.
read table return with key fieldname = 'P_BUKRS'.
Add it back to the dynpro.
dynfields-fieldname = return-retfield.
dynfields-fieldvalue = return-fieldval.
append dynfields.
Get the company code from db and add to dynpro
data: xt001 type t001.
clear xt001.
select single * into xt001
from t001
where bukrs = return-fieldval.
dynfields-fieldname = 'BUTXT'.
dynfields-fieldvalue = xt001-butxt.
append dynfields.
Update the dynpro values.
call function 'DYNP_VALUES_UPDATE'
exporting
dyname = sy-cprog
dynumb = sy-dynnr
tables
dynpfields = dynfields
exceptions
others = 8.
start-of-selection.
rgsds
anver
if hlped mark points -
Currency key missing and consequences in Generic extraction!
Hi,
I am creating datasource using view .
there are some fields in the view which were referenced to some other fields of same table!
that some fields are nothing but the currency fields and are refered to currency key fields.
But currency key was not included in the list of requirements for the view and if u do not include this currency key in the definition it will not allow you to activate the view!
what should i do now?
RajHI,
Even though it is not there in your requriement you must have to add currency / unit reference field in the view for keyfigures. Beacuse for each and every keyfigure will follow currency / unit value. Add Ref currency / unit field then activate.
Regards
Rajesh -
Hi All,
I wanted to know if a unit(currency in my case) is treated as key field in an ODS although it is not explicitly declared in key field area and is placed in data field.
Suppose for the same key field in ODS I have a key figure which has 300 Dollars as value and 200 Eur as another value.
Will this be treated as two separate records even if the Currency field is not included in key?
Thanks for ur help!
NewBieHi,
Any fields in the data field CANNOT be treated as a key field.
Thus the records will be overwritten.
-Vikram -
Currency Key Reference field in WebDynpro Table Column
Hi Experts,
I am using a WebDynpro table (not ALV) showing multiple currency fields in a single row - each one potentially referencing a different currency key e.g. Japanese Yen and USD in a single row.
My currency context attributes are already defined as currency types, but how can I assign different currency key references to each of my currency context attributes? Or is this somehow done as a property of the table column UI element?
Thanks for your help,
PeterHi Kris,
You answer is very helpful, but I do have a question about going the DDIC route. So you are saying that if I take a DDIC structure into my context with multiple currency keys as reference fields for multiple currency fields, then my WebDynpro context will know exactly which currency key is the reference for which currency field without having do do this programatically as you described? If that's true, can I bring a whole DDIC structure over to the context and then delete the 'Dictionary Structure' refrence from my context node, so that I can add my own additional fields to the context node? E.g. in the case of DDIC structure VBAP can I get all my currency fields and their reference fields from the DDIC from VBAP and then delete 'VBAP' as a 'Dictionary Structure' from my context node and add my own custom fields. The fields I would have brought in from VBAP still retain their type and everything after the deletion of 'VBAP' as a 'Dictionary Structure', so my question is will it also retain the node_info of what currency key goes with what field?
Please let me know if you happend to have done this before.
Thanks,
Peter -
Serch help for list of currency key
Hi friends,
Can any budy tells me what is the search help to get list of currency key.
like
INR,
USD,
EUR
Thank you.
Regards,
ViratHi
1) Elementary search helps describe a search path. The elementary search help must define where the data of the hit list should be read from (selection method), how the exchange of values between the screen template and selection method is implemented (interface of the search help) and how the online input help should be defined (online behavior of the search help).
2) Collective search helps combine several elementary search helps. A collective search help thus can offer several alternative search paths.
3)An elementary search help defines the standard flow of an input help.
4) A collective search help combines several elementary search helps. The user can thus choose one of several alternative search paths with a collective search help.
5)A collective search help comprises several elementary search helps. It combines all the search paths that are meaningful for a field.
6)Both elementary search helps and other search helps can be included in a collective search help. If other collective search helps are contained in a collective search help, they are expanded to the level of the elementary search helps when the input help is called.
CREATION:
Go to SE11 Tcode
select search help
give the 'z' search help name and create
select the selection method ur table name eg : 'mara'
dialog module 'display value immediately'.
add the field whatever u want and lpos = 1 and spos = 1 and check import and export parameter.
where left position when displaying and spos = search position
and then save and activate ..
See the links:
http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee38446011d189700000e8322d00/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee45446011d189700000e8322d00/content.htm
pls go through this for search help creation
http://help.sap.com/saphelp_nw2004s/helpdata/en/41/f6b237fec48c67e10000009b38f8cf/content.htm
Search Help Exits:
Re: dynamic values for search help
Re: Dynamic search help
Thanks
Ashu -
Smartforms currency key problem
friends help
I declared in the smartform as below.
gt_itab like zitab. "zitab is a structure and gt_itab is a table i am getting from program.
I have declared the field kbetr in structure as follows
component componenttype datatype refenrencetable reffield
KBETR KWERT CURR KOMK WAERK
In the smartform I am looping at gt_itab into gw_itab and printing the data in the table in main window.
At the time of display smartform is giving error like below.
Reference field gw_itab-kbetr unkown in the form
Please tell how to correct this error.Hi,
Please go through below link for the better understanding, why you need to define currency/ quantity field in the Tab Currency/Quant. Fields. It is explained in that thread.
[Currency and quantity fields in Smartforms;
Regrads,
Lokesh. -
Help for search help and currency and quantity fields
hi,
please help me for creating search help and when the currency and quantity fields are used please expalin this with steps as i am a learner..
regards
raj.Hi Rachu,
Welcome To SDN
Help On Search Help
Go to se11
Select radio button Search help
click on create
and select elementary seacrh help
selection method---->tablename or viewname
press f1 in search help exit we will get a FM named as
F4IF_SHLP_EXIT_EXAMPLE.copy that FM from se37 in to Zprogram.we have a record_tab for copying the view by using this tab we can restrict the values from the view or table.this values are populate into another table .Then ,
come to se11
and in our seacrh help we will pass components of the search help
Source: https://forums.sdn.sap.com/click.jspa?searchID=14985345&messageID=5618016
Help On Currency and Quantity Fields:
Whenever you have to maintain fields for currencies and quantites u need to refer them to currency key and quantity key which also have to be present in the table.
If suppose you are creating a table for Employee. And suppose that fields would be like :
EMPID -
employee id
EMPNAME
employee name
DEPARTMENT --- department
SALARY -- salary ( Data Type u2013 CURR )
WEIGHT -
weight of the employee ( Data Type -- QUAN )
Now the fields SALARY AND WEIGHT fields should refer to currency and quantity keys. So you need to have two more fields like
CURRKEY --- Data Type ( Cuky )
Quantity --- Data Type ( Unit )
Now we have to attach the field Currkey to the field Salary
And the field Quantity to the field Weight
So when u create a table you can see a tab Currency / Quantity fields.
Here You can give the reference table and the reference field against the salary and weight fields.
Source: https://forums.sdn.sap.com/click.jspa?searchID=14985456&messageID=5692074 -
Any Orjinal SAP Reports which has currency field and currency key
Hi Friends,
I am looking for a report which has currency field and currency key at selection screen. I want to learn how SAP do selection with currency. Can you say a transaction deal with my desire?
Thanks.try report RFSSLD00
A. -
About field HWAE2 Currency Key of Second Local Currency)
can anybody tell me that field HWAE2 ( Currency Key of Second Local Currency)
in which TRANS.TABLE...?????it is in BKPF table
or go to se11, Select data element radiobutton
type HWAE2 click enter.
and check for where used list, it will give all the tables assosiated with HWAE2 field.
regds,
kiran -
Currency Field as a Key Field in Z Table
I am creating a z table in which i have to make a AMount field as a key field . But it is showing a warning while activating the table stating that "Key field AMTFR has num. type DEC: Buffering not possible, Transport restricted"
How can i clear this warning.
Thanks in advanceIn this design I suggest you add one more field to the table called SLAB Code., which will be the key. You can have it as CHAR data type of whatever length you want.
That way its easy to handle, because tomorrow if the slabs change, you are changing the values of the key fields, this way you can avoid that.
You can probably have composite key of Slab code and validity dates.
Regards,
Ravi
Note - Please mark all the helpful answers -
Search help for currency field
I am not able any search help for currency field , CUKY of lenght 5
If anyone knows it please tellYou can use the data element WAERS / refer to field BKPF-WAERS. The search help will show up automatically as the field BKPF-WAERS, has check table TCURC.
Also see the "Origin of Input help" column in "Entry help/ check" tab in SE11 for table BKPF, it says - "Input help implemented with check table".
For example in tcode FB01, the currency field on the selection screen is BKPF-WAERS. The search help is displayed
Hope it helps -
Can't drag the currency key in local currency to the pool of fields not use
Hi everyone,
Hopefully you can enlighten me with this issue coz im trying to drag the currency key in local currency to the pool of fields not used (UCWB<Data Model<Data Basis<Data Model(TAB)) but nothing happened, i can't transfer it to the pool of fields not used.
Note:I came with this decision(transferring the currency key in local currency to the pool of fields not used ) because SAP prompt me with this:
The currency key in local currency is not required in the data basis. It is merely an implicit part of the data model
I really dont have any idea why i can't drag it to the pool of filed not used, i tried to look for some sap notes but i can't find one.
thanks in advanceHi Dan,
Actually it is not really an error, i just would like to pattern the configuration of our newly upgraded BI server to our BW server.
In our BW server, the currency key in local currency is mapped to the pool of fields not used. I can't seem to do the same in the BI server because everytime I try to drag the currency key in local currency to the pool of fields not used, nothing happens, it isn't mapped.
Maybe you are looking for
-
Hard Drive and Ram Memory for Pavilion dv6-6123cl
Good morning! I want to change my ram and my hard drive. The ram will be 8GB and 2TB drive, I wonder if I used the hard drive, if supported? and as for the ram if I have to buy one that is compatible or anybody served me? Thank you! : smileywink: Thi
-
Hardware Inventory - To List the enturnal hardware
I have looked and trying to find a way, that SCCM reports back a list of computers, with some other information like location etc and listing any and all graphic cards with they Serial numbers. Can someone please point me to a good reference location
-
Output Determination using Requirement for Shipment
I created a new output requirement, 909, to handle two different formats for shipment bills of lading. The new requirement prevents a NAST record for format B from being created if a NAST record for format A exists. It works in the development env
-
IR and ID not registered in sld as exchange infrasructure ?
Hi Guys, We have installed NW2004s and SP 14. The PI is configured for central sld on the solmanager. I did all the settings for the central sld. If i go to Technical systems of type Exchange Infrastructure on central sld all the components except I
-
After effects crashing when changing audio input
Hi all, I've been trying to get my Steinberg (Yamaha) ur-28m external USB audio interface/soundcard to work with After Effects CS6 for a week now. The problem is that everytime I change the audio input in the AE preferences to the Steinberg asio driv