Filter table data without calling BAPI
Hi all,
How I can filter VC table without calling BAPI or other backend? The objective is to bring a large data only once and allow to user filtering of this data.
The problem is that the filter options are dynamic so I can't use "hidden tables" workarownd.
Any ideas?
Thanks,
Ola
Hi,
I think this is not possible, because you can only filter the data once with the filter element. If you use a BI query you can use filters. Maybe you can bring the data to a hidden table and get the data again from this table with different filter elements resp. dynamic filter values, but I think this is very tricky and not a good solution.
Best Regards,
Marcel
Similar Messages
-
How to display table data without using ALV and table element.
Hi,
Its possible to display table data without using ALV and table element.
Every time i am fetching data based on (customer,status) fields and displaying these data in my output using alv
(every time i am fetching single row data ),
But problem is alv occupying more space in the output , i want to display data part only i dont want field names,
settings and header data etc..things.
Give solution to display data part..
Regards,
Rakhi.Hi,
Does you mean that you need ALV without default Function Toolbar...? If this is the case, the easy solution would have been to use Table Element rather. But, if you need to use ALV only without Function Toolbar, you can do away with that as well.
In that case, after calling GET_MODEL, you need to add few more lines of codes to achieve your goal. Those lines are --
DATA LV_VALUE TYPE REF TO CL_SALV_WD_CONFIG_TABLE.
LV_VALUE = LO_INTERFACECONTROLLER->GET_MODEL(
* Standard Filter Function setting to FALSE
LV_VALUE->IF_SALV_WD_STD_FUNCTIONS~SET_SORT_COMPLEX_ALLOWED( ABAP_FALSE ).
LV_VALUE->IF_SALV_WD_STD_FUNCTIONS~SET_FILTER_COMPLEX_ALLOWED( ABAP_FALSE ).
LV_VALUE->IF_SALV_WD_STD_FUNCTIONS~SET_FILTER_FILTERLINE_ALLOWED( ABAP_FALSE ).
LV_VALUE->IF_SALV_WD_STD_FUNCTIONS~SET_DISPLAY_SETTINGS_ALLOWED( ABAP_FALSE ).
LV_VALUE->IF_SALV_WD_STD_FUNCTIONS~SET_VIEW_LIST_ALLOWED( ABAP_FALSE ).
LV_VALUE->IF_SALV_WD_STD_FUNCTIONS~SET_SORT_HEADERCLICK_ALLOWED( ABAP_FALSE ).
LV_VALUE->IF_SALV_WD_STD_FUNCTIONS~SET_HIERARCHY_ALLOWED( ABAP_FALSE ).
* Standard Filter Function setting to FALSE Ends
Here as you can easily notice that LV_VALUE is instantiated on CL_SALV_WD_CONFIG_TABLE. Now, using this LV_VALUE, you set standard functions as False to dis-allow their display.
Hope this answers your query.
Thanks.
Kumar Saurav. -
Read/write table rather than calling BAPI
Hi experts,
I need set "Deliv. compl." flag as true .
set NOMOREGR='X' when call BAPI_GOODSMVT_CREATE
I want to read/write table rather than calling BAPI, but I don't know what's the table,what's the field.
who can tell me? How to find that?
I pressed "F1" key in the checkbox (Deliv. compl. flag), then I clicked "Technical infomation", and I got "MEPO1313-ELIKZ", but it's a struct, not a table.
Many thanks.I happened to recall something about MEPO from way back when.... and the "EPO" suggested EKPO and EKKO to me...
However, I utilize WHERE-USED function a lot. For instance, in this case, one might go into SE11, enter ELIKZ into the data type field, and select WHERE-USED. This takes a bit of research since field ELIKZ is used often as completion indicator, LOEKZ as deletion indicator, etc.
Best wishes,
Dave -
How to Fill custom table data using standrad BAPI
Hello Team,
I have some clarification on usage of Standard BAPI : BAPI_Material_savereplica.
I have some custom fields in MARA and MARC tables so i have used BAPIExtensionin and able to pass custom field of MARA and MARC.
My issue is in material master the MARC custom fields of a material are going to update in a Z table along with MARC table.
So can we achieve this functionalioty using BAPI : BAPI_Material_savereplica menas can we upadate custom table by using standarda bapi
Please let me know the available options ..Hi Some,
You are saying most of the data is resides out of sap, then you try with mapping of those data in sap standard tables if match or if not then develop a custom interface which will read data from outside & will put in your pay roll processor interface,
and normally your SAP data you can interface through PU12.
If you want single interface then you need to develop unique interface program.
All the best. -
Smart Synchronization Without calling BAPI wrapper
Hi All,
I am very new to SAP MI development...
I wanted to know that
is it possible to call BAPI directly not calling with use of BAPI Wrapper?
is there any other way to do Smart Synchronization where BAPI wrappern not required?
Thanks,Hi Maulik,
if u directly want to call the BAPI u will need to call the underlying RFC related to that BAPI.
This is done through Generic Synchronization.
Please refer to documents on help.sap.com and MDK for further help.
cheers
Anand -
Filter Table data on Query Result
Dear All
When I execute the following query (in Query Generator) I got 6411 records. But when I want to filer this table, in the drop down list in 'ITEM' column I found only 500 records (i.e. up to the recods starting with 'K' though there are records starting with 'W' in 'ITEM' field).
I am using SAP B1, PL 14.
Can any one suggest how to get all the records in the drop down list of filter window?
My query is as follows:
SELECT distinct D.ITEMCODE + ' - ' + D.DSCRIPTION 'ITEM',
DATENAME(M,H.DOCDATE) + ' - ' + DATENAME(YYYY,H.DOCDATE) 'MONTH',
D.PRICE
FROM PCH1 D INNER JOIN OPCH H ON H.DOCENTRY= D.DOCENTRY
WHERE H.DOCTYPE='I' AND D.ITEMCODE + ' - ' + D.DSCRIPTION IS NOT NULL
ORDER BY 1, 2
Thnaks & with regards
Aloke
Edited by: ALOKE BANDYOPADHYAY on Jul 15, 2011 4:51 PMDear Gordon
I have placed the following problem also in forum since one month without receiving any positive answer. So I am requesting you personally can you help me to solve the problem:
Following is the code I am using for revaluation of items which is giveing "Internal Error 5002':
Dim lMaterialRevaluation As SAPbobsCOM.MaterialRevaluation
lMaterialRevaluation = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oMaterialRevaluation)
For li As Integer = 0 To ls_Lines.Length - 1
If ls_Lines(li).Split(vbTab).Length 5 Then
My.Computer.FileSystem.WriteAllText(ls_OutFileName, lnl_SrlNo & "--> Can't Read in the data in Line " & li + 1, True)
My.Computer.FileSystem.WriteAllText(ls_OutFileName, vbNewLine, True)
lnl_SrlNo += 1
Continue For
End If
ls_ItemCode = ls_Lines(li).Split(vbTab)(0).Trim
ls_WareHouseCode = ls_Lines(li).Split(vbTab)(1).Trim
ld_Price = ls_Lines(li).Split(vbTab)(2).Trim
li_IncAccount = ls_Lines(li).Split(vbTab)(3).Trim
li_DecAccount = ls_Lines(li).Split(vbTab)(4).Trim
lMaterialRevaluation.Lines.SetCurrentLine(li)
lMaterialRevaluation.Lines.ItemCode = ls_ItemCode
lMaterialRevaluation.Lines.WarehouseCode = ls_WareHouseCode
lMaterialRevaluation.Lines.Price = ld_Price
lMaterialRevaluation.Lines.RevaluationIncrementAccount = li_IncAccount
lMaterialRevaluation.Lines.RevaluationDecrementAccount = li_DecAccount
lMaterialRevaluation.Lines.Add()
Next
Dim li_Ret As Integer
li_Ret = lMaterialRevaluation.Add
If li_Ret = 0 Then
MsgBox("Material Revaluation Completed")
System.Runtime.InteropServices.Marshal.ReleaseComObject(lMaterialRevaluation)
Else
oCompany.GetLastError(lErrCode, sErrMsg)
MsgBox(sErrMsg & ", Material Revaluation failed")
End If
Thanks & with regards
Aloke -
Pulling Table data with a BAPI
Hi:
Looking for BAPI to pull data from Tables in the back end.Hi Jo,
As I see, both the model node and the Value node has the same structure. In that case try using the copy service API for copying sll the values from ur model node to value node. The statement is
WDCopyService.copyElements(wdContext.node<ModelNodename>,wdContext.node<ValueNodename>);
This should work
Regards,
Poojith M V -
Change table data without tabular report
Hi,
I am very new the APEX, and PL/SQL for that matter, but hope this is not too newbie.
I am trying to make a page with a report where I can change table values by ediiting text in report columns. I have tried to use tabular report but since my source pl/sql includes a search etc I am not able to write SQL which is accepted as SQL updatable report.... this is my source which works with search:
declare
q varchar(32767);
begin
--Search with no text
if(:p1_report_search IS NULL) then
q := 'select * from tpd_delivery_detail';
--Search According to criteria
else
q := 'select *
from tpd_delivery_detail
where upper(trim(:p1_report_search)) '||:P1_OPERATOR||' upper(trim('||:p1_in||')) ';
end if;
return q;
end;
So my first question is if it is possible to write this as SQL updatable report, and if how?
Then I have a process which start when a button is pressed which is:
declare
l_colA tpd_delivery_detail.status%TYPE;
l_colB tpd_delivery_detail.usr_comment%TYPE;
begin
for i in 1..apex_application.g_f01.count
loop
select status
, usr_comment
into l_colA
, l_colB
from tpd_delivery_detail
where id = apex_application.g_f01(i);
if l_colA != apex_application.g_f12(i) or l_colB != apex_application.g_f13(i) then
update tpd_delivery_detail
set status = apex_application.g_f12(i), usr_comment = apex_application.g_f13(i)
where id = apex_application.g_f01(i);
end if;
end loop;
end;
In the process I try to to see if any of the two updatable columns are changed and needs updating, and if so update. Here my problem is the apex_application.g_f01(i) which when i is a number refering to the row...cant get the apex_application.g_f01(i) to refer to the data in the report.
My question is how I can use the apex_application.g_f (suspect you can only use for tabular report) or if there is another easy way to do the updates I want?
Best regards
AlexIs it common to implement TDMS without scrambling sensitive data? => This depends on the customer situation , if you feel that you have very sensitive data in sender system and do not want to expose this data to users in receiver system , then for sure scrambling is the way else leave it .
Or to change table auth groups in one system and not in another?=> I do not understand the need of doing this , can you elaborate a bit more . -
How to do import of only table data without procedures and synonyms
Hello All,
I want to import only the tables of one database to a new database. I did a table level export of one schema. But along with it the stored procedures,synonyms, views etc are exported. Is there any way to stop them. Or is it possible to import only the tables from the dump created?
Regards
SatishHi Maran,
Thanks for the feedback. I think I didnot specify the parafile with the table list while exporting. I am redoing it now. I shall update this post within 20 minutes.
Regards
Satish -
Af:Table data refresh without calling ManagedBean constructor
Hi,
I have an adf application jspx page where I have af:selectOneChoice and af:table showing default data. On selecting af:selectOneChoice value (assigned, completed etc.) I am calling managed bean method which calls task flow client api which gets the task details based on af:selectOneChoice value and show in the adf table.
When ever I change the af:selectOneChoice value, first it is callling 'valueChanged(ValueChangeEvent valueChangeEvent)' method in managed bean and able to get the records based on filter value(Example: Assigned). Issue is immediatly after that Managed bean constructor also calling which overrides the previous query and get the records based on default filter value (Example: All).
here is <af:selectOneChoice & <af:table code:
<af:selectOneChoice id="rsoc" autoSubmit="true"
binding="#{backingBeanScope.backing_taskdetails.rsoc}"
label="Status" valueChangeListener="#{backingBeanScope.backing_taskdetails.valueChanged}">
<f:selectItem itemValue="A" itemLabel="All" />
<f:selectItem itemValue="AG" itemLabel="Assigned" />
<f:selectItem itemValue="C" itemLabel="Completed" />
</af:selectOneChoice>
<af:table emptyText="#{bindings.taskList.viewable ? 'No data to display.' : 'Access Denied.'}"
var="row" columnStretching="multiple"
value="#{backingBeanScope.backing_taskdetails.taskList}"
immediate="false" rowSelection="single"
binding="#{backingBeanScope.backing_taskdetails.t1}"
id="t1"
inlineStyle="font-family:Arial, Helvetica, sans-serif; border:0pt none; "
partialTriggers="::rsoc">
Here partialTriggers is invoking managed bean. So Can I refresh only table data without calling managed bean constructor on selection of <af:selectOneChoice?
Any inputs will be highly appreciated. Thanks.Hi,
Thanks for your reply.
here it is my adfc-config.xml file.
<?xml version="1.0" encoding="UTF-8" ?>
<adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
<managed-bean id="__2">
<managed-bean-name id="__3">backing_test</managed-bean-name>
<managed-bean-class id="__4">view.backing.Test</managed-bean-class>
<managed-bean-scope id="__1">backingBean</managed-bean-scope>
<!--oracle-jdev-comment:managed-bean-jsp-link:1test.jspx-->
</managed-bean>
</adfc-config>
I am not using adf taskflow (Should I use this, I am not sure as I am new to ADF. Please suggest). My execution flow is I have 'Human Task SOA application' which I am calling from adf application (managed bean --> workflow cllient API --> Human Task SOA Application) and showing task details in cutom UI screens. I do not want to use BPM worklist application as I need my own screens.
thanks. -
Call mutiple tables data in single OData service call
Hi,
We have created a ZBAPI same as standard BAPI "ALM_PM_NOTIFICATION_GETDETAIL" for creating an ODATA service. But we are facing problem while calling the data from multiple tables in a single query/entity while creating that ODATA service using SEGW.
Please guide me how can we do that or is this possible to do that.
Thanks,
Shrikant N.Hello Shrikant,
You mean to say BAPI is returning multiple tables and you have to get all those table data in one call ??
If this is the case you cannot get all the table data from that BAPI in one shot as you can map only 1 table as response table in GW.
Assuming you are passing inputs A & B to your BAPI and it is returning 2 tables in the response,
maintain a Parent entity ( dummy one ) and create association to those tables ( each table as different entity ).
This way you get all the tables data in one go as GW calls your RFC 2 times.
I mean to say you have 2 tables in the BAPI response , GW calls 2 times the same logic to get those 2 tables. i.e., Table 1 in 1st call and Table 2 in 2nd call.
Your URL would be looking like this its just an example :
http://<GW_Host>/sap/opu/odata/sap/<Service_Name>/<Parent>?$filter=A eq 'x' and B eq 'x'&$expand=Table1_Set,Table2_set
where Table1_Set and Table2_Set are your navigation properties which you would have defined.
Also note that here there is a performance trade-off here as GW calls 2 times the same logic and that is how GW calls BE on $expand.
Suggestion is to have separate FM's to get those tables separately so that data retrieval is fasted and there is no overhead.
Regards,
Ashwin -
Hi all,
I want to print an internal table data without displaying it via ALV. That is when clicked on a button, printing should be started.
How can I do that?
Thanks a lot.
Deniz.Hi,
Check the following code this is exactly what you need I guess....
FM to generate spool number for the internal table wt_final_prnt.
CALL FUNCTION 'RSPO_SX_OUTPUT_TEXTDATA'
EXPORTING
name = gv_name
dest = gv_dest
rows = gv_rows
startrow = gv_startrow
pages = gv_pages
rqtitle = 'Z9CS - STD Search Results'
rqcopies = gv_rqcopies
rqowner = gv_rqowner
immediately = gv_immediate
IMPORTING
rqid = gv_rqid
TABLES
text_data = wt_final_prnt
EXCEPTIONS
OTHERS = 1.
CLEAR : wa_final_prnt, wt_final_prnt[].
FM to set the print attributes.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
IMPORTING
out_parameters = wv_pripar
out_archive_parameters = wv_arcpar
valid = wv_val
EXCEPTIONS
archive_info_not_found = 1
invalid_print_params = 2
invalid_archive_params = 3
OTHERS = 4.
FM to submit to the printer
CALL FUNCTION 'RSPO_OUTPUT_SPOOL_REQUEST'
EXPORTING
spool_request_id = gv_rqid.
Regards,
Ram. -
Changing data in called program
Hi Gurus,
I have an exit where I want to change the main program's internal table data dynamically in this exit FM.
In short, I want to change the internal table data in calling program being in called FM.
Can this be done? If so how?
RegdsYou can change the data in a field in a program using field-symbols. The field-symbols acts as a pointer to a defined field. Change the field-symbol value will in turn change the value of the field. You can also assign the value of a field from a different program ( at runtime ) to a field symbol. But I beleive that in this circumstance changing the field-symbol will not change the actual field value.
I had this same problem myself. -
Cmd for exp and importing all the table data's in a specified schema
i need to export table data without exporting the defenition how can i do this
Why do you have such a requirement?
Are you worried about import failures if the object already exists on the database? -
How 2 call BAPI & pass table name so that it will insert table data 2 SAP
Hi guys,
Has anyone tried calling BAPI from BODS; Please share screen shots and details. I want to call BAPI fron BODS which will take table name as a parameter and insert that table data to SAP.HI,
in case you mean BusinessObjects Data Services with BODS then I would suggest you post your question into the EIM area of the SDN forums.
Ingo
Maybe you are looking for
-
I want to re-install Dreamweaver 8 - do I lose all data such as FTP details and site caches if I do so? Thanks Carl
-
When I create an new item and assign it to an item group and also a warehouse, what takes precedence with regards to the G/L account codes? Many Thanks,
-
Hi together, I got another problem. I got a collection of persons. Each person has it's name, adress, ect. saved. Now I got a class Institution, which has one Person, who works in it. When I want to create a new Institution I want to choose the perso
-
After Effects 5.5 installation problem
I'm trying to install the trial for CS5.5 Master Collection, and some products install correctly (like Photoshop), but After Effects gives me an error. My OS is Windows Vista Home Premium, 64 bits. This is the error log that the installation gives me
-
Lumia 920 Software Update problems
I have a Nokia Lumia 920 on Orange in UK. I installed the software update provided by Nokia last weekend - 02/02/2013. Since then I have only experienced issues. Since the update my signal has been intermittant. For every 10 seconds i have signal, I