How to pass the Dynamically table name and RELID in IMPORT x TO y FROM DATABASE dbtab(ar) ID Key
Hello Expert,
I wanted to know is there any way through which we can dynamically pass the table name in IMPORT condition.
For e.g.
DATA : PCLT TYPE DD03L-TABNAME.
DATA: SET_RELID TYPE T52RELID-RELID.
DATA: key TYPE PCLKEY.
DATA: text_version TYPE PVRSN.
DATA: BEGIN OF ptext OCCURS 132.
DATA: line(132).
DATA: END OF ptext.
SET_RELID = 'TX'.
PCLT = 'PCL1'.
KEY = '00001000004005 9999123119960101000'.
TEXT_VERSION = '01'.
IMPORT TEXT_VERSION PTEXT FROM DATABASE <PCLT>(<SET_RELID>) ID KEY.
If i use this then it gives me error message "The Dictionary structure or table "<PCLT>" is either not active or does not exist."
Kindly help me in this matter.
Thanks
Srikanth
Hi Srikanth
I dont know if there is another solution, but this is what i did using a dynamic subroutine, please check it
just add this lines to your code
DATA: prog TYPE c LENGTH 8,
mess TYPE string,
sid TYPE string,
wrd TYPE string,
dir TYPE trdir,
OFF(3).
DATA: lt_code TYPE TABLE OF rssource-line.
DATA: ls_code TYPE rssource-line.
perform call_import using pclt set_relid key.
form call_import USING p_pclt p_set_relid p_key.
ls_code = 'PROGRAM SUBPOOL.'.
append ls_code to lt_code.
ls_code = 'form get_text tables ptext using p_key changing text_version.'.
append ls_code to lt_code.
ls_code = 'IMPORT text_version ptext from database'.
append ls_code to lt_code.
concatenate p_pclt '(' p_set_relid ')' into ls_code.
append ls_code to lt_code.
ls_code = 'id p_key.'.
append ls_code to lt_code.
ls_code = 'endform.'.
append ls_code to lt_code.
generate subroutine pool lt_code
name prog
message mess
SHORTDUMP-ID sid
WORD WRD
OFFSET OFF.
IF SY-SUBRC EQ 0.
perform GET_TEXT IN PROGRAM (prog) tables ptext
USING p_key
CHANGING text_version .
ENDIF.
endform.
Hope this help
Regards
MC
Similar Messages
-
Please help how to pass the dynamic value to VO -- Urgent.
Hi,
I have an Oracle Standard VO( SQL Query). As per my requriemnt i extended standard VO with one new feild.Now i want to query the new VO dynamically.
How to pass the dynamic values to new query?
for refence i am giving my old query.
select
secondary_inventory_name as SubInventoryName,
description as Description,
from mtl_secondary_inventories
my new Query is like this:
select
secondary_inventory_name,
description,
Item
from mtl_secondary_inventories
where item='123456'
I want to pass this "where item="123456" as dynamically. please help where i will do the change's.
Thanks,
Sekhar.Hi,
thanks pratap for quick response...but i am extending VO from Standard VO.
I have a Standard VO which contains a bind variable suppose :1.
I have extended this above standard VO and i want to add another bind variable say :2 to the custom VO.
Please tell me how will i pass bind parameter value to the bind variable in runtime ?
what are files i want to change?
Thanks,
Sekhar. -
How to identify the psa table names in bi 7?
Hi all,
How to identify the psa table names in bi 7? i need to know the psa table name in bi 7?
as well as i need to check whether any historical data loads is there for psa for a particular period?
How to filter for a particular data in the psa in bi 7?
Thanks
PoojaHi Pooja,
A)How to identify the psa table names in bi 7? i need to know the psa table name in bi 7?
Double click on the PSA and CTRLSHIFTF5 --->in PSA properties -->PSA table ..u can find the name here ....
B)as well as i need to check whether any historical data loads is there for psa for a particular period?
usually as SAP best practise we will not keep data in PSA for not more than 30 days or at the amx 60 days..you may not find historical data here..however to find the oldest data -->Right Click >Manage>Give some old date ,say 01.01.2005 in the Request newer than ...and Refresh.....
Other way is to find out in the Data provider i.e in the Cube or DSO ...
How to filter for a particular data in the psa in bi 7?
a)Do not map it
b)in the DTP...Filter it ....i.e from PSA -->CUBE/DSO....
c)Or write a routine also in start routine ...
Rgds
SVU123 -
How to pass the internal table defined in program to ALV
Hi Friends,
I have a doubt regaring the ALV's,
How can we pass the internal table defined in the program to ALV by not filling the attribute (I_STRUCTURE_NAME) in the REUSE_ALV_LIST_DISPLAY.
I have tried many ways but unable to pass the structure of the internal table. I am getting the error message "Field Catalog Not Specified......" and its terminating and when i am giving the I_STRUCTURE_NAME = 'INTERNAL-TABLE-NAME' then its displaying a blank screen with all the tool-bars and icons...(No output of internal table data is seen on the screen) .
and when i am passing the DDIC table or structure ( for eg. LFA1) to I_STRUCTURE_NAME then its displaying with any error.
Plaese help in resolving this problem....
Regards
Pradeep GoliHi,
Check this thread which gives example of ALV. This will give you an idea.
Interactive ALV
ashish -
How to decrease the dynamic table data loading time
hi
i have problem with dynamic table.
when i execute the the table with passing a query , getting lot of time for loading the table data.( it takes 30sec for every 100 rows.)
pls help me how to overcome this problem.
thanks advance.Yes, This is oracle application...
We can move into other tablespace as well. But concern is how to improve the alter table move command performance.
Is there any specific parameter apart from the nologging and parallel server..
If it is taking 8 hours , can some have experience that nologging will save how much time. or is there any risk in doing in production.
Regards -
How to pass the internal table data to smartforms
Hi Gurus,
I have a problem in passing the internal table data to the smartforms. In the print program
I get the data into one internal table "LT_PRDLBL1". I am passing this internal table to the other in print program by calling the FM_NAME.
CALL FUNCTION fm_name
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS = T_SSFCTRLOP
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS = T_SSFCOMPOP
USER_SETTINGS = ' '
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
TABLES
LT_PRDLBL = LT_PRDLBL1
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5
In the print program I had defined the internal tables like
Data: lt_prdlbl type standard table of zprdlbl.
Data: Begin of lt_prdlbl1 occurs 0.
include structure zprdlbl.
Data: End of lt_prdlbl1.
How do I define the internal table in the smartform to get the values printed in the smartform?.
<REMOVED BY MODERATOR>
Thanks,
Edited by: Alvaro Tejada Galindo on Apr 21, 2008 1:01 PMNehal,
Thanks for quick response.
In the smartform under the Form Interface->Tables tab
I had defined
LT_PRDLBL LIKE ZPRDLBL. If I define TYPE instead of LIKE I get the error message saying "FLAT TYPES may only be referenced using LIKE for table parameters".
In the main window I have created LOOP, in which I have ticked the internal table and
LT_PRDLBL INTO LT_PRDLBL. In the text node I am passing the values of this internal table
<_PRDLBL-XXXX&.
I am able to get the print but the data is not printing.
Please help me with this.
Thanks, -
How to Pass the internal table data?
DearAll,
How to pass the Data of one internal table on a 1.html page to another html page for output, in BSP Application.
regards.Hi ,
In the onInputProcessing event of the first page , write the following code...
call method NAVIGATION->SET_PARAMETER exporting
name = 'it_filt_cur'
value = it_filt_cur.
Here it_filt_cur is internal table.
NAVIGATION->GOTO_PAGE('next.htm').
In the next page , you can make the internal table as auto in the attributes.
Since you have made the itab as auto transfer , you can directly access the itab in the initialization event of the next page if it is stateless.
Regards,
Laxman Nayak.
Message was edited by: Laxman Nayak -
How to pass the local file name to the workflow in TC OAWD
Hi everybody!
I have to pass the local file name of the image as a parameter to a workflow in TC OAWD.
By debugging I found the FM which starts the workflow - 'ARCHIV_PROCESS_FAXINPUT' . It has two importing parameters : FRONTENDPATH and BASICFILENAME, but they are not used by calling the FM.
Do you have an idea if there is a DDIC table, which contains the local file name or another way to solve the issue.
Thank you in advance.Hi,
Not sure of what you want.
Have a look at v$session view. Machine column is maybe what you're looking for.
If you want to retrieve the local host executing remote desktop, it's actually not possible natievely, since it's still remote host that is connecting to the database.
Hope it helps. -
How to get the document type, name and revision from the search page cv04n
Hello,
After performing cv04n and getting a list of documents satisfying the search criteria, how can I then get the document type, name and revision of the selected document using ABAP?
ThanksHI,
IN table DRAW... u have Document type, Version and document number.
In Table DRAT also u get Document Type, Version, Number and Description of Doucment.
Regards
SAB -
How to pass parameter for table name in form6i.
Hi ,
I am facing the problem to pass parameter for table name in form6i.
If any solution please infirm me earliest to my mail id.
([email protected])
example:
begin
select ename into :ename
from :tab_name
where empno =7788;
end;
It gives error as bad bind variable 'tab_name'
*** where :ename and :tab_name are form fields
Thanking you,
Balasahebobject name not taken as table --> what do u mean by
this?
Please be more clear..
Regards
PriyaI have two block. First block I am displaying all the table using user_objects table. Another block I want display, user which table selected, corresponding table all the records. -
How to print the report file name and path and the last mod date
Good morning,
I am trying to print on the footer of the report the report file name and path as well as the report last modification date.
Anyone would know how I can do that? I have checked the doc but found nothing.
Thks. Philippe.Did you ever determine how to print report name and report last mod date?
Thanks -
How to pass the JCO Table and Structure in a collection List to frontEnd
hi,
I have a BAPI which is returns me a Table and a structure. As i have used JCO I will receive it in JCO Table and JCO Structure. Now the question is that how I should pass both these of these using a collection to the frontend for displaying the data from it.
Thanks' & Regards,
SamirHi Samir,
As you are trying to pass the Table and the Structure in the form of collection to the JSP page, you can create a javabean with the structure similar to that of the table/Structure.
Lets assume you have a table called Employee with Emp_Name, Emp_Age, Emp_Sal as three columns, create a java class by name Employee which implements Serializable and attributes as Emp_Name, Emp_Age and Emp_Sal. Generate the setters and getters for the same. In your EJB code, create an instance of this Employee class and set the attributes and save it in a HashMap in the form of key value pair, Value being your Employee class instance and key be your Employee Name. Return the HashMap in your EJB code.
Use the HashMap in your JSP. Get the Iterator for the HashMap and Loop through the keys to get the values.
Hope this helps.
Regards,
Rekha Malavathu -
Dynamically passing the source table name to OWB mapping
I am building a mapping wherein one of the source tables is a view. The view name varies with the time parameter I pass in. I am looking at ways to pass in the time parameter to the mapping procedure such that it first gets the view name from a table and uses that view as the source table to fetch data. Any directions?
In normal PL/SQL coding, I can first get the view name and use this view name to buld a dynamic query, which can be then executed.This is a common question. The best way to do this is to use a synonym.
Create the synonym in the database and import into OWB. Use the synonym in your mapping. Have your mapping accept a mapping input for the table you want the synonym to point to. Setup a premapping process to re-create the synonym with the table you want to use.
Here is the procedure that I use. It defaults to a private synonym. Remember, the synonym will be created in the same schema that the mapping is deployed to.
CREATE OR REPLACE PROCEDURE "CAWDATA"."CREATE_SYNONYM_PRC" ("P_SYNONYM_NAME" IN VARCHAR2, "P_OBJECT_NAME" IN VARCHAR2,
"P_IS_PUBLIC_SYNONYM" IN BOOLEAN DEFAULT false) IS
BEGIN
if p_is_public_synonym = true then
execute immediate 'create or replace public synonym '|| p_synonym_name || ' for '|| p_object_name;
else
execute immediate 'create or replace synonym '|| p_synonym_name || ' for '|| p_object_name;
end if;
exception
when others
then
raise_application_error(sqlcode,sqlerrm) ;
END; -
How to find the current User Name and stored in which table
In which table the current user name (Login) is stored?
Hi Mohanapriya
The query provided by Gordon can not run on query generator as the $USER is a runtime variable.
You need to save it to a query then use it in a FMS(Formatted Search.)
Just open a form(ex:sales order ), click the field in which you want to show the user name,
then press ****+F2 or Tools->Search Function->Define,
Search by Saved query,then assign the save query to the field.
After that ,you can run the FMS(shift+F2) to get the current user info.
Regards,
Syn Qin
SAP Business One Forums Team -
How to Pass the Internal table of a report to Smart Form
Hi Experts,
I have one report in which from selection screen i am getting the values from the users, and upon that values i am filling data in to the internal table.
Now i want to pass that internal table data to the smart form
and print that data in the smart form.
So could you pls give me some pseudo code or any steps to achieve it.
Thanks & Regards,
DSHi DS,
First of all you need to create a SF and then need to call the FM generated by the FM in your report.
In the SF in the form interface>tables tab>mention the name of the table and its type structure.
Pls note that a new structure has to be created as the same type of your internal table which holds the data.
And the import and export parameters as just the same as in a FM.
Now after you create and activate your SF a FM will be generated (wen u execute your SF you will be taken to this SE37 screen with the name of FM so no probs..)
You can call this FM in your report. Hope this helps.
Ex:
say itab has your final data, and you also want to export a variable var1 to the SF.
after your normal report operations end, call the FM and pass on these data.
say your FM name is FM1.
call function FM1
exporting
var1 = var1
tables
itab1 = itab1.
pls note that in the SF also i gave the same names, it is not mandatory to give the same names.
and as you want to print a table in the smartforms, you need to create a table in the smart forms and then display the data which is quite simple.
Hope this helps...
if you need any further explanations, pls revert...
Regards,
Narendra.
Reward points if helpful!!!
Maybe you are looking for
-
Just get the spinning ball all the time in FCP
When I use Final Cut Pro (newest update) I get the spinning ball all the time when I do ordinary things like dobbleclicking a videoclip (DVCpro HD) or a sequence. If I try to force quit FCP it seems like it quits, the report problem to Apple screen a
-
How to use "scanner advanced" signal with DMM 4060?
Hi! We're using SCXI-1128 switches with 1331 terminal blocks. The switches should communicate with the PCI DMM 4060 via the SH9MD cables. Does someone know if there is a possibility to use the scanner advanced signal from the switch over these cables
-
How do I get My Adobe to accept the serial number of my new InDesign? It says the SN is invalid.
-
Trouble building project in netbeans 5.0
I am working on a project for school. However, when I run the program I get the following message and the program doesn't display. I do have the setvisible method in the main ,but I am unable to see my project. Can someone please help me regarding wh
-
Hi, What i'm creating is a visual for a building plan. The basic core of it is 30 stages of the build in the form of 30 images on 30 different frame, which are linked to 30 months (buttons across the top) I also have a left and right arrow function t