To get import value of table spoolids in CALL function 'smartfomr' ?
I am calling smartform as like under:
DATA:l_doc_output_info TYPE ssfcrespd,
tab_otf_data TYPE ssfcrescl,
l_job_output_options TYPE ssfcresop.
CALL FUNCTION FNAME
IMPORTING
DOCUMENT_OUTPUT_INFO = l_doc_output_info
JOB_OUTPUT_INFO = tab_otf_data
JOB_OUTPUT_OPTIONS = l_job_output_options
exporting..
changing..
i am run the smartform than i get display than i print it form that smartform output but i am getting null value in : tab_otf_data-spoolids and tab_otf_data-otfdata,
So, how to get that table values?
if u know,
regards,
I am gettin null value in
Hi Scruz !
The parameter "GETOTF" of the structure CONTROL_PARAMETERS should be set.
Regards,
Vincent.
Similar Messages
-
Send data to ECC table through RFC Call function from SAP B1 via b1if
Hi,
I have created scenario in B1if which triggers from SAP B1, now I have to send this data in to ECC table, so I have created scenario for that with inbound SAP B1, outbound void and in process RFC Call atom is there but I am not getting data in receiver and also how to write xml to send data in RFC function. Function for RFC has configured from ECC end and have access of that function.
So please help me to send data to ECC table through RFC Call function from SAP B1 (9.0) via b1if
ThanksSolved by my own.
-
Get Field Values from Table using Java api
I am using the example java code "RetrieveLimitedRecords" that can be found at :
https://help.sap.com/javadocs/MDM71/current/API/index.html
The code give the expected result and retrieves the record count for the main table
Now I want to get the values of the fields for one record
I added the lines:
Record[] records = recordResultSet.getRecords() ;
FieldId[] fields = records[0].getFields();
System.out.println ("Field Length = "+fields.length);
and the output is::
Field Length = 0
How can I get the fields of the record and read their values?
Thanks
NicolasAssuming you want every field, the equivalent of "SELECT *" in SQL, you can use the RepositorySchema object to get a TableSchema, and with that get all FieldIds for the table.
If your RepositorySchema variable is rs it would be something along the lines of:
TableSchema mainTableSchema = rs.getTableSchema(mainTableId);
ResultDefinition rd = new ResultDefinition(mainTableId);
rd.setSelectFields(mainTableSchema.getFieldIds());
Hope this helps,
Greg -
How to get improt values in CALL function 'smartfomr name'?
i am calling smartform with fucntion module but i am getting 3 import parameter value null(i wnat regarding spool info, etc. from it) ,
i have already defined that 3 import parameters as llike in function module assosiated type.
where i am wrong , what should i have to do,
regards,I thin k you are calling function module directly - use this ,
Use FM SSF_FUNCTION_MODULE_NAME to find Smartform's FM.
formname = 'ZSMRTFORM'.
call function 'SSF_FUNCTION_MODULE_NAME'
exporting
formname = formname
importing
fm_name = fm_name
exceptions
no_form = 1
no_function_module = 2
others = 3.
if sy-subrc <> 0.
exit.
endif.
then pass the value in
CALL FUNCTION fm_name
EXPORTING ....
IMPORTING
DOCUMENT_OUTPUT_INFO = l_doc_output_info
JOB_OUTPUT_INFO = tab_otf_data
JOB_OUTPUT_OPTIONS = l_job_output_options
TABLE .....
Regards,
Amit
Reward all helpful replies. -
Not able to get distict values even after defining MAP MEMBER FUNCTION
Hi,
I am trying to get distinct values from a query to a table type. Please see the code below
CREATE OR REPLACE TYPE T_COPY_EVNT_DTL
IS
OBJECT
eventId VARCHAR2(100),
eventDescription VARCHAR2(100),
promoMonthDescription VARCHAR2(100),
promoStartDate VARCHAR2(100),
promoEndDate VARCHAR2(100),
PROMOCOSTSTARTDATE VARCHAR2(100) ,
MAP MEMBER FUNCTION sort_key
RETURN VARCHAR2 );
CREATE OR REPLACE TYPE BODY T_COPY_EVNT_DTL
AS
MAP MEMBER FUNCTION sort_key
RETURN VARCHAR2
IS
BEGIN
RETURN eventId ;
END;
END;
CREATE OR REPLACE TYPE T_EVENT_TABLE
IS
TABLE OF T_COPY_EVNT_DTL;
with event_data as (
select '1' event,'event1' event_desc,'monthdesc1' promo_month_desc ,'01/01/2001' promo_start_date ,'01/01/2002' promo_end_date,'01/02/2001' promo_cost_start_date from dual union all
select '1' event,'event1' event_desc ,'monthdesc1'promo_month_desc ,'01/01/2001' promo_start_date ,'01/01/2002' promo_end_date,'01/02/2001' promo_cost_start_date from dual union all
select '3' event,'desc3' event_desc ,'monthdesc3' promo_month_desc,'01/01/2001' promo_start_date ,'01/01/2002' promo_end_date,'01/02/2001' promo_cost_start_date from dual union all
select '2' event ,'desc2' event_desc ,'monthdesc2' promo_month_desc ,'01/01/2001' promo_start_date ,'01/01/2002' promo_end_date ,'01/02/2001' promo_cost_start_date from dual )
SELECT cast(collect(distinct t_copy_evnt_dtl(event,
event_desc,
promo_month_desc,
promo_start_date,
promo_end_date,
promo_cost_start_date) ORDER BY
event_desc,
promo_month_desc,
promo_start_date,
promo_end_date,
promo_cost_start_date) as t_event_table) from event_data;
result :
T_EVENT_TABLE('T_COPY_EVNT_DTL('2','desc2','monthdesc2','01/01/2001','01/01/2002','01/02/2001')',
'T_COPY_EVNT_DTL('3','desc3','monthdesc3','01/01/2001','01/01/2002','01/02/2001')',
'T_COPY_EVNT_DTL('1','event1','monthdesc1','01/01/2001','01/01/2002','01/02/2001')',
'T_COPY_EVNT_DTL('1','event1','monthdesc1','01/01/2001','01/01/2002','01/02/2001')')Please help me to find out the reason why it is not working...Remove the comma from T_COPY_EVNT_DTL TYPE.
ORA-22800 indicates invalid user-defined type.
PROMOCOSTSTARTDATE VARCHAR2(100) ,
MAP MEMBER FUNCTION sort_keyAnd it will be fine.
SQL> CREATE OR REPLACE TYPE T_COPY_EVNT_DTL
2 IS
3 OBJECT
4 (
5 eventId VARCHAR2(100),
6 eventDescription VARCHAR2(100),
7 promoMonthDescription VARCHAR2(100),
8 promoStartDate VARCHAR2(100),
9 promoEndDate VARCHAR2(100),
10 PROMOCOSTSTARTDATE VARCHAR2(100),
11 --,
12 MAP MEMBER FUNCTION sort_key
13 RETURN VARCHAR2 );
14 /
Type created
SQL>
SQL> CREATE OR REPLACE TYPE BODY T_COPY_EVNT_DTL
2 AS
3 MAP MEMBER FUNCTION sort_key
4 RETURN VARCHAR2
5 IS
6 BEGIN
7 RETURN eventId ;
8 END;
9 END;
10 /
Type body created
SQL>
SQL> CREATE OR REPLACE TYPE T_EVENT_TABLE
2 IS
3 TABLE OF T_COPY_EVNT_DTL;
4 /
Type created
SQL>
SQL> with event_data as (
2 select '1' event,'event1' event_desc,'monthdesc1' promo_month_desc ,'01/01/2001' promo_start_date ,'01/01/2002' promo_end_date,'01/02/2001' promo_cost_start_date from dual union all
3 select '1' event,'event1' event_desc ,'monthdesc1'promo_month_desc ,'01/01/2001' promo_start_date ,'01/01/2002' promo_end_date,'01/02/2001' promo_cost_start_date from dual union all
4 select '3' event,'desc3' event_desc ,'monthdesc3' promo_month_desc,'01/01/2001' promo_start_date ,'01/01/2002' promo_end_date,'01/02/2001' promo_cost_start_date from dual union all
5 select '2' event ,'desc2' event_desc ,'monthdesc2' promo_month_desc ,'01/01/2001' promo_start_date ,'01/01/2002' promo_end_date ,'01/02/2001' promo_cost_start_date from dual )
6 SELECT cast(collect(distinct t_copy_evnt_dtl(event,
7 event_desc,
8 promo_month_desc,
9 promo_start_date,
10 promo_end_date,
11 promo_cost_start_date) ORDER BY
12 event_desc,
13 promo_month_desc,
14 promo_start_date,
15 promo_end_date,
16 promo_cost_start_date) as t_event_table) from event_data;
CAST(COLLECT(DISTINCTT_COPY_EV
<Object> -
Getting iBrowser values in the front end using function
I have created the iBrowser by setting the value to Datalink for defaultitem in iBrowser and i tried to get the values of the iBrowser using function as
function value=Applet.getBrowserObject().getselecteditem();
but it doen not displays any values in browser field in the front end.
Please help me how to get values in the browser.
Thanks,
Rajendra.Rajendra,
You change the function as below and try
function value=Applet.getBrowserObject().getselecteddatalinkvalue();
maybe this works in your case.
Thanks,
Nagi -
How to get the values from table SKB1 R/3 to SRM
Hi Gurus,
My requirement is to get all the values from the table SKB1 to SRM (i.e. in to an internal table) for doing some validation(G/L account XXXXXX requires an assignment to a CO objectXXXXXX.)
Like wise I have many tables for doing validation in SRM
Help me how to get this, suggest me any Function module with sample code.
OR
Any Standard FM which will give all the values of the fields in the table SKB1 when I pass the key fields G/L account & company code alone so that I can improve the performance.
Suggest me.
Regards
PaulHi,
You can use the FM 's META_READ_TABLE Or RFC_READ_TABLE
Which SRM / Backend system version are you using ?
Are you taking care of the Importing paramater - DELIMITER in this case.. ??*
See related links ->
Re: Retrieving data from R/3 into SRM
Re: Product Search TIME lag
Else you can just call the remote enabled FM "BAPI_GL_ACC_GETDETAIL" from SRM.
BR,
Disha.
Do reward points for useufl answers. -
How to get the values from table region and how to set
Hi,
I have a requirement as Seeded Page Having One Table Region having around 8 columns, In That Item Description field is there. My Requirement is I need add one more field for that Region and assign the value depending Item Description.
I will create one new Item in that region and will give name as Item, But how to set the values to Item Depending on Item Description.
Is it possible to through CO Extension, If yes..Pls help how to get it.
Thanks in Advance,
HanimiHi Hanimi,
1. You need to extend the VO, add a new Attribute.
2. In VORowImpl of the extended VO, you can find the getter for your new attribute (example getItem())
3. In this getter method you can write some code like:
if("ABC".equals(getItemDescription())
return "XYZ" ;
-Prince
http://princekapoor82.blogspot.com -
Is it possible to import values from tables directly from an import packg.?
Hi there.
I want to export my UCM configuration to another environment. I create a package and I add all the tables and schema views I need. I download the package and then is installed in the enviorement without errors. In the new environment the tables are created in database and the schema views are installed correctly.
But the table is empty and the values are not imported.
Is it possible to import table values from two environments with the package component or I should do it importing directly to SQL sentences?Hi ,
You can do this using the Archiver tool where in Tables can be added to archiver collection and be exported .Target ucm server can then use this export collection to import the values to the tables .
1. Navigate to UCM - Administration - Admin Applets - Archiver
2. Create new archive collection and highlight it .
3. Under Export tab select Tables - add the required tables and update .
4. Actions - export .
5. Once export is finished then from the target server select this export collection and run Import .
Values for the tables would be populated with this method .
Hope this helps .
Thanks,
Srinath -
Any way to get the value of attribute in method call
Hi
I am using ADF 11.1.1.3 and dynamic tab shell.
I am trying to download file form my page fragment.
*<af:commandLink text="#{row.bindings.element.inputValue.FileName}"*
id="viewFileInfo"
*actionListener="#{backingBeanScope.backing_fragments_auditChecklistUploadedFilesInfo.getFileInformation}">*
*<af:fileDownloadActionListener filename="#{row.bindings.element.inputValue.FileName}"*
*contentType="#{row.bindings.element.inputValue.MimeType};"*
*method="#{backingBeanScope.backing_fragments_auditChecklistUploadedFilesInfo.getFile}"/>*
*</af:commandLink>*
I need the value of the filename *#{row.bindings.element.inputValue.MimeType};* inside my method *method="#{backingBeanScope.backing_fragments_auditChecklistUploadedFilesInfo.getFile}" D oyou have any idea how can i achieve the same..
*Scenerio* -
I have a table and inside a table filename column is a command link. And on click of the link i fetch the data from db for that file thats why i need file name inside **method="#{backingBeanScope.backing_fragments_auditChecklistUploadedFilesInfo.getFile}"* ..
Any idea?Did you try the above code ?
toolbean.finditerator does the following
public static BindingContainer getBindingContainer() {
return (BindingContainer)getValueExpression("#{bindings}");
public static DCBindingContainer getDCBindingContainer() {
return (DCBindingContainer)getBindingContainer();
public static DCIteratorBinding findIterator(String name) {
DCIteratorBinding iter =
getDCBindingContainer().findIteratorBinding(name);
if (iter == null) {
throw new RuntimeException("Iterator '" + name + "' not found");
return iter;
}If you tried the above code is the iterator null ?
What code are you using in your bean ? -
Get Node value inside Transform activity using any function
<xsl:when test="\ns0:data = *+Value of Xml node(NODE)+*">
</xsl:when>
At value of XML node i want to put the value of one xml node. is there any function in transform to get the content of node.
Thanks
vivek
Edited by: 809104 on Nov 14, 2010 9:29 PMI got the solution
we can use variable inside transform and assign xpath value to that variable then we can use that variable inside test condtition
<xsl:variable name="name" select="xpath"/>
<xsl:when test="\ns0:data = $name">
</xsl:when> -
Hi..
I created a request in presentation servicews it includes " employ id,name,organization.cost center,annul salary,haouly salary, head count". for employ 13 cost centers available so 13 annul salaries for 13 organizations.each has annul saari 10400,hourly salary 10.previously when i run the request with headcount not including salaries headcount is 1 for 13 rows. when head count is not included in the requst and ran request it gives for 13 rows salaries are 10,400,10 respectively. when i add the head count to the previous request the salaries become 135200,130 respectively. actual head for each organization is 1.in the requst it show as 13. the headcount field in business layes uses 'other sum(headcount),date last(headcount). i need it to same values for salaries after addition of
headcount also.
Thank you.
Edited by: user10797474 on May 20, 2009 8:08 AMDid you already have a look in the log file to see the SQL which is sent to the DB?
This might be a modeling issue in your RPD. Check if you have set the correct dimensionlevels for your facts.
Regards
John
http://obiee101.blogspot.com/ -
SELECT from table vs. CALL FUNCTION
Hello,
I have always wondered what the "best practice" is in this case, so I am looking for input. When writing custom reports etc. in SAP, is it generally regarded as better practice to write a SELECT statement to get a line from say a Txxx configuration table, or is it best to use an associated BAPI or call to function module? I know in some cases perfomance must obvioulsy be considered, but in terms of SAP's recommendations or upgrade considerations, which is typically better?
Assume for example something as simple as getting company code data... Is it best to do <b>SELECT * FROM T001...</b> or to call a BAPI like <b>BAPI_COMPANYCODE_GETDETAIL</b>?
Any feedback would be greatly appreciated.Hi
Never accusing people of regarding performance, however I emphasize safety while developing. Even if it is a T* table, I try to use a standard function or call a subroutine of a standard program doing the work. I feel safer this way. Nevertheless, when I can't find any suitable (as of its interface), I use direct SELECT statements.
If it is a simple report program then doing direct selects may be tolerable. However, if it is a more sophisticated one, especially if it deals with database updates, I highly recommend to use standards.
As another way, I am aware you mean simple tables, but by the way, if it has a functional relation with a business entity (e.g. pa0001 for employee), I regard it as mandatory using standard FMs where applicable (I feel myself obliged to call "HR_READ_INFOTYPE" instead of using "SELECT* FROM PA0001...").
*--Serdar -
Needs to have a specific table for the F4 functionality
Hi Gurus,
I have created a parameter which uses the F4 functionality.
I have used
PARAMETER: P_PARAM like T001-BUKRS.
What I need is the F4 should call a custom table and not the default search help that is being called.
Thanks in advance.
BenedictHi,
Use the below code
DATA: BEGIN OF it_bukrs OCCURS 0,
bukrs LIKE t001k-bukrs,
END OF it_bukrs.
SELECTION-SCREEN: BEGIN OF BLOCK main WITH FRAME TITLE text-001.
SELECTION-SCREEN SKIP.
PARAMETERS: p_bukrs(4) TYPE c.
SELECTION-SCREEN END OF BLOCK main.
Validation Section
INITIALIZATION.
SELECT DISTINCT bukrs FROM t001k INTO TABLE it_bukrs.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_bukrs.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'BUKRS'
dynpprog = sy-repid
dynpnr = sy-dynnr
dynprofield = 'P_BUKRS'
value_org = 'S'
TABLES
value_tab = it_bukrs
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. -
How to get the value from the Input field of the Table view.
Hi Experts,
I have created a table view with 10 rows and each rows contains input fields in it.Can you please help me getting the values that are entered in all 10 rows.
Currently I am using the below code,but using the below I am able to get only the first row details of the table.
lo_el_table->get_static_attributes(
IMPORTING
static_attributes = ls_table).
Please let me know you suggestions on this.Thanks in advance.
Regards,
ArunHi Arun,
You should use this method:
lo_nd_table->get_static_attributes_table(
IMPORTING
table = lt_table).
Cheers,
Roelof
http://www.nl4b.com
Maybe you are looking for
-
Business system from SLD not visible in Integration Directory
Hi, As on the project I do not have access to the SLD, another team created new business systems there. However, when I try in the Integration Builder(Configuration) to assign the newly created systems, I cannot see them on the "Select business syste
-
How to generate Pay-in slip from SAP ECC 6.0
Hi SAP Guru, Can u please tell me how to generate pay - in slip for depositing of checks into the bank from SAP ECC 6.0 Thanks Rajeev
-
Only 4x5 prints from Lightroom
I'm running Lightroom 2.4 with Mac OS 10.5.7. When I try to print a photo full-size or in several sizes using the contact sheet or picture package templates, I get a beautifully done print in 4x5 size, i.e. on one quarter of the page. If I export t
-
Where Photoshop CS6 exports the clipboard and how to delete it
Hello, I have a problem with Photoshop CS6. I made one big file (350x300cm) and I worked a long on it. When closed Photoshop I saw a message "Exporting clipboard" and it was very slow operation. Then, when I looked to my D part of Hard disc it was 2-
-
Mobile data us unavailable while on this call
What does this mean??? I purchased the new Droid Turbo 2 weeks ago and this message window pops up during and after every call.