How to pass select-options to the Adobe Form?
Hello Experts,
I am facing an issue on passing the SELECT-OPTIONS from driver program to Adobe Form .I created a structure which holds sign,Option,Low and High fields, assigned to the table type and passed to the form,Its going dump can anyone resolve the issue.
Regards,
Girish Kumar vedurupaka.
Hello simi ,
Using se11 created a structure for select-options the created a table type for that structure. I pass that table type to the importing parameter in the form interface.
in the Global data:
IT-MARA TYPE TY_MARA.
IN TYPES :
TYPES :BEGIN OF ty_mara1,
MARA TYPE MARA,
ERSDA TYPE ERSDA,
ERNAM TYPE ERNAM,
LAEDA TYPE LAEDA,
END OF TY_MARA1.
TYPES TY_MARA TYPE TABLE OF TY_MARA1.
IN CODE INITIALIZATION I WRITE THE SELECT STATEMENT.
SELECT MATNR ERSDA ERNAM FROM MARA INTO TABLE IT_MARA
WHERE MATNR IN S_MATNR.
in the driver program exported the S_MATNR to the the form.
when i am executing the program and giving the range in S_MATNR values are not importing and and going to dump.
Similar Messages
-
How to pass select-options variable to a form.
I have a select-options variable smatnr. I need to pass this select-options variable to a form by
perform using smatnr changing svar.
form cond_types using pmatnr changing svar.
IT gives an error saying imcompatible types been passed between smatnr and pmatnr.
Any ideas, what is wrong. How do I pass a select-option variable into a form the right way.
Thanks
RamTry like this:
TABLES: vbak.
SELECT-OPTIONS: s_vbeln FOR vbak-vbeln.
START-OF-SELECTION.
PERFORM get_data USING s_vbeln[].
*& Form get_Data
FORM get_data USING p_s_vbeln LIKE s_vbeln[].
ENDFORM. " get_Data
Regards,
Naimesh Patel -
HOW TO PASS SELECT-OPTIONS AS IMPORT PARAMETER TO A CLASS
Hi experts,how to pass select options value as a export parameters to a zclass.
can give me some idea.
Thanks
saiAs Sachin already said, selection options are stored in an internal table. You can reconstruct the table type without the corresponding input fields using the type addition RANGE OF.
So - assuming you have the following in your program:
DATA: wa TYPE sflight.
SELECT-OPTIONS so_car FOR sflight-carrid.
you can create a publically-visible type in your class using direct type entry and the code
TYPES: my_selectoption TYPE RANGE OF sflight-carrid.
and use this to define the importing parameter of the method.
The only other thing you have to remember is that select-options generates an internal table with header line. Thereore, to pass the table to the method, you would use (in the above example) so_car[], and not just the name of the select-option.
Hope this helps.
Regards
Jon. -
How to pass select-option filed to Function Module Exporting Parameter
Hi,
How to pass select-option filed to Function Module Exporting Parameter.
ThanksHi,
DATA: BEGIN OF ITAB5_WRK OCCURS 0,
KUNNR TYPE KNKK-KUNNR, "CUSTOMER #
SBGRP TYPE KNKK-SBGRP, "CREDIT REP
KLIMK TYPE KNKK-KLIMK, "CREDIT LIMIT
NAME1 TYPE KNA1-NAME1, "CUSTOMER NAME
SKFOR TYPE KNKK-SKFOR, "TOTAL A/R
AMT1 TYPE KNKK-SKFOR, "CURRENT
AMT2 TYPE KNKK-SKFOR, "01-30
AMT3 TYPE KNKK-SKFOR, "31-60
AMT4 TYPE KNKK-SKFOR, "61-90
AMT5 TYPE KNKK-SKFOR, "91-120
AMT6 TYPE KNKK-SKFOR, "OVR 120
BZIRK TYPE KNVV-BZIRK,
END OF ITAB5_WRK.
SELECT-OPTIONS P_COMP FOR T001-BUKRS
SELECT KUNNR SBGRP FROM KNKK
INTO TABLE ITAB5_WRK
WHERE SBGRP IN P_REP
AND KUNNR GE '0001000000'
AND SKFOR NE 0.
LOOP AT ITAB5_WRK.
DELETE ADJACENT DUPLICATES FROM ITAB5_WRK COMPARING KUNNR.
ENDLOOP.
PERFORM GET_CREDIT_LIMITS.
*=======================================================================
IF P_DIST NE SPACE.
LOOP AT ITAB5_WRK.
SELECT SINGLE * FROM KNVV WHERE KUNNR EQ ITAB5_WRK-KUNNR
AND VKORG EQ P_COMP
AND VTWEG EQ '20'
AND SPART EQ '10'
AND BZIRK IN P_DIST.
IF SY-SUBRC EQ 0.
MOVE KNVV-BZIRK TO ITAB5_WRK-BZIRK.
MODIFY ITAB5_WRK.
ELSE.
DELETE ITAB5_WRK.
ENDIF.
ENDLOOP.
ENDIF.
*==============================================================
LOOP AT ITAB5_WRK.
MOVE: 'F/S' TO WRK-KKBER,
ITAB5_WRK-KUNNR TO WRK-KUNNR.
PERFORM AGING.
ADD: W_SNFAE TO ITAB5_WRK-AMT1,
W_SFAE1 TO ITAB5_WRK-AMT2,
W_SFAE2 TO ITAB5_WRK-AMT3,
W_SFAE3 TO ITAB5_WRK-AMT4,
W_SFAE4 TO ITAB5_WRK-AMT5,
W_SFAE5 TO ITAB5_WRK-AMT6,
W_SFAEL TO ITAB5_WRK-SKFOR,
W_SNFAE TO ITAB5_WRK-SKFOR.
MOVE: 'SPEC' TO WRK-KKBER,
ITAB5_WRK-KUNNR TO WRK-KUNNR.
*PERFORM AGING.*
ADD: W_SNFAE TO ITAB5_WRK-AMT1,
W_SFAE1 TO ITAB5_WRK-AMT2,
W_SFAE2 TO ITAB5_WRK-AMT3,
W_SFAE3 TO ITAB5_WRK-AMT4,
W_SFAE4 TO ITAB5_WRK-AMT5,
W_SFAE5 TO ITAB5_WRK-AMT6,
W_SFAEL TO ITAB5_WRK-SKFOR,
W_SNFAE TO ITAB5_WRK-SKFOR.
MODIFY ITAB5_WRK.
ENDLOOP.
FORM AGING.
*CALL FUNCTION 'CUSTOMER_DUE_DATE_ANALYSIS'*
EXPORTING
BUKRS = P_COMP
KKBER = WRK-KKBER
KUNNR = WRK-KUNNR
RASID = 'FEND'
KLIMP = 'X'
IMPORTING
SFAE1 = W_SFAE1
SFAE2 = W_SFAE2
SFAE3 = W_SFAE3
SFAE4 = W_SFAE4
SFAE5 = W_SFAE5
SFAE6 = W_SFAE6
SFAEL = W_SFAEL
SNFA1 = W_SNFA1
SNFA2 = W_SNFA2
SNFA3 = W_SNFA3
SNFA4 = W_SNFA4
SNFA5 = W_SNFA5
SNFA6 = W_SNFA6
SNFAE = W_SNFAE
EXCEPTIONS
NO-AGING_SCHEDULE = 1
NO_TABLE_INPUT = 2.
CASE SY-SUBRC.
WHEN 1.
MESSAGE E999 WITH 'PLEASE ENTER AGING SCHEDULE'.
WHEN 2.
MESSAGE E999 WITH 'DO NOTHING ??'.
ENDCASE.
ENDFORM. "AGING
Thanks -
How to provide security settings for the adobe form using livecycleDesigner
Hello,
I am very new to form designing,
can any one please tell me how to provide security settings for the adobe forms at client side?
Regards,
MenakaHi,
that is a good topic for the ADFS forum.
ADFS forum - http://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=Geneva
But you could pass the user-agent as incoming claim type Client User agent. User-agents can be manipulated, so if that is an issue you can look into Device Registration and the Device OS type from there. That is also a incoming claim but requires DRS and
DRS is not available for all plattforms.
Hth,
Lutz -
How to bring status icons in the Adobe Form.
Hi Experts,
I am new to Adobe forms and I need to bring a icon indicating the satus ( For example green icon shoud be displayed if the values exceed our expection ) . Currently if I try to bring an icon in the form it is just displaying the text value corresponding to the icon even though the icon is of data type ICONTEXT (For Example:Instead of displaying a icon in green it just displaying the corresponding text values like '@@4' ) . When we try to display the same icon in the table view it is displayed in a form of image.
Kindly let me know how to bring status icon in the adobe forms.
Thanks in Advance.
Regards,
NandhaHi,
The ADS will not understand this as an icon and create it on the PDF. If you want to insert an icon in the
PDF you should insert it as an image in the Designer.
Arun -
How to Pass Select-options Single values as Parameter value to Method ?
Hi Friends,
I need to pass select-options values(single values) for s_arbpl to the method "process_percent_planned". Now all single values are in internal table s_arbpl-low field. I need to pass this internal table(s_arbpl-low) values to the method where i will run query based on these single values.In my below code i am passing value through variable w_arbpl. I have defined this parameter in the method.But here only one value is passed to method. I want multiple single values (in s_arbpl-low) should be passed. Please let me know how to correct code.
Tables: crhd.
Data: ktext type auftext,
w_arbpl type arbpl.
select-options: s_arbpl for crhd-arbpl.
ktext = 'Test'
create object obj_plan.
call method obj_plan->process_percent_planned
exporting
ktext = ktext
w_arbpl = s_arbpl-low.
Thankshi ,
when you want to pass S_ARBPL AS PARAMETER IN SELEC OPTION
ARBPL SUCH AS
WIN002
WIN003
WIN004
WIN005
WIN006
WIN007
IN MULTIPLE SELECTION S_ARBPL
THEN
USE
Tables: crhd.
Data: ktext type auftext,
w_arbpl type arbpl.
select-options: s_arbpl for crhd-arbpl.
ktext = 'Test'
LOOP AT S_ARBPL .
create object obj_plan.
call method obj_plan->process_percent_planned
exporting
ktext = ktext
w_arbpl = s_arbpl-low.
ENDLOOP.
REGARDS
dEEPAK .
THEN SELECT THAT
call method obj_plan->process_percent_planned
exporting
ktext = ktext
w_arbpl = s_arbpl-low. -
Passing Select option to the sub routine
Hi All ,
how can we pass select option values to a subroutine ,
Thanks in Advance
VinayHi Vinay Kolla,
Check out this.
TYPES: TYP_DATUM TYPE RANGE OF SY-DATUM.
DATA: WA_DATUM TYPE LINE OF TYP_DATUM.
SELECT-OPTIONS : S_DATUM FOR SY-DATUM.
START-OF-SELECTION.
PERFORM WRITE_DATUM TABLES S_DATUM[].
*& Form write_datum
* text
* -->P_S_DATUM text
FORM WRITE_DATUM TABLES P_S_DATUM TYPE TYP_DATUM.
LOOP AT P_S_DATUM INTO WA_DATUM.
WRITE : /10 WA_DATUM-SIGN,
WA_DATUM-OPTION,
WA_DATUM-LOW,
WA_DATUM-HIGH.
ENDLOOP.
ENDFORM.
Regards,
R.Nagarajan.
We can - -
HOW TO PASS SELECT-OPTIONS PARAMETER TO A FUNCTION MODULE.
Hi friends.
HOW DO U PASS A SELECT-OPTIONS PARAMTER TO A FUNCTION MODULE AS ITS IMPORT PARAMETER(IN MY CASE rfc fM) .
Really urgent!!!
thanks to one and allHi,
If you are passing a single value, its better you take it from s_option-low or s_option-high (select options).
Else if you are passing values to the FM in a loop for all select option values, then better you declare an internal table with type <b>WSELKUNNR</b>.
get low & high fields from each row & pass them.
It will make you clear when you check out your select options in debug mode by entering different combinations of inputs. -
How to use select-options in the function module of import parameter ?
Hi ...
I have created a BAPI and tested in SWO1 tcode , by giving the single value for an company code ( BUKRS ) , it executed properly .
Same thing is working after implementing in a program .
so now it is working for fetching a single company code details .
My requirement is : I want to use select-options in program as well as in function module IN IMPORT PARAMETER.
Program :
REPORT ZTEST.
TABLES : T001 , ZBAPI_STR .
TYPES : BEGIN OF TY_ITEM .
INCLUDE STRUCTURE ZBAPI_STR .
TYPES : END OF TY_ITEM .
DATA :WA_ITEM TYPE TY_ITEM ,
ITEM LIKE STANDARD TABLE OF WA_ITEM INITIAL SIZE 0 .
PARAMETER : BUKRS TYPE ZBAPI_STR-BUKRS.
call function 'ZBAPI_FMT001'
exporting
bukrs = BUKRS
IMPORTING
RETURN =
tables
itemtab = ITEM
IF ITEM IS NOT INITIAL .
LOOP AT ITEM INTO WA_ITEM .
WRITE : / WA_ITEM-BUKRS , WA_ITEM-BUTXT , WA_ITEM-ORT01 , WA_ITEM-LAND1 .
ENDLOOP.
ENDIF.
FUNCTION MODULE :
FUNCTION ZBAPI_FMT001.
""Local Interface:
*" IMPORTING
*" VALUE(BUKRS) TYPE EFG_TAB_RANGES
*" EXPORTING
*" VALUE(RETURN) TYPE BAPIRET2
*" TABLES
*" ITEMTAB STRUCTURE ZBAPI_STR
SELECT BUKRS BUTXT ORT01 LAND1 FROM T001 INTO TABLE ITEMTAB WHERE BUKRS = BUKRS .
ENDFUNCTION.
Regards
Deepa.I have given a similiar example which i did
Declare a
Table type:Z_TT_PONUM
Short text : Select options PO Number
in SE11 tcode with row type eg: Z_ST_PONUM
create a structure (this will be the row type)
Structure Z_ST_PONUM
Short text Select Options Field PO number
Compenent Compent type
SIGN BAPISIGN Inclusion/exclusion criterion SIGN for range tables
OPTION BAPIOPTION Selection operator OPTION for range tables
LOW EBELN Purchasing Document Number
HIGH EBELN Purchasing Document Number
In the function module import
give as
I_PO_NUM TYPE Z_TT_PONUM opt pass value Select options PO Number
Hope this is exactly what you want to know.
So you create a structure simliar to mine but the low an high whould be your component
then a table type and then include that in the BAPI.
Then pass your select-option value to this BAPI when you call this BAPI in the program -
How to pass select option value to function module while using service call
Hi,
I have select-option in my WD application. To collect data based on user input im using service call. How to pass this select option values to my RFC.
rgds
sudhanshuHi,
Thank s for your reply. In fact im doing similar with following variation:
i) collected range values using get_range* method.
ii) separate low and high values as:
read table <field2> index 1 into wa_range.
vert2_low = wa_range-low.
vert2_high = wa_range-high.
(Please note that in RFC I have taken two importing parameter as s_vert_lo and s_vert_hi)
iii) Now setting these RFC attribute as:
lo_el_importing->set_attribute(
EXPORTING
name = `S_VERT_LO`
value = vert2_low ).
and
lo_el_importing->set_attribute(
EXPORTING
name = `S_VERT_HI`
value = vert2_high ).
iv) In RFC im having my query as :
select <fld list> from BUT000 into table itab where vertical in r_vert.
Here, r_vert is a range defined as:
ranges r_vert for <fld refrence>
r_vert-sign = 'I'.
r_vert-option = 'BT'.
r_vert-low = S_VERT_LO.
r_vert-high = S_VERT_HI.
append r_vert.
Issue here is with ranges. if im passing both low and high values it is fine but if only low value being passed it is not giving me any record.
Please suggest.
Rgds
Sudhanshu -
How to pass select-option variable in function
hi ,
select-option : s_akont for KNB1-akont OBLIGATORY.
i have to pass s_akont in function without using
s_akont-low & s_akont-high.
rightnow i am passing like s_akont but it is giving me a error :
s_akont is followed by niether by an internal table nor by a value list.
what should i write.
regards
rajHello Raj
I assume that you want to import your select-options into your function module(s). Since select-options are, by default, itabs with header lines you have to pass your select-options as following:
CALL FUNCTION 'Z_...'
TABLES
it_selopt = s_akont[].
The TABLES parameter it_selopt could be of type ANY or better of type <b>TABLE</b>.
If you want to use generic select-option structure you can use <b>RSDSSELOPT</b> and the table type <b>TT_RSDSSELOPT</b>. In this case you would need to copy your select-options from s_akont to a generic type s_generic (of type RSDSSELOPT).
Regards
Uwe -
How to pass select-options in key while using Read Statement.
Hi SAP gurus,
I was using a select stmt. with were clause of Select-options it was working fine,
now my scenerio is changed i need to read an internal table
with key of select-options....
how to read internal table with key S_MATNR (Select-options).Hi,
We can certainly do this.
We need to loop the internal table with select-options condition.
Example :
LOOP AT ITAB WHERE FIELD = S_FIELD.
ENDLOOP.
This should solve your problem.
Plz reward if useful.
Thanks,
Dhanashri. -
Passing select-options to the smartforms
Hi,
I working for smartform, I have to print select-options (S_INNUM) value in the one of the window of the smartform
what is the approach for this1. Go to se11
cteate a structure zselect_option.
with the fields: low types kunnr
high types kunnr
sign types char1
options types char2.
than save,check and activate the structure.
2.go to smartforms
Doubl click on form interface.
in table tab declare the parameters as
s_kunnr like zselect_option
it_kna1 like kna1.
3.Double click on global definition
declare a work area in global data like as
wa_kna1 type kna1.
4.Click on Main window
create -> flow logic -> prgmlines.
Give the input paramer as s_kunnr
output parameter as it_kna1.
again..Click on Main window
create -> flow logic -> loop.
in that loop click on data tab
provide it_kna1 into wa_kna1.
than click on loop -> create -> text.
drag and drop our fields from Globel Data.
save and activate our smartform.
5. create a driver prmg as..shown below
tables:kna1.
select-options:s_kunnr for kna1-kunnr.
data:it_kna1 type table of kna1.
DATA:F_NAME TYPE RS38L_FNAM.
start-of-selection.
select *
from kna1
into table it_kna1
where kunnr in s_kunnr.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
FORMNAME = 'ZSMARTFORM' "(Give Smartform name)
* VARIANT = ' '
* DIRECT_CALL = ' '
IMPORTING
FM_NAME = F_NAME.
CALL FUNCTION f_name
TABLES
S_KUNNR = s_kunnr
IT_KNA1 = it_kna1.
save ,check and activate and exicute the prgm... -
How to pass selection from one page to form in another?
Hi all,
I have an "Events" page that is linked to an "RSVP" form page. On the events page, there are links under each listed event that say "RSVP for this event" that point to the RSVP page.
The RSVP page is a form where you enter details and choose the event you are RSVPing for in a drop down menu (populated using a recordset because this all needs to be tied into an admin section of the site)
How can I click on the RSVP for this event link and then have it choose the right event in the menu without having to remember what event and manually doing it yourself? For example, I want to go to event 2, I click the link to RSVP and in the drop down, event 2 is already shown as the first selection.
I should mention that I used a Nextensio form for the RSVP page and manually built the Events page with a repeat recordset SB.
ThanksHi John,
if you switch to Code View, you´ll usually see something like:
...following the option´s value attribute.
Please try with changing this example to:
...and don´t forget to backup the original page ;-)
Cheers,
Günter Schenk
Adobe Community Expert, Dreamweaver
Maybe you are looking for
-
I purchased an Early 2009 Mini on eBay. The seller reinstalled Leopard on it (that's what it came with) after erasing his stuff on it. He put "Default User" as the user name, but no password. He said for security that I should make an account with
-
Can someone suggest a solution as to how I can solve this problem?
-
Error deploying Human Task Projects
I am having some problems with the deployment of Human Task ADF Projects to the SOA Server. I've managed to deploy other ADF applications, however when I try to deploy a generated ADF Project for a BPEL Human Task I get the following error: Webl
-
How do I know if my database is ASM
I have Windows XP + 10g 10.2.0.1.0 How do I know if my database is ASM? Thanks in advance.
-
Hi, I need the Result set in the given below form. Can any one please help me with this. I am not able to get the 2nd most recent login date in the separate column. Concerned Columns: Login date, login date2, login difference Login date = Most re