Smartforms- TABLE -Lines,rgrding passing Quan&DATS fields to smartforms
Hi All ..
Iam working on Tables in smartform ,
These are queries to which i need solution ..
1) In (Window) Table- Heading i have created 3 LINES in which my data had to display...( i have a line in that TEXT is used to display a particular fields of the Itab ) . as i came to know that in my Zprog iam gettting my data in the fields but wen in smartform these fields values are not displayed ( when these fields are placed in LINE ) but wen these fields are placed outof LINE that is outof table then iamgetting value for these fields.. so please let me know wat are the changes that ishould do to get my data in my table ( LINE )
2) How to pass DATS and QUAN fields to the smartforms..
as iam getting data to DATS and Quan Fields in my Zprog but these values are not showed in my smartForm .. ..
Thanks in Advance..
Looking for a good reply ..
Aslam..
Hi,
you have created 3 linetypes for table .
you have create loop for multiple records display.
in loop you have to pass table from which you are displaying inti output.
To internal table we get data from print program and create text for corresponding cells.
then it will pass those data to table.
2) create programlines for that.
in that mention table from which table is containing quantity.
that is import parameter specified .
export parameters are your output fields using for calculation.
AMOUNT = TAB3-NETWR.
Netamount = Netamount + TAB3-NETWR.
here input is tab3 table it contains quantity data.
lamount,netamount are output parameters.
like that you can display quantity.
or in global definitions currency/quantity fields tab is available you can pass there also.
for dat fields write logic for conversion of date and pass that variabl in form output.
Similar Messages
-
Problem in passing a date field to initilaize a VO query
Hi,
I am stuck with date issue
I am passing end date to a VO query as parameter.
this date is oracle.jbo.domain.date
public void initQuery(Number swapHeaderId, Date start_date, Date end_date)
setWhereClauseParam(0, end_date);
When i print this end_date I get 2011-08-15
In VO query I have mentioned
Select Srsf.Swap_Header_Id From Sfifin.Sfi_Rm_Swap_Fills Srsf ,Sfifin.Sfi_Rm_Swap_Header Srsh, Sfifin.Sfi_Rm_Offer_Lines Srol Where Srsf.Swap_Header_Id = Srsh.Swap_Header_Id
And Srol.Offer_Line_Id = Srsf.Offer_Line_Id And Srol.Offer_Header_Id = Srsf.Offer_Header_Id And Srsf.Swap_Header_Id = 124
And to_char(Srol.End_Date,'YYYY-MM-DD') > to_char(to_date(:1,'YYYY-MM-DD'),'YYYY-MM-DD')
Now when this Vo executes I get this error.
java.sql.SQLException: ORA-01858: a non-numeric character was found where a numeric was expected
I have tried all means but am unable to solve this issue.I have even tried to use
Srol.End_Date>to_date(:1,'YYYY-MM-DD') in where clause but still the same error when I am hardcoding this parameter its working fine .
Please help.setWhereClauseParam(0, end_date);Change this to
setWhereClauseParam(0, end_date.toString());In VO query change
Srol.End_Date > TO_DATE((to_char(trunc(to_date(:1)),'DD-MON-YYYY') ),'DD-MON-YYYY')Hope it helps!!
Thanks
AJ -
Can we have 1 extractor that runs delta on 3 date fields in 3 diff tables?
Hi guys
i need a extractor that tracks changes to 3 different tables based on three different date fields one in each table. can this be done in one extractor. i understand u can have only one delta pointer per extractor. but is there a way to do this using a function Module?
the other option is i know create three extractors, but since the fields i need are going to be a inner join b/w all three tables i was wondering if only one extractor is possible?
ThanksHi,
this dummy date as the generic delta field will be passed to the fm (in case of a delta request) in the table i_t_select. Grab the value and design your select statement/s as you need. E.g.
select * from your_view
where date1 >= delta_date or date2 >= delta_date or date3 >= delta_date....
Hope this helps!
regards
Siggi -
SAP R/3 Tables without Date fields
I am trying to import data from SAP R/3 into MS SQL DWH.
There are tables which doesnot have posting date fields.
Can anyone tell me how to map them with those Table which will have posting date fields, so i can create view in SAP and then pull that view into SQL DWH restricting on date.
Following tables which doesnot have date fields i want to pull date for month of July 2007;
EKBE
EKKO
MAKT
MSEG
KSEG
AFPO
JEST
JCDS
MARA
AUFK
COEP
RESB
MARC
I am not a ABAP developer just trying to get my data from SAP, so please answer in detail.BUDAT is the technical name for Posting Date field. This field is used many DB Tables/ Strucutres. Using where used option you can find the required tables.
I suggest you to look at BSEG table for Finace Document postings by Posting Date. -
Table for Valid To date field in C203 Tcode
Let me know the table name for "Valid To Date" field in C203 transaction.
Thanks,
Angavai.EHi Angavai,
Check with table PLMW.
Regards,
Raghu -
Date field is missing in the Table maintainance generator
Hi,
A table is created. A date field is there in that table. I tried to create a table maintainance generator for this table using 2 screens. Table maintainance generator is created. But when I go to SM30 , I am unable to see this <b>DATE</b> field in the SM30 , in the first screen. But when I go to maintainance screen , I am able to see this field. This particularly happening with date field.
Could you please help me.
Regards,
Satyago to se11 and type the table what you want.
utilities, table maintenance generator.
you config the options that you need.
press F6 and go to sm30.
its only this.
Regards -
How to insert row in table control and save the data in tables
Hi,
I have one table control i am displaying data into table control ,
my problem is : i want to display data into read mode in table control.
but when i click on insert button on the same screen i want one blank line should inserted into table control , then i want to insert some data into table control on that row , when i click the save button . the new data inserted into the table control is insert that data into ztable ,
please give me solution
main problen is how can know inserted line in table control and pass that data into ztable.Hi,
Follow the below logic,
PROCESS BEFORE OUTPUT.
MODULE STATUS_0001.
MODULE POPULATE_TABLE_CONTROL. --> Get the data from table store in
ITAB
LOOP AT GT_CTRL_LP_D516 INTO GS_WA_CTRL_LP_D516
WITH CONTROL CTRL_LP_D516
CURSOR CTRL_LP_D516-CURRENT_LINE.
The following module moves data to control
MODULE MOVE_TO_CONTROL.--> Move data from ITAB to table control
ENDLOOP.
PROCESS AFTER INPUT.
LOOP AT GT_CTRL_LP_D516.
ENDLOOP.
MODULE EXIT AT EXIT-COMMAND.
MODULE USER_COMMAND_0001. --> Here you have to take out the values from table control and update database table
Reward points if helpful.
Thanks and regards,
Mallareddy Rayapureddy,
Munich, Germany. -
Hi,
I have a pl/sql page that is the output of a select statement with some conditions.
One of the condition is like:
AND MyColumn between (:P1_MyDateItem - 7 , :P1_MyDateItem)
but as soon as I include an addition or substraction (:P1_datefield - 7) , I get ORA-06550: line 18, column 28: PL/SQL: ORA-00932: inconsistent datatypes: expected DATE got NUMBER
How can I resolve that error?
Also,
I am trying to pass the date field to a second page in a hidden field. In a similar scenario as the one described above, how can I manipulate the date using the hidden field. ie. in my testing, I think it kind of converts the "date" into "char' format?? can I also do the same manipulation "Date-7" but this time using a hidden field instead?
ThanksFabioBui wrote:
but as soon as I include an addition or substraction (:P1_datefield - 7) , I get ORA-06550: line 18, column 28: PL/SQL: ORA-00932: inconsistent datatypes: expected DATE got NUMBER
How can I resolve that error?Try converting it to a date first
to_date(:P1_datefield, <date_format>)-7
I am trying to pass the date field to a second page in a hidden field. In a similar scenario as the one described above, how can I manipulate the date using the hidden field. ie. in my testing, I think it kind of converts the "date" into "char' format?? can I also do the same manipulation "Date-7" but this time using a hidden field instead? Yes, if that's what you want to do. A date field is just a text box, made nicer with the jQuery Date Picker.
so date picker:
<input type="text" value="12/14/2011" />
to a hidden item
<input type="hidden" value="12/14/2011" />
only difference being the display type.
Just remember to convert it to a date in your pl/sql code. -
How to process reports with two different date fields
Morning all,
This question is somewhat similar to what I asked few days back. I created two different reports for two different departments (Credit Control and Free of Charge Control).
These two reports pull data from two different date fields and has different status check ups.
Few days back my director requested me if he can have both reports in one report. That is when I asked question from all of you regarding two reports.
Anyhow, that was created by implementing two sub reports however, the director asked me to combine the two different reports into one in such a way that the output records should be added up with each other hence one single report with all combined data of Credit Control and Free of Charges (not two sub reports in one report).
The problem here which I am getting is that, both reports uses two different date fields. I can live with two different statuses as that can be easily done within formula/RT however how to create a report with Report Selection Formula condition which looks in both date fields and produces results accordingly?
I have tried this by not putting any condition in report selection formula and ran the report, it produced total results from past 6 years.
Any ideas how to produce combined report which has two different date fields?
Many thanks in advance
Regards
Jehanzeb
What ICharliy,
No the both dates are from two different databases, tables and fields. The Credit date field is from KLAB database under max table where as the FOC date field is from SAE database under maxmast table. Klab date is under credit2 table where as foc date is under order header table.
So its more like this:
Klab->Max-Credit2--->Credit_date
Sae->Maxmast->Order_header---Date entered.
two dates totally different tables, dbs
however, I will try your idea too and see if that works.
Regards
Jehanzeb -
Dynamically pass the date to all the programs in a chain
Hi,
I have a requirement to pass the date to all the programs in the chain. The first step when the chain starts should be to calculate the next batch date from a oracle table, and then pass that date as an argument to all the programs.
For example,
This should be the sequence of steps once the chain has started.
1. Start Chain
2. Step1 - Calculate the next batch date from the oracle table.
3. Step2 - After the successful completion of Step1, run the program with the input parameter as date which is calculated from Step1.
4. End Chain
Please help.Hi,
The recommended way of doing this is to store tha data to be passed (in this case the date) in a table and have the other steps access it.
If you have many chains, or the same chain used several times, you can use the job name and owner as the primary key for the table. You can then pass the job name and owner into every program as metadata arguments (see define_metadata_argument) so every step knows what job is a part of and can select the data from the table.
Hope this helps,
Ravi. -
Problem with updating Time component of an Oracle Date field in ALBPM
Hi.
I'm new to ALBPM and am experiencing the following problem I hope someone can take the time to help out with.
I'm using a Date and Time Picker element in a Form to enter the date and time information. Within ALBPM the date and time representation appears correct as it prints out what I've entered. The logMessage displays this information in the form "YYYY-MM-DD HH24:mm:ss+TimezoneOffset". The BPM Object that stores this value is referencing an Oracle table that has an equivalent Date field. My problem is that it appears to only update the Date component.
I've also tried using the native Time variable type within ALBPM be adding an variable of type Time to the BPM Object and setting the result Database object equal to this Time variable with the same result. The Time variable was declared with Timestamp precision (take this to mean both Date and Time components).
Has anyone come across this problem? I'm using ALBPM Studio 6.0 M3 as my release.
Thanks.I must have deselected the "Use Timestamp for Date columns" in the Advanced tab within the External Resource definition for my database at some point in time. Enabling this option fixed my problem - silly me.
-
Transfering Date field into UNIX server
Hi,
I transferring date field to UNIX server from SAP which later read by MAINFRAME system from UNIX server.I would like to transfer the date field with length 5 into Unix server.I tried to transfer using PACK, but packed date is not readable to validate the unix file.Can anybody help me out on this.
Thanks in Advance,
Kilaruhi,
For writing the fields into Unix file, they have to character fields.
to pass a date field, try like this.
data: v_date(10) type c.
concatenate sy-datum6(2) sy-datum4(2) sy-datum+0(4) into v_date separated by '/'.
now send v_date to unix file.
Regards,
Sailaja. -
JSTL sql:query date field has zero time part
I have a little JSP where I am using JSTL to do a query against a table "ph_application" that has a date field "rundate". This field has many different dates and times in it.
Here is the code snippet:
<sql:setDataSource url="jdbc:oracle:thin:@oraprd02:1521:ipp4" user="site" password="pmc_site"/>
<sql:query var="application" sql="select * from ph_application"/>
<c:forEach items="${application.rows}" var="row">
<tr>
<td><c:out value="${row.name}" default=" " escapeXml="false"/></td>
<td><fmt:formatDate value="${row.rundate}" type="both"/></td>
</tr>
</c:forEach>
The resulting date/time output always has a 12:00:00 AM time regardless of what is actually in the table. I have changed the fmt:formatDate to a c:out of the row.rundate.time value and it appears that the time part of the date is actually zero at this point.
Is there an inconsistancy between the oracle date type and what JSTL is expecting (somewhere)?
Any help and/or verification is appreciated.
RichardI'm running this from within JDeveloper 10g.
-
How to pass the data to field of table.
I want to pass the data to the fields of table. I want it with codes.
Hi sindu,
First of all Welcome to SCN.
I hope you need to Read the [Rules of Engagement|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement] before posting more.
There are lots of resources available already here, so have a habit of searching before posting a question.
Also while posting a question ensure that you include the following details;
1) what is your requirement?
2) How you are doing it?
3) Where are you struck?
4) What have you done to overcome the problem?
5) The part of code that needs troubleshooting.
Regards
Karthik D -
Add line to type ref to data field - type table
HI All,
I have field that is defined as type ref to data ,and the type of it is table with data inside of it lr_data.
I have the also the table type of lr_data and I want to add additional line to the type ref to data field.
How can i do that ?
For example
TYPES: BEGIN OF bank_list,
country_key type string,
bank_key type string ,
bank_name type string,
bank_city type string ,
END OF bank_list.
data lt_bank type table of bank_list.
data lr_data data ref to data.
Now lr_datae is type lt_bank " in _Runtine
and contain 4 entries .
I get the lr_data with 4 entries and I want to add new entry to the table.
How can I do that?
Thanks,
Joy
Edited by: Joy Stpr on Feb 8, 2012 10:05 PMHello Joy,
You can check this code snippet to get an idea on how to proceed with your requirement:
CLASS lcl_add_data DEFINITION.
PUBLIC SECTION.
CLASS-METHODS add_data CHANGING ch_data TYPE REF TO data
EXCEPTIONS err_invalid_type.
ENDCLASS. "lcl_add_data DEFINITION
* CLASS lcl_add_data IMPLEMENTATION
CLASS lcl_add_data IMPLEMENTATION.
METHOD add_data.
DATA: lo_tabdescr TYPE REF TO cl_abap_tabledescr,
lo_strucdescr TYPE REF TO cl_abap_structdescr,
ls_component TYPE abap_compdescr.
FIELD-SYMBOLS: <lt_data> TYPE STANDARD TABLE,
<ls_data> TYPE any,
<lv_fieldval> TYPE any.
IF ch_data IS BOUND.
* Get the runtime type object
lo_tabdescr ?= cl_abap_typedescr=>describe_by_data_ref( ch_data ).
* Check if supplied param is table
IF lo_tabdescr->type_kind NE cl_abap_typedescr=>typekind_table.
RAISE err_invalid_type.
ENDIF.
ELSE.
RETURN.
ENDIF.
ASSIGN ch_data->* TO <lt_data>. "Dereferencing the data reference
* Get the line type of table
lo_strucdescr ?= lo_tabdescr->get_table_line_type( ).
DO 2 TIMES.
* Add initial line to the table
APPEND INITIAL LINE TO <lt_data> ASSIGNING <ls_data>.
CLEAR <ls_data>.
* Loop on the fields of the structure & populate them
LOOP AT lo_strucdescr->components INTO ls_component.
ASSIGN COMPONENT ls_component-name OF STRUCTURE <ls_data> TO <lv_fieldval>.
CASE ls_component-name.
WHen 'COUNTRY_KEY'.
<lv_fieldval> = `My Country`.
WHEN 'BANK_KEY'.
<lv_fieldval> = `123`.
WHEN 'BANK_NAME'.
<lv_fieldval> = `My Bank`.
WHEN 'BANK_CITY'.
<lv_fieldval> = `My City`.
ENDCASE.
ENDLOOP.
ENDDO.
ENDMETHOD. "add_data
ENDCLASS. "lcl_add_data IMPLEMENTATION
TYPES:
BEGIN OF bank_list,
country_key TYPE string,
bank_key TYPE string,
bank_name TYPE string,
bank_city TYPE string,
END OF bank_list.
DATA: lt_bank TYPE STANDARD TABLE OF bank_list,
lr_data TYPE REF TO data.
START-OF-SELECTION.
GET REFERENCE OF lt_bank INTO lr_data. "Get reference
* Add the data to the data reference
lcl_add_data=>add_data( CHANGING ch_data = lr_data
EXCEPTIONS err_invalid_type = 1 ).
BR,
Suhas
Maybe you are looking for
-
Premiere elements 11 failed to install with the error about shared technologies
PRE 11 failed to install with the error "The installation process has encountered an error while installing shared technologies. Please restart your system and try again" all that does is uninstall everything and I have to restart agin with the same
-
[SAP XI] EDI orders posting job to SAP R/3
Hi everyone! I would like to know if SAP XI has the capability to directly post EDI orders in SAP R/3 wherein IDocs are placed. If yes, how? (Please describe the process in detail) In normal EDI implementation (AI, 3rd party translator used), batchjo
-
New to MacBook - slow LAN file transfer problem
My new MacBook is painfully slow when wifi-ing to my house LAN. I turned in my old G4 iBook for a MacBook (2GHz C2D, 2GB, 10.4.9, all updates). I have a LAN that consists of a wired 1G Ethernet backbone (a Mini and a Powermac G5 are wired in) and a S
-
What kind of scenarios we will do in real time? give me with example. points will be awarded. thanks in advance.
-
i have unlimited texting plan, yet no data, i went on Facebook to set up my Facebook mobile texts, and when i text the number i was given, i didn't receive the confirmation text, i also checked to see if it was blocked and nothing was blocked except