Internal table value checking in custom table using SQL...
I have a table which has following fields:
X1 TABLE (ZCONfig custom table)
LIFNR land1
123 br
234 br
456 br
567 Gr
and
X2 TABLE: (Internal table)
LIFNR:
234
567
123
Now I want to see if all the field values of LIFNR in internal table X2 (X2-LIFNR) are present in X1 or not.
Raise error if it is not.
How do I do this using SQL ? I guess I have to use read statement.
Please help. Points will be awarded.
Thanks.
Regards
Hi Tushar,
1 Ya u are right , we need to use READ statement.
2. Populate X1 (all records)
in an internal table.
3. Then Loop at X2
and compare with X1.
( u can also keep an extra field in X2
of type c, so that if a record is found,
mark it as X )
4. try this code (just copy paste)
REPORT abc.
DATA : BEGIN OF itab OCCURS 0,
bukrs LIKE t001-bukrs,
present TYPE c,
END OF itab.
DATA : t001 LIKE TABLE OF t001 WITH HEADER LINE.
itab-bukrs = '1000'.
APPEND itab.
itab-bukrs = 'X000'.
APPEND itab.
SELECT * FROM t001 INTO TABLE t001.
LOOP AT itab.
READ TABLE t001 with key bukrs = itab-bukrs.
IF sy-subrc = 0.
itab-present = 'X'.
MODIFY itab.
ENDIF.
ENDLOOP.
BREAK-POINT.
regards,
amit m.
Message was edited by: Amit Mittal
Similar Messages
-
Add Table maintenance program for custom table to an existing func group
Hi Guys,
Can I add Table maintenance program for custom table to an existing function group or I need to create a new
function group for each custom table.
Thanks,
miniYou can add to an existing function group, there's nothing technically to stop you doing this. However, consider that this is creating generated function modules in this function group and you would be wise to avoid using a function group containing manually created modules.
I personally always create a new function group, using the name of the table as the name of the function group.
Regards,
Nick -
Table entries deleted in Customized table.
Respected Guru's
table entries in a customized table were deleted in production system, no transports pertaining it was found.
Table entries were updated using bapi.
Please help me to know how the table entries were deleted.
Daya.
Edited by: Dayananadan Anandan on Nov 12, 2009 11:35 AMHi Johnson,
you might have to restore the DB Backup for the table to gt back the data....
Furthermore, if you want to track how the entried were deleted then there are 2 ways to go about it:
If the Deletion of the records was through an application (FM,Program call) then there should be Chande Documents available for them and you can search them by hitting tables CDHDR and CDPOS...
If the Deletion of the records was done physically the you can try looking into the tables UASE16N_CD_KEY and UASE16N_CD_DATA (deletion from transaction UASE16N) or tables SE16N_CD_KEY and SE16N_CD_DATA(Deletion from SE16). This will give change pointer documents if the records were deleted using these transactions...
Another option might be that somebody has used the Database utility and selected the option Delete Data. In this case you can have a look at the object log....
Hope this helps....
Regards,
Sitakant. -
Problem occured when create a tree table for master-detail view objects using SQL queries?
I am programming a tree table for master-detail view objects using SQL queries and these 2 view objects are not simple singel tables queries, and 2 complex SQL are prepared for master and view objects. see below:
1. Master View object (key attribute is SourceBlock and some varaible bindings are used for this view object.)
SELECT cntr_list.SOURCE_BLOCK,
sum(
case when cntr_list.cntr_size_q = '20'
then cntr_list.cntr_qty
else 0 end ) as cntr20 ,
sum(
case when cntr_list.cntr_size_q = '40'
then cntr_list.cntr_qty
else 0 end ) as cntr40 ,
sum(
case when cntr_list.cntr_size_q = '45'
then cntr_list.cntr_qty
else 0 end ) as cntr45
FROM (
SELECT yb1.BLOCK_M as SOURCE_BLOCK,
scn.CNTR_SIZE_Q,
count(scn.CNTR_SIZE_Q) AS cntr_qty
FROM SHIFT_CMR scm, SHIFT_CNTR scn, YARD_BLOCK yb1, YARD_BLOCK yb2
WHERE
scm.cmr_n = scn.cmr_n
AND (scm.plan_start_dt BETWEEN to_date(:DateFrom,'YYYY/MM/DD HH24:MI:SS') AND to_date(:DateTo,'YYYY/MM/DD HH24:MI:SS')
OR scm.plan_end_dt BETWEEN to_date(:DateFrom,'YYYY/MM/DD HH24:MI:SS') AND to_date(:DateTo,'YYYY/MM/DD HH24:MI:SS'))
AND scm.shift_mode_c = :ShiftModeCode
AND scm.end_terminal_c = :TerminalCode
AND scm.start_terminal_c = yb1.terminal_c
AND scm.start_block_n = yb1.block_n
AND substr(scn.start_location_c,(instr(scn.start_location_c,',',1,5)+1),instr(scn.start_location_c,',',1,6)-(instr(scn.start_location_c,',',1,5)+1)) BETWEEN yb1.slot_from_n AND yb1.slot_to_n
AND scm.end_terminal_c = yb2.terminal_c
AND scm.end_block_n = yb2.block_n
AND substr(scn.end_location_c,(instr(scn.end_location_c,',',1,5)+1),instr(scn.end_location_c,',',1,6)-(instr(scn.end_location_c,',',1,5)+1)) BETWEEN yb2.slot_from_n AND yb2.slot_to_n
AND scn.status_c not in (1, 11)
AND scn.shift_type_c = 'V'
AND scn.source_c = 'S'
GROUP BY yb1.BLOCK_M, scn.CNTR_SIZE_Q
) cntr_list
GROUP BY cntr_list.SOURCE_BLOCK
2. Detail View object (key attributes are SourceBlock and EndBlock and same varaible bindings are used for this view object.)
SELECT cntr_list.SOURCE_BLOCK, cntr_list.END_BLOCK,
sum(
case when cntr_list.cntr_size_q = '20'
then cntr_list.cntr_qty
else 0 end ) as cntr20 ,
sum(
case when cntr_list.cntr_size_q = '40'
then cntr_list.cntr_qty
else 0 end ) as cntr40 ,
sum(
case when cntr_list.cntr_size_q = '45'
then cntr_list.cntr_qty
else 0 end ) as cntr45
FROM (
SELECT yb1.BLOCK_M as SOURCE_BLOCK,
yb2.BLOCK_M as END_BLOCK,
scn.CNTR_SIZE_Q,
count(scn.CNTR_SIZE_Q) AS cntr_qty
FROM SHIFT_CMR scm, SHIFT_CNTR scn, YARD_BLOCK yb1, YARD_BLOCK yb2
WHERE
scm.cmr_n = scn.cmr_n
AND (scm.plan_start_dt BETWEEN to_date(:DateFrom,'YYYY/MM/DD HH24:MI:SS') AND to_date(:DateTo,'YYYY/MM/DD HH24:MI:SS')
OR scm.plan_end_dt BETWEEN to_date(:DateFrom,'YYYY/MM/DD HH24:MI:SS') AND to_date(:DateTo,'YYYY/MM/DD HH24:MI:SS'))
AND scm.shift_mode_c = :ShiftModeCode
AND scm.end_terminal_c = :TerminalCode
AND scm.start_terminal_c = yb1.terminal_c
AND scm.start_block_n = yb1.block_n
AND substr(scn.start_location_c,(instr(scn.start_location_c,',',1,5)+1),instr(scn.start_location_c,',',1,6)-(instr(scn.start_location_c,',',1,5)+1)) BETWEEN yb1.slot_from_n AND yb1.slot_to_n
AND scm.end_terminal_c = yb2.terminal_c
AND scm.end_block_n = yb2.block_n
AND substr(scn.end_location_c,(instr(scn.end_location_c,',',1,5)+1),instr(scn.end_location_c,',',1,6)-(instr(scn.end_location_c,',',1,5)+1)) BETWEEN yb2.slot_from_n AND yb2.slot_to_n
AND scn.status_c not in (1, 11)
AND scn.shift_type_c = 'V'
AND scn.source_c = 'S'
GROUP BY yb1.BLOCK_M, yb2.BLOCK_M, scn.CNTR_SIZE_Q
) cntr_list
GROUP BY cntr_list.SOURCE_BLOCK, cntr_list.END_BLOCK
3. I create a view link to create master-detail relationship for these 2 view objects.
masterview.SourceBlock (1)->detailview.SourceBlock (*).
4. I create a tree table using these 2 view objects with master-detail relationship.
When I set default value for variable bindings of these 2 view objects and the matching records exist, tree table can work well. I can expand the master row to display detail row in UI.
But I need to pass in dymamic parameter value for variable bindings of these 2 view objects, tree table cannnot work again. when I expand the master row and no detail row are displayed in UI.
I am sure that I pass in correct parameter value for master/detail view objects and matching records exist.
Managed Bean:
DCIteratorBinding dc = (DCIteratorBinding)evaluteEL("#{bindings.MasterView1Iterator}");
ViewObject vo = dc.getViewObject();
System.out.println("Before MasterView1Iterator vo.getEstimatedRowCount()="+ vo.getEstimatedRowCount());
System.out.println("Before MasterView1Iterator ShiftModeCode="+ vo.ensureVariableManager().getVariableValue("ShiftModeCode"));
vo.ensureVariableManager().setVariableValue("DateFrom", dateFrom);
vo.ensureVariableManager().setVariableValue("DateTo", dateTo);
vo.ensureVariableManager().setVariableValue("ShiftModeCode", shiftModeC);
vo.ensureVariableManager().setVariableValue("TerminalCode", terminalCode);
vo.executeQuery();
System.out.println("MasterView1Iterator vo.getEstimatedRowCount()="+ vo.getEstimatedRowCount());
DCIteratorBinding dc1 = (DCIteratorBinding)evaluteEL("#{bindings.DetailView1Iterator}");
ViewObject vo1 = dc1.getViewObject();
System.out.println("Before DetailView1Iterator vo1.getEstimatedRowCount()="+ vo1.getEstimatedRowCount());
System.out.println("Before DetailView1Iterator ShiftModeCode="+ vo1.ensureVariableManager().getVariableValue("ShiftModeCode"));
vo1.ensureVariableManager().setVariableValue("DateFrom", dateFrom);
vo1.ensureVariableManager().setVariableValue("DateTo", dateTo);
vo1.ensureVariableManager().setVariableValue("ShiftModeCode", shiftModeC);
vo1.ensureVariableManager().setVariableValue("TerminalCode", terminalCode);
vo1.executeQuery();
System.out.println("after DetailView1Iterator vo1.getEstimatedRowCount()="+ vo1.getEstimatedRowCount());
5. What's wrong in my implementation? I don't have no problem to implement such a tree table if using simple master-detail tables view object, but now I have to use such 2 view objects using complex SQL for my requirement and variable bindings are necessary for detail view object although I also think a bit strange by myself.Hi Frank,
Thank you and it can work.
public void setLowHighSalaryRangeForDetailEmployeesAccessorViewObject(Number lowSalary,
Number highSalary) {
Row r = getCurrentRow();
if (r != null) {
RowSet rs = (RowSet)r.getAttribute("EmpView");
if (rs != null) {
ViewObject accessorVO = rs.getViewObject();
accessorVO.setNamedWhereClauseParam("LowSalary", lowSalary);
accessorVO.setNamedWhereClauseParam("HighSalary", highSalary);
executeQuery();
but I have a quesiton in this way. in code snippet, it is first getting current row of current master VO to determine if update variables value of detail VO. in my case, current row is possibly null after executeQuery() of master VO and I have to change current row manually like below.
any idea?
DCIteratorBinding dc = (DCIteratorBinding)ADFUtil.evaluateEL("#{bindings.SSForecastSourceBlockView1Iterator}");
ViewObject vo = dc.getViewObject();
vo.ensureVariableManager().setVariableValue("DateFrom", dateFrom);
vo.ensureVariableManager().setVariableValue("DateTo", dateTo);
vo.ensureVariableManager().setVariableValue("ShiftModeCode", shiftModeC);
vo.ensureVariableManager().setVariableValue("TerminalCode", terminalCode);
vo.executeQuery();
vo.setCurrentRowAtRangeIndex(0);
((SSForecastSourceBlockViewImpl)vo).synchornizeAccessorVOVariableValues(); -
How to fetch the Table Control data to Customer Table(Z-Table) ?
How to fetch the Table Control data to Customer Table(Z-Table) ?
Hi Krishna,
Check this sample programs
http://www.planetsap.com/online_pgm_main_page.htm
http://sap.niraj.tripod.com/id29.html
http://www.sapdevelopment.co.uk/dialog/tabcontrol/tc_basic.htm
Have a look at below links. It will help you.
http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbac5135c111d1829f0000e829fbfe/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbac1d35c111d1829f0000e829fbfe/content.htm
Thanks,
Reward If helpful. -
How to show the VALUE as the Column Header using SQL query?
Hi
I have a requirement to show the picked value as the column header using SQL query.
Example:
======
SELECT EMPNO FROM EMP
WHERE EMPNO=7934;
Result Should be:
7934
7934I have a requirement to show the picked value as the column header using SQL query.In sql*plus you can do
SQL> set verify on
SQL> def e = 7934
old: SELECT empno "&&e" FROM emp WHERE empno = &&e
new: SELECT empno "7934" FROM emp WHERE empno = 7934
SQL> SELECT empno "7934" FROM emp WHERE empno = 7934
7934
7934
1 row selected. -
Use of initial values check box in tables
Hi,
what is of use of initial values check box(after the primary key check box) in tables.
Regards,
SureshThe flag indicates whether field inserted in the database is to be filled with initial values. The initial value used depends on the data type of the field. I.e. type n(2) is '00'.
When you create a table, all fields of the table can be defined as NOT NULL and filled with an initial value. The same applies when converting the table. Only when new fields are added or inserted, are these filled with initial values. An exception is key fields. These are always filled automatically with initial values. -
Execute process chain step based on value in a custom table
HI,
I have a requirement where i need to execute a process chain step based in the value of a field in a custom table.
e.g. If ztable-zflag = 'X' then execute next step else stop.
I am trying to use the decision between multiple alternatives process type, but i guess we can only use formulas in it.
Also, i created a custom method and called it through the badi RSAR_CONNECTOR, but the same isnt working as expected.
Would appreciate inputs from the experts.Hi,
Thank you for your response.
I followed exactly what is written in the document. But when I execute the process chain with the Decision between Multiple Alternatives process type, it fails with an exception message.
Below is what I have done:
Below is the code that I entered in the method (Please note that ZPC_CONTROL is the table from which I need to check the value. This table contains 2 fields: Process Chain Name and Flag. My requirement is that when a particular process chain has the flag checked, then the process chain should move ahead):
Below is the GET method:
Finally, here is the formula that I have written in the Decision Between Multiple Alternatives process type:
And the event is Option 2 (which I assume will move the process chain forward if the flag is checked for the process chain ‘TEMP_TEST’)
Please note that the flag for process chain ‘TEMP_TEST’ is checked in the table ZPC_CONTROL.
Below is the error in the process chain:
Please let me know where am I going wrong here. Appreciate your help. -
Restrict Blank value in a custom table field.
Hi All,
I have a custom table with some fields with check table search help. One of the field I want to make it value required field. For example Field u2018Cu2019 should have value (no blanks or Spaces). Field u2018Cu2019 has a check table search help and master data table does not have any blank value. Field u2018Cu2019 is not a key field. Suggestions in this is highly appreciated.
Ram.Hi Ram,
You can create a Table Maintenance Generator for you custom table and you can use to TMG events to put a check the the field 'C' should not be initial.
Refer to the link for TMG events
http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=93454609
Regards,
GP -
How to enter a floating value in a custom table.
hello guys,
I have created a custom table, the table has a field of type fltp(floating type) now when i create a maintanence genrator, this field is not displayed in the maintenance generator screen.
Can any one suggest me what is the reason ? also how to enter the values in this scenario.
Regards
AbhinavWhen I Recreated your problem i got this message.
Field ZTEST_FGLG-QTY can not be displayed on screen 0001
Message no. SV617
Diagnosis
The field ZTEST_FGLG-QTY can not be offered for maintenance on the
screen 0001, for technical reasons.
System Response
The generation continues, but the field ZTEST_FGLG-QTY does not appear
on the screen 0001.
From the message it is clear that it is not possible to show the field on screen.
so you have to use either some Decimal Field or Qty field instead of FLTP field. -
How set the values programatically in custom tables ?
Hi Guru's,
Please help me where i did mistake....
My scenario is i have 4 columns that 4 columns are look up based on row i need save the "XX_hr_Vacancies_CompTab"
4 columns look like....
column1(15 questions ) column2(message choice) column3(message choice) column4(free text)
(1-15)question manually select (1-10) manually select (1-10) comments
this vo purpose i am using this query
SELECT ROWNUM,
xhv.VACANCY_ID
, xhv.RFP_NO
, hl.lookup_code
, hl.meaning
, XJCT.BUHR_RATING
, XJCT.COMBEN_RATING
, XJCT.RATIONALE
FROM hr_lookups hl ,
xx_hr_vacancies xhv,
XX_JOBEVAL_COMP_TAB XJCT
WHERE lookup_type = 'XX_JE_QUESTIONAIRE'
AND xhv.RFP_NO = 'IRC616'
AND XJCT.VACANCY_ID(+) = XHV.VACANCY_ID
ORDER BY ROWNUM
I am using sample code is for one column inserting.....please help where i am doing mistake.
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
super.processRequest(pageContext, webBean);
OAApplicationModule am = pageContext.getApplicationModule(webBean);
am.invokeMethod("createjobVacancy1");
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
super.processFormRequest(pageContext, webBean);
if (pageContext.getParameter("Save") != null)
OAApplicationModule am = pageContext.getApplicationModule(webBean);
OAViewObject vacncyVO = (OAViewObject)am.findViewObject("XXTableLookupVO1");
int fetchedrowcount = vacncyVO.getRowCount();
RowSetIterator multiIter;
multiIter = vacncyVO.createRowSetIterator("VacancyId");//Attribite of the select box
multiIter.setRangeStart(0);
multiIter.setRangeSize(fetchedrowcount);
System.out.println("no before for loop condition rows"+fetchedrowcount);
for(int i=0;i<fetchedrowcount;i++)
am.invokeMethod("createjobVacancy1");
OAViewObject vacncyVO1 =
(OAViewObject)am.findViewObject("XX_hr_Vacancies_CompTab_EOVO1");
Object vacancy = vacncyVO.getRowAtRangeIndex(i).getAttribute("VacancyId"); */*63 Line code is this one*/*
System.out.println("vacancy number is in table region current row is "+vacancy);
System.out.println("no or rows"+fetchedrowcount);
if(vacancy != null && !"".equals("vacancy"))
vacncyVO1.getCurrentRow().setAttribute("VacancyId",vacancy);
System.out.println("set create vacancy number is in table region current row is "+vacancy);
}else{
vacncyVO1.getCurrentRow().setAttribute("VacancyId",null);
am.invokeMethod("apply1");
System.out.println("out of for loop :"+fetchedrowcount);
Sop:
13/01/10 06:55:28 no before for loop condition rows15
13/01/10 06:55:29 Header is =725
13/01/10 06:55:30 vacancy number is in table region current row is 616
13/01/10 06:55:30 no or rows15
13/01/10 06:55:30 set create vacancy number is in table region current row is 616
13/01/10 06:55:30 Header is =726
Error:
## Detail 0 ##
java.lang.NullPointerException
at xxsup.oracle.apps.per.jobevaluation.webui.MainCO.processFormRequest(MainCO.java:63)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(Unknown Source)
Regards,
SrinivasThanks Keerthi,
i am getting values but i unable to set the values, once i am setting values i am facing null pointer exception ..
java.lang.NullPointerException
at xxsup.oracle.apps.per.jobevaluation.webui.MainCO.processFormRequest(MainCO.java:86)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(Unknown Source)
i am using below coding in PFR
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
super.processFormRequest(pageContext, webBean);
if (pageContext.getParameter("Save") != null)
OAApplicationModule am = pageContext.getApplicationModule(webBean);
OAViewObject oaviewobject =(OAViewObject)am.findViewObject("XXTableLookupVO1");
if(oaviewobject!=null)
pageContext.writeDiagnostics(this,"View Object is exists",OAFwkConstants.STATEMENT);
int rowcountValue = oaviewobject.getRowCount();
pageContext.writeDiagnostics(this,"Row returned by the View Object"+rowcountValue,OAFwkConstants.STATEMENT);
System.out.println("before for loop geting values = "+rowcountValue);
Row rowAdv= oaviewobject.first();
RowSetIterator iterator = oaviewobject.createRowSetIterator("iterator");
iterator.setRangeStart(0);
iterator.setRangeSize(oaviewobject.getRowCount());
for(int i=0; i<iterator.getRowCount(); i++)
pageContext.writeDiagnostics(this,"Inside For loop ",OAFwkConstants.STATEMENT);
rowAdv =iterator.getRowAtRangeIndex(i);
if(rowAdv != null)
pageContext.writeDiagnostics(this,"flag not null",OAFwkConstants.STATEMENT);
pageContext.writeDiagnostics(this,"Flag Value Checked as Y",OAFwkConstants.STATEMENT);
OAViewObject vacncyVO1 =
(OAViewObject)am.findViewObject("XX_hr_Vacancies_CompTab_EOVO1");
if(rowAdv.getAttribute("VacancyId")!=null)
Object vacancyname = rowAdv.getAttribute("VacancyId").toString();
vacncyVO1.getCurrentRow().setAttribute("VacancyId",vacancyname); This is the 86 line
System.out.println("Vacancy ID IS = "+vacancyname);
System.out.println("Vacancy ID IS = "+rowAdv);
am.invokeMethod("apply1");
// System.out.println("out of for loop :"+iterator);
please help me where i am doing mistake...
Regards,
Srinivas -
Fetch table value in BEX Web report using Javascripts, and assign condition
Hi Gurus,
I am currently using WAD 3.5. I need to change the web report to behave like below :-
1. Default layout (Field A B C) with condition A & B activated.
2. If the drilldown Field B and C is removed, leaving only field B alone in the report drilldown, deactivate condition A & B, Activate condition C & D.
3. the above can be reversed where user drilldown field B & C into the layout, the condition A & B need to then be activated back.
So I believe this can be done using Javascript. So my questions are below
1.) How do i fetch table value for the navigationblock ? with navigationblock i am able to know what are the columns are in the drilldown (i will not display free characteristics, so ignore this part). how do i read the content of NAVIGATIONBLOCK_1 as shown in following code? using javascript.
<P><object>
<param name="OWNER" value="SAP_BW"/>
<param name="CMD" value="GET_ITEM"/>
<param name="NAME" value="NAVIGATIONBLOCK_1"/>
<param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_NAV_BLOCK"/>
<param name="DATA_PROVIDER" value="DATAPROVIDER_1"/>
<param name="SHOW_FREE_CHARACTERISTICS" value=""/>
<param name="SHOW_NAVIGATION_ICONS" value=""/>
<param name="SHOW_FILTER_ICONS" value=""/>
ITEM: NAVIGATIONBLOCK_1
</object></P>
2.) After question 1.) is done, please advice how do i activate/deactivate the conditions? based on the fields found in above. Maybe I can use IF navigationblock_1 contain field A only, then set condition A & B , etc.
<p><object>
<param name="OWNER" value="SAP_BW"/>
<param name="CMD" value="GET_ITEM"/>
<param name="NAME" value="CONDITIONLIST_1"/>
<param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_CONDITION"/>
<param name="DATA_PROVIDER" value="DATAPROVIDER_1"/>
ITEM: CONDITIONLIST_1
</object>
I would appreciate if we can solve Question 1 first before proceed to 2.)
Please advise. ThanksHi JTi,
what i have understood from your requirement is that you want to access the web item table_1 in javascript, you can get that as below:
Add
<span>
tag before your web item and set its id to table.
<span id = "table">
<param name="OWNER" value="SAP_BW"/>
<param name="CMD" value="GET_ITEM"/>
<param name="NAME" value="TABLE_1"/>
<param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_GRID"/>
<param name="DATA_PROVIDER" value="DATAPROVIDER_1"/>
<param name="GENERATE_CAPTION" value=""/>
<param name="CAPTION" value="jezel"/>
<param name="ONLY_HIERARCHY_NAVIGATION" value="X"/>
<param name="BLOCK_SIZE" value="0"/>
<param name="SHOW_PAGING_AREA_BOTTOM" value=""/>
ITEM: TABLE_1
</span>
In javascript access it as :
var mytable = document.getElementsById("table");
Hope this helps
Thanks
Dipika -
Variable multiple single value filled with customer exit used in FOX form.
Hi guys, I definitly need your help in the following scenario:
I have variable (multiple single value) filled in a customer exit and use it in web template. There it is used in the drop down box for selecting a special date in the analysis item. And there comes the first question:Why the results from the customer exit are written in the way "date1; date2; date3" in one line? They should appear line by line in rows. How can I influence that? I tried both data binding types, "variable" and "characteristic".
Now a button raises a planning function with a fox formula which should write the selected date (from the drop down box) in a customer table using "call function".
I always get the error, that I need to restrict the variable to "single value". Why do I have to do that and if necessary how can I do that? Other planning functions without the fox formula also work properly with using the selection from the drop down box.
I appreciate you help.
Kind regards, Anja.Hi Vamsi.,
Try this code.
WHEN 'PREVIOUS_YEAR_1'.
IF I_STEP = 2. "after the popup of user entry
LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
WHERE VNAM = 'ZCURRENT_YEAR_PERIOD'.
break-point.
IF SY-SUBRC EQ 0.
WA_YEAR = LOC_VAR_RANGE-LOW+0(4). "Year
WA_MONTH = LOC_VAR_RANGE-LOW+5(3). "Period
WA_YEAR = WA_YEAR - 1.
CONCATENATE WA_YEAR wa_month INTO WA_FISC_PERD .
CONCATENATE WA_YEAR WA_MONTH1 INTO L_S_RANGE-HIGH .
L_S_RANGE-SIGN = 'I'.
L_S_RANGE-OPT = 'EQ'.
APPEND L_S_RANGE TO E_T_RANGE.
ENDIF.
L_S_RANGE-SIGN = 'I'.
L_S_RANGE-OPT = 'BT'.
APPEND L_S_RANGE TO E_T_RANGE.
ENDIF.
ENDIF.
ENDLOOP.
endif.
Assing points if it helps you.
-- Selva -
How to find the Table from which a Custom table is created.
Hi Gurus,
I have a custom table in SAP and want to figure how that has been created. How can I do that?
Regards
PrashantHello Prashant,
what do you mean by "how"?
When you say custom table do you mean "Customization table" or a "Customer table" (in namespace Z... or Y...)
Anyway, you can access SE11 transaction, view the table and then check its attributes. -
Table Values in Export/Import/Tables RFC calls
Hi
I know that using Adaptive RFC, the best practice is to use the Tables section of the function rather than the import/export.
However, in ECC6.0, when creating entries in the Tables section of the FM it tells me that this section is obsolete.
Should I start to use the export/import parameters instead?
Cheers
IanHi Ashu
Thanks for the reply but there is no code snippet. It is a 'best practice' question.
The document <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/11c3b051-0401-0010-fe9a-9eabd9c216de">Effective Web Dynpro - Adaptive RFC</a> details that table values should not be passed in the exporting/importing parameters of the R/3 RFC enabled function module. THey should always be added to the Tables section.
However, in ECC6.0, when adding entries into the Tables section of an R/3 function module, it says that this practice is obsolete.
Therefore, what is the current best practice for Adaptive RFC??
Cheers
Ian
Maybe you are looking for
-
Scrolling Mobile List in Pure AS3?
I'd like to use a scrolling list in one of my AS3 mobile projects. I like the one built for Flex, but I do not wish to use flex as that would be overkill and I already have the project written in AS3. Does anyone know of any pure AS3 scrolling list c
-
Smartform duplex printing in SPOOL
We set the print mode to "D" in the form, and it prints correctly back-to-back online. But if we send the output to spool, the printing is NOT back to back. Any other special setting we need to make for spools? Thanks in adv.
-
I was checking my bios settings because it was eroneously reporting my processor as an xp1800, while doing this had adjusted the cpu fsb clock setting to 166mhz to see if it changed the reading in the bios instantly or not and upon exit I exited and
-
Hi, I need to find the given PDF document has any missing fonts or it is damaged one from my acrobat plugin application. Which functions should I need to use to get this information in Acroabt SDK. Please help me.. Thanks & Regards, Rehana
-
DATE FORMAT IN ORALCE 7.3
How can i save date in dd/mm/yyyy format. I have tried using region setting in Windows environment. It just change the display format, but when you check through SQL plus the date is in mm/dd/yy format. null