Retrieve form parameters in order
Hi All,
I have some 20 forms in my application. Now what i am doing is just looping around the request Enumeration after form submit and sending a mail to my back-end systems with form data. But what is happening every time i submit a form the request Enumeration does not return me data the order fields appear on the display browser. I could create a bean for each form and define the order, but creating 20 such beans is a overhead and is not something that would help me anytime to leverage the forms. Is there any method by which i can retrieve the form fields by the order they appear on the screen.
I know this might be weird, but i really did not have that time to think of.
This is not the right forum. Ask these question on the E-Business Suite forum:
General EBS Discussion
Francois
Similar Messages
-
Hii Experts,
I am developing a smart form for purchase order. I am customizing the existing PO smart form according to the clients requirements. The customer needs fields Discount percentage, Excise duty and VAT/CST%... all these fields when i explored in transaction me23n come from a structure so the values come only at run time.. can anyone tell me the exact table and fields from where these comes so that i can retrieve it from there and display it in my smart form. The fields i need are discount percentage, excise duty and VAT/CST%. its urgent.REPORT ZMR_PURCHASE_ORDER.
types: BEGIN OF ty_lfa1,
LIFNR TYPE lfa1-LIFNR,
MCOD1 TYPE lfa1-MCOD1,
STRAS TYPE lfa1-STRAS,
MCOD3 TYPE lfa1-mcod3,
END OF ty_lfa1.
TYPES: BEGIN OF ty_ekpo,
ebeln TYPE ekpo-ebeln,
ebelp TYPE ekpo-ebelp,
txz01 TYPE ekpo-txz01,
menge TYPE ekpo-menge,
peinh TYPE ekpo-peinh,
brtwr TYPE ekpo-brtwr,
END OF ty_ekpo.
TYPES: BEGIN OF ty_ekko,
ebeln TYPE ekko-ebeln, "purchase doc
LIFNR TYPE ekko-LIFNR, "vendor
MCOD1 TYPE lfa1-MCOD1, "vendor name
STRAS TYPE lfa1-STRAS, "vendor add
MCOD3 TYPE lfa1-MCOD3, "vendor city
bedat TYPE ekko-bedat, "doc date
unsez TYPE ekko-unsez, "contact person
verkf TYPE ekko-verkf, "attn
telf1 TYPE ekko-telf1, "tele
ihrez TYPE ekko-ihrez, "ref
KNUMV TYPE ekko-KNUMV, "doc condition
ebelp TYPE ekpo-ebelp, "item
txz01 TYPE ekpo-txz01, "message desc
menge TYPE ekpo-menge, "qty
peinh TYPE ekpo-peinh, "rate
brtwr TYPE ekpo-brtwr, "gross
END OF ty_ekko.
TYPES: BEGIN OF ty_t685t,
kschl TYPE t685t-KSCHL,
vtext TYPE t685t-vtext,
END OF ty_t685t.
TYPES: BEGIN OF ty_line_item,
KNUMV TYPE konv-KNUMV, "condition number
STUNR TYPE konv-STUNR, "step
kposn TYPE konv-kposn, "item
KSCHL TYPE konv-KSCHL, "condition type
vtext TYPE t685t-vtext, "condition name
KAWRT TYPE konv-KAWRT, "base amt
KRECH TYPE konv-KSCHL, "calculation type
qty(13) TYPE n, "qty
kbetr TYPE konv-kbetr, "condition rate
kwert TYPE konv-kwert, "condition value
END OF ty_line_item.
data: wa_ekko TYPE zms_ekko,
wa_item TYPE zms_konv,
wa_lfa1 TYPE ty_lfa1,
wa_t685t TYPE ty_t685t,
wa_ekpo TYPE ty_ekpo.
data: it_ekko TYPE TABLE OF zms_ekko,
it_item TYPE TABLE OF zms_konv,
it_lfa1 type TABLE OF ty_lfa1,
it_t685t TYPE TABLE OF ty_t685t,
it_ekpo TYPE TABLE OF ty_ekpo.
SELECTION-SCREEN : BEGIN OF BLOCK ss_block WITH FRAME TITLE text-001.
PARAMETERS: pa_ver(2) TYPE c DEFAULT '0'.
SELECT-OPTIONS: pa_pord FOR wa_ekko-ebeln,
pa_date for wa_ekko-bedat.
SELECTION-SCREEN : END OF BLOCK ss_block.
SELECT EBELN LIFNR bedat unsez verkf telf1 ihrez knumv from ekko
into CORRESPONDING FIELDS OF TABLE it_ekko.
if pa_pord is not INITIAL.
DELETE it_ekko WHERE ebeln not in pa_pord.
endif.
if pa_date is not INITIAL.
DELETE it_ekko WHERE bedat not IN pa_date.
endif.
if it_ekko is not INITIAL.
SELECT lifnr MCOD1 STRAS MCOD3 from lfa1
INTO CORRESPONDING FIELDS OF TABLE it_lfa1
FOR ALL ENTRIES IN it_ekko
WHERE LIFNR = it_ekko-LIFNR.
SELECT ebeln ebelp txz01 menge peinh brtwr from ekpo
INTO CORRESPONDING FIELDS OF TABLE it_ekpo
FOR ALL ENTRIES IN it_ekko
WHERE EBELN = it_ekko-ebeln.
loop at it_ekko into wa_ekko.
READ TABLE it_lfa1 into wa_lfa1 WITH KEY lifnr = wa_ekko-LIFNR.
wa_ekko-MCOD1 = wa_lfa1-MCOD1.
wa_ekko-stras = wa_lfa1-stras.
wa_ekko-MCOD3 = wa_lfa1-MCOD3.
MODIFY it_ekko FROM wa_ekko TRANSPORTING MCOD1 STRAS MCOD3 WHERE ebeln = wa_ekko-ebeln.
ENDLOOP.
SELECT KNUMV STUNR KPOSN KSCHL KRECH kbetr kwert KAWRT from konv
into CORRESPONDING FIELDS OF TABLE it_item
FOR ALL ENTRIES IN it_ekko
WHERE KNUMV = it_ekko-KNUMV.
SELECT kschl vtext from t685t
INTO CORRESPONDING FIELDS OF TABLE it_t685t
FOR ALL ENTRIES IN it_item
WHERE spras = 'EN' and KSCHL = it_item-KSCHL.
LOOP AT it_item into wa_item.
READ TABLE it_t685t into wa_t685t with key KSCHL = wa_item-KSCHL.
wa_item-vtext = wa_t685t-vtext.
if wa_item-kschl = 'ZBP1'.
wa_item-qty = wa_item-KAWRT / wa_item-kbetr.
endif.
if wa_item-KRECH = 'A'.
wa_item-kbetr = wa_item-kbetr / 10.
endif.
if wa_item-kschl = 'NAVS'.
wa_item-vtext = 'Sales Tax'.
endif.
MODIFY it_item from wa_item TRANSPORTING vtext kbetr kschl qty
WHERE stunr = wa_item-STUNR and
kposn = wa_item-kposn.
ENDLOOP.
DELETE it_item WHERE kposn = '000000'.
DELETE it_item WHERE kschl <> 'ZBP1' and kschl <> 'ZD01' and kschl <> 'ZE01'
and kschl <> 'NAVS' and kschl <> 'ZSRV'.
sort it_item by kposn STUNR.
CALL FUNCTION '/1BCDWB/SF00000025'
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS =
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
TABLES
it_ekko = it_ekko
it_item = it_item
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
endif. -
On 'Enter Orders form, while entering order lines throwing error
Hi,
Am 11.5.10.2
On 'Enter Orders form, while entering order lines, it shows following error :
ORA-04031: unable to allocate 84832 bytes of shared memory ("shared pool", "QP_PREQ_GRP", "PL/SQL
MPCODE","BAMIMA: Bam Buffer")
ORA-06508: PL/SQL: could not find program unit being called
ORA-06512: at "APPS.QP_ATTR_MAPPING_PUB",line 3493
-- Steps To Reproduce:
1. OM Superuser > Enter Orders
2. Enter header details , Click on 'Line Items'
I reffered OEXOEORD-Enter Orders-Line Items-Ora-04031: ....Bamima:Bam Buffer...' [ID 732649.1]..
All parameters are correct...
Plz help me,,,
ThanksHi;
What is your Db version?what are those values Shared Pool memory and SGA?
Pelase check :
Database Initialization Parameters for Oracle Applications Release 11i [ID 216205.1]
Please check below notes which could be helpful for your issue:
Error Navigating To Lines: ORA-04031: Unable To Allocate 76488 Bytes Of Shared Memory [ID 330305.1]
Regard
Helios -
Howt to retrieve the parameters sent from an iView in WDA
Hi,
I´m sending some parameters form the Portal iView containign the WDA component, how can I retrieve the parameters sent in to my webdynpro ABAP development.
Kind Regards,
Gerardo JHi Gerado,
Go to the window in your WD ABAP component.
Declare those parameters as importing type in HANDLEDEFAULT method.
You will receive the values at runtime in these parameters.
Please check this wiki also. It tells about reading URL parameters in WD ABAP but it will work the same way for iView paramters.
[http://wiki.sdn.sap.com/wiki/display/WDABAP/HowtoreadURLparametersinWebDynproforABAP|http://wiki.sdn.sap.com/wiki/display/WDABAP/HowtoreadURLparametersinWebDynproforABAP]
I hope it helps.
Regards,
Sumit -
Can't retrieve POST parameters...
Hi,
I have this problem: from an HTML page I call a Servlet via a form like this:
<form name="richiesta" method="post" action="servletName">
<input type="hidden" name="in_file" value="00009177.doc">
<input type="hidden" name="port" value="8787">
</form>
In the Servlet I retrieve the parameters with request.getParameter("paramName");
With Tomcat3.x everithing goes well, but with Tomcat 4.0.3 I can't retrieve the parameters in the Servlet: every getParameter returns "null", and printing all with
for (Enumeration namesList = request.getParameterNames(); namesList.hasMoreElements();)
String curName =(String)namesList.nextElement();
System.out.println("Param "+curName+" value: '"+request.getParameter(curName)+"'");
prints nothing!
I really can't figure out where to look for a solution. Any help is welcome!All parameters are sent as Strings. You must explicitly
convery at servlet side before using them.
Is this the problem ? -
FM to retrieve the CRM sales order values
Hi Friends,
Can any one tell me the FM to retrieve the CRM sales order values ,so that i can send these values to my Customer.
Pls help me .
Thanks,
Ganeshhi,
Use CRMD_ORDER_READ function module. Pass guid of you documnet to this function module. You will get desired value in internal tables.
This FM will read form Buffer.
There is one more readdb* . This will read from Database
Reward points if useful
Murali -
Standard form for payment order creation
Hi,
I got a requiremnt to create a form for payment order creation,
can one plzzz guide me, do v hav any standard form available in sap, n also let me know the program for it.
Regards
ashwiniHi Aswini,
FPY1_CH_DTA_EZAG
FPY1_CH_DTA_LSV
FPY1_DE_DTA
FPY1_DE_DTA
FPY1_DE_DTAZV
FPY1_DE_DTA_ZZV
FPY1_DE_DTA_ZZV
FPY1_DE_EURO
FPY1_DE_EURO
FPY1_FR_BANQUE
FPY1_NL_DTA
FPY1_NL_DTA
FPY1_NZ_MTS
FPY1_NZ_MTS
check these forms
Regards,
Venkat -
How to specify the type of table in the form parameters
How to specify the type of table in the form parameters. for example, how to specify the type of table "vacancies".
FORM getcertainday
USING
vacancies TYPE STANDARD TABLE
efirstday LIKE hrp9200-zfirst_day
lfristday LIKE hrp9200-zfirst_day.Hi
Are you asking about subroutine program to declare a variable for perform statement etc
if it so check this coding
DATA: NUM1 TYPE I,
NUM2 TYPE I,
SUM TYPE I.
NUM1 = 2. NUM2 = 4.
PERFORM ADDIT USING NUM1 NUM2 CHANGING SUM.
NUM1 = 7. NUM2 = 11.
PERFORM ADDIT USING NUM1 NUM2 CHANGING SUM.
FORM ADDIT
USING ADD_NUM1
ADD_NUM2
CHANGING ADD_SUM.
ADD_SUM = ADD_NUM1 + ADD_NUM2.
PERFORM OUT USING ADD_NUM1 ADD_NUM2 ADD_SUM.
ENDFORM.
FORM OUT
USING OUT_NUM1
OUT_NUM2
OUT_SUM.
WRITE: / 'Sum of', OUT_NUM1, 'and', OUT_NUM2, 'is', OUT_SUM.
ENDFORM.
If your issue is some other can u explain me clearly
Regards
Pavan -
About Change in Printing form of purchase order
Hello friends,
How to attach user defined SAP SCRIPT
of SMART FORM to purchase order?Hi,
Go to nace transaction,
here search for purchase order, select that i think it is EF and then select output types
there also select NEU -PO ,
then select it and choose processing routines, there u can give the prog name and smartform name.
Regards,
Sonika -
Where to add code to populate form parameters in forms 6i?
Hi everyone!!
I have the following scenario:
I have a form that has a button that takes the user to a new window which too contains a button to take the user to the third window. In the third window i have two t lists that show the database values for the selection that user has made (say selecting from and to destinations). Now i invoke two different windows using two buttons in the third window that contain shuttles and the user makes his selection there using the four shuttle buttons.
In the when button pressed trigger of the buttons that show the shuttle windows, i create record groups and populate the shuttles with the selected and available destinations on the right and left sides of shuttle respectively. Now when the user first comes to the form the shuttles display the selected and available destinations on its two sides correctly, but if the user makes some more selections, closes the shuttle windows and again goes to the shuttle windows, his selection's gone as i have the code to populate the shuttles on when button pressed.
to get rid of it i'm thinking of adding form parameters that'll contain 1 if the user has navigated to the shuttle windows and 2 if he hasent navigated yet or in other words after opening the form he's yet to use shuttles. now i plan to use the parameters to handle the population of the shuttles. if the parameter value is 2 only then i'll use the code that populates the shuttles using record groups.
Now my question's where should i initialize the parameters i.e. in which trigger. How about WHEN-NEW-FORM-INSTANCE?
Will appreciate your thoughts on it.
Thanks,
Abhishek.Neways if at all i need to achieve (just for curiosity) the same thing which trigger should i put the code for the same?
-
Retrieve a deleted sales order
Hi,
Is it possible to retrieve a deleted sales order?
Rgds
TVDear TV,
Deleted Sales Orders can not be retrieved. However, you can retrieve the data if you had stored them in custom tables during sales order creation with the help of BAdi/Enhancement.
However, you can not retrieve the data from standard tables (VBAK, VBAP etc) as the data will be deleted as soon as you delete the sales order.
Hope this will help.
Regards,
Naveen. -
Retrieve the Archived Purchase order
Hello All,
Please help me with transaction to retrieve the archived Purchase order.
Regards
Kalyani.In transaction AOBJ, object MM_EKKO has no entry for a retrieval program.
In help.sap.com the document for MM_EKKO states:
There is no provision for the retrieval of previously archived data.
details: http://help.sap.com/saphelp_erp2005/helpdata/en/8d/3e5be0462a11d189000000e8323d3a/frameset.htm -
Retrieval of latest purchase order ?
HI,
The latest PO has to display when we try to enter the transaction to change or display PO. It's not happening in one of our environment.
Appreciate if one of you tell us how the system retains the latest PO in memory?
Regards,
RamDear Ramprasanna,
To Retrieve the latest Purchase order:
<b>Path:</b> Logistics - Material Management - Purchasing - Master data -
Info record - List display - Order Price History
With regards,
B.Ravindranath -
Function Module that will retrieve the parameters for a given function Modu
Hi
We have a requirement where we will be calling Function Module that will be maintained in a table entry. How we will determine what is the parameters that is required by this function module. Is there a FM that will suffice the requirement.
Thanks in advance
arghadipHi,
You have to write a custom code for that. Use the table FUPARAREF to retrieve the parameters for a function module. Give function module name as input.
Pls reward points if solved your issue.
Regards,
Renjith Michael. -
Syntax error in form parameters
HI,
In ECC 6.0, LIKE is obsolete , so I want to change it to TYPE. I replaced all LIKE to TYPE. In my code I call a form subroutine and in the changing parameter i have two internal tables passed. Earlier the statement was
PERFORM zz_routine USING I_VBAK
CHANGING T_VBUK[]
T_VBAP[].
where I_VBAK TYPE VBAK and
T_VBUK TYPE STANDARD TABLE OF VBUKVB.
T_VBAP TYPE STANDARD TABLE OF VBAPVB.
Now in the recieving paramters how do I mention these using TYPE
I did as follows
Form zz_routine USING value(ss_vbak) TYPE VBAK
CHANGING xt_vbuk TYPE STAnDARD TABLE OF VBUKVB
xt_vbap TYPE STAnDARD TABLE OF VBAPVB
Now, I get the syntax error
"OF" has already been declared.
What does that mean ? what is the correct way to say that I need to receive a table type data in the form ?
thnksDeclare a Table Type which you can use to reference in your Form Parameters.
Like:
types: ty_t_vbap type standard table of VBAPVB.
data: t_vbap type ty_t_vbap.
PERFORM zz_routine using ia_vbak
changing t_vbap.
Form zz_routine USING value(ss_vbak) TYPE VBAK
CHANGING xt_vbap type ty_t_vbap.
ENDFORM.
Regards,
Naimesh Patel
Maybe you are looking for
-
Trouble with a wired connection on my fresh Arch Linux Install
I am a new Arch Linux user. I used to use Ubuntu exclusively, but I'm to the point where I can no longer stand a lot of the issues with the new development and Canonical. Anyways.... I have a Dell Inspiron 1440 laptop with an RTL8110SC (Module R8169)
-
Using Hybrid Hard Drives with Macbook Pro ???
Hello, I am looking for any news or answers, if it is possible to use one of the very new Hybrid Hard Drives from Seagate ("Momentum 5400 PSD") or Samsung ("Spinpoint MH") with Macbook/Macbook Pro ??? What i have read so far, seems only ugly Windows
-
Application cannot be launched error -10810
I recently started getting these error when I try to launch applications. Further investigation lead to the following: 1) Other threads suggested deleting "/Library/Caches/com.apple.LaunchServices.xxx.csstore" and "~/Library/Preferences/com.apple.Lau
-
So what's the latest with Java and Flash Player?
...And excuse me for not distingwishing between them, but what I do know, is that Flash Player version 10,1,102,64 that was mentioned here as the one for Tiger 10.4.11 on PPC machines -- is no longer appearing on the list at the Adobe's site. I also
-
Strange Safari 4 scrolling effect
When I scroll a page up and down in Safari, the colours and text slowly bleed until everything looks all smudged. It clears if I reload the page, but scrolling up and down smudges everything again. Anyone else notice this with Safari 4?