WB_RT_GET_JOB_METRICS does not return values
DB v 10.2.0.2
OWB repository/client v 10.2.0.3
A DB function has a call to the Control Center transformation WB_RT_GET_JOB_METRICS to extract and preserve the metadata of number of records inserted/updated/deleted in a DB table.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1.
The control center transformation WB_RT_GET_JOB_METRICS does not return any values when used under the Post-Mapping Process(mapped to the DB function describe above) in a Map.
The input parameter ;Audit Id' to the Map is passed from a calling Process Flow. The following query is used to retrieve the Audit Id of the Map.,
SELECT execution_audit_id
INTO l_audit_id
FROM ALL_RT_AUDIT_EXECUTIONS
WHERE parent_execution_audit_id = P_AUDIT_ID;
And the retrieve l_audit_id is passed to the WB_RT_GET_JOB_METRICS transformation to extract the number of records inserted/deleted/updated with the execution of the map.
Gurus, please advice if the approach is appropriate to retrieve the number of records inserted/deleted/updated by the execution of the map. If not, any alternate method.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2. The control center transformation WB_RT_GET_JOB_METRICS returns values when used in a standalone pl/sql block with the appropriate audit_id.
Is this because the metadata for the Map execution is complete, whereas in the earlier attempt, the transformation is called within the map using the Post-Mapping process.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3. Since the option 1 did not return any value, tried other option of calling/executing a transformation(call the the DB function mentioned earlier) after the Map activity is successful in a ProcessFlow. Here, the transformation does not seem to be executing, any tips of correcting this issue.
Request the forum for some helpful tips to resolve the problem. TiA (Thanks in Advance) for the response.
Message was edited by:
user599655
In a process flow, passed the pseudo variable to a transformation to run the WB_RT_GET_JOB_METRICS after the map execution. I am not sure if this is the best solution, but it worked for me.
Still trying to figure how to use the pre-defined transformation when working on expression.
Thanks.
Similar Messages
-
[Solved] ADF - Update does not return values generated by a trigger
Hello,
I'm using JDev 10.1.3.3.0 and DB 10.2.0.3.0.
On DB I've created a table, a sequence and a trigger:
CREATE TABLE TAB1
ID NUMBER PRIMARY KEY,
EDITED_AT DATE,
VALUE VARCHAR2(64)
CREATE SEQUENCE S_TAB1
INCREMENT BY 1
START WITH 1;
CREATE TRIGGER T_TAB1_BIE
BEFORE INSERT OR UPDATE ON TAB1
FOR EACH ROW
BEGIN
IF INSERTING THEN
SELECT S_TAB1.NEXTVAL INTO :NEW.ID FROM DUAL;
END IF;
:NEW.EDITED_AT := SYSDATE;
END;
/In JDev I've created an EO - Tab1, a VO - Tab1View and an AppModule.
In the EO Tab1 I have checked "Refresh After Insert" and "Refresh After Update" for Id and Edited_By attributes. I made the latter two attribures as "Never" updatable.
Then I test the AppModule with a JDev Tester (I use a connection which connects as an owner of the 3 objects above).
Then I insert a new row and enter a value into the Value field in the Tester. When I press Commit button everything works great - Id and Edited_By attributes get populated with values generated by the trigger.
But when I try to update the Value field and press Commit the Edited_By field does not retreives new value that was generated by the trigger.
Why does this happens?
Many thanks in advance.
Yerzhan.Frank,
I tried to set Refresh option on both, Value and Edited_At, fields but unsuccessfully.
Then I tried to do the following in SQL Plus:
SQL> insert into tab1(value) values('ddd');
1 row created.
SQL> commit;
Commit complete.
SQL>
SQL> select * from tab1;
ID EDITED_AT VALUE
1 27.03.2008 17:01:24 ddd
SQL>
SQL> declare dt date; val varchar2(64);
2 begin update tab1 set value = 'ddd' where id = 1 returning edited_at, value into dt, val;
3 dbms_output.put_line('txt = ' || dt || ', ' || val);
4 end;
5 /
txt = 27.03.2008 17:01:24, ddd
PL/SQL procedure successfully completed.
SQL>
SQL> select * from tab1;
ID EDITED_AT VALUE
1 27.03.2008 17:02:12 ddd
SQL>As it can be seen Returning clause of an Update statement does not return a new date, i.e. 27.03.2008 17:02:12, that was updated by the trigger, it returns an old one - 27.03.2008 17:01:24.
Frank, maybe the issue is in the Oracle DB? -
LOV does not return value to the base page sometimes
Hi,
I have created messageLOV type items. These LOVs do return value to the base page usually. We have a user in Uruguay who is trying to use the page which has the LOVs. He says the LOV takes a long time to return to the main page after he clicks on quick select and also the value does not get populated in the main page.
We have not been facing any such problem here in India. The LOV has been tested rigorously with no issues as such.
Can you please suggest a reason why such a problem is occuring? Expecting your replies soon
Thanks,
PriyaThiyaga, did you read the devguide or the tutorial ?
Can you please give me the inputs about the creation of LOV and it requires how many lov mappings as mandatory?
This is there in the devguideHow to identify the mapping fields of an LOV which is already existing in the base page to reproduce in a similar way and need to do a customization on top of it ?
Open the page XML and you can find the LOV mappings.Tapash -
R12: Supplier Banking Details - LOV does not return value
Hi!
I am having a problem when selecting a Bank for a supplier.
I click on the icon to open the LOV and search for the bank i want to add for a particular supplier.
When i click on the select button, the value of the bank name does not appear in the text box.
In another environment it works perfectly.
Please help..
VikHi Vik,
In R12, while defining the bank and bank accounts, there is a section called ACCOUNT OWNER and USE, where we specify that this bank can be used for which application for e.g. Payables, Payroll, Recievables and Treasury,
Can you please check that the above bank account is enabled for use by Payables application.
I am thinking that might be one of the cause , why the bank name is not available at the supplier level..
Thanks
Manish Jain. -
Command_link generated by JSTL does not return value attribute
Since data_table CANNOT RENDER DATA IN SINGLE ROW, MULTIPLE COLUMNS, I am using the following to show the data as links in single row, multiple columns
<TABLE><TR><TD>
<c:forEach var="item" items="${MyBean.Filters}">
<c:set var="myLink" value="${item}" scope="request"/>
<h:command_link value="#{myLink}" actionListener="#{MyBean.LinkSelected}">
<h:output_text value="#{myLink}"/>
</h:command_link>
</c:forEach>
</TD></TR></TABLE>
The above JSTL shows up the links fine in a single row. But when a link is selected and the actionlistener is called, I see that the value parameter is null. Is this because the command_link is in a TABLE (i think I read somewhere that this is a known bug... )
I do
value = (String)((UICommand) event.getSource()).getValue();
to get the value...
I tried several ways.. all I need is a way to distinguish the links and know which link has been selected.
Any suggestions please....The value is null when the ActionEvent listener fires, because the myLink variable is only available during processing of the JSP page as part of the Render Response phase, not in the request triggered by clicking on the generated link.
There's simply no way to get this to work using JSTL's <c:forEach> action, and it's not because we didn't try. A custom renderer for the UIData component that renders a single component as a table with one row with multiple columns (or whatever you need) is the only solution I can think of.
Hans Bergsten (EG member) -
UDF does not return value even though its underlying query does.
I have a User Defined Function which is supposed to return a scalar varchar(50) value. This is what I did:
ALTER FUNCTION [dbo].[zt_prc_fnNSNsFmNIIN_Get]
@NIIN varchar(5),
@PN varchar(20)
RETURNS Varchar(50)
AS
BEGIN
-- Declare the return variable here
Declare @NSN varchar(50)
Set @NSN = (SELECT Convert(varchar(20), RTRIM(NSN.FSC)) + Convert(varchar(20), RTrim(NSN.NIIN)) NSN
FROM TechManual.dbo.ANSNS NSN
JOIN TechManual.dbo.AITEMTABLE AIT ON NSN.PRIMARYPARTNUMBER = AIT.PRIMARYPARTNUMBER and NSN.DODIC = AIT.DODIC
JOIN TechManual.dbo.PARTNUMBERS PN ON AIT.PRIMARYPARTNUMBER = PN.PRIMARYPARTNUMBER
WHERE NSN.NIIN = @NIIN AND PN.PARTNUMBER = @PN)
RETURN @NSN
END
However I keep getting a Null as the return. So I ran a test to call the function and run the the underlying query like this:
Select dbo.zt_prc_fnNSNsFmNIIN_Get('015132378', '850AS911')
Declare @NSN varchar(50)
Set @NSN = (SELECT Convert(varchar(20), RTRIM(NSN.FSC)) + Convert(varchar(20), RTrim(NSN.NIIN)) NSN
FROM TechManual.dbo.ANSNS NSN
JOIN TechManual.dbo.AITEMTABLE AIT ON NSN.PRIMARYPARTNUMBER = AIT.PRIMARYPARTNUMBER and NSN.DODIC = AIT.DODIC
JOIN TechManual.dbo.PARTNUMBERS PN ON AIT.PRIMARYPARTNUMBER = PN.PRIMARYPARTNUMBER
WHERE NSN.NIIN = '015132378' AND PN.PARTNUMBER = '850AS911')
Select @NSN
As you can see the Select statement is exactly what is entered in the UDF. However the call to the UDF yields
null
and the call to select the variable populated by the query yields "1377015132378".
Everyone here has taken a look at the UDF and are unable to see anything which might be an issue.
Edward R. Joell MCSD MCDBACheck:
CREATE FUNCTION [dbo].[zt_prc_fnNSNsFmNIIN_Get]
@NIIN varchar(50),
@PN varchar(50)
RETURNS Varchar(50)
AS
BEGIN
-- Declare the return variable here
Declare @NSN varchar(50)
Set @NSN = (SELECT name FROM Production.Product where ProductNumber=@NIIN and Color = @PN)
RETURN @NSN
END
GO
-- SELECT * FROM Production.Product;
SELECT [dbo].[zt_prc_fnNSNsFmNIIN_Get] ('RD-2308', 'Silver');
-- Rear Derailleur
Kalman Toth Database & OLAP Architect
SQL Server 2014 Design & Programming
New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012 -
Function does not return a value
CREATE OR REPLACE PACKAGE BODY Promo_Version_Logo_Pkg IS
FUNCTION Promo_Version_Logo_Rule(Rc IN test.Ot_Rule_Context)
RETURN Ot_Rule_Activation_Result
IS
PRAGMA AUTONOMOUS_TRANSACTION;
v_Result NUMBER;
CURSOR Cur_Promo_Logos IS
SELECT Pvlo.Promo_Id,
Evt.On_Date,
Evt.Channel_Id,
Evt.Start_Time,
Evt.Duration,
Pvlo.Logo_Id
FROM Event Evt,
Event_Technical_Data Etd,
Promo_Version_Logo_Opt Pvlo,
Promo_Timing Pt
WHERE Evt.Event_Technical_Data_Id = Etd.Event_Technical_Data_Id
AND Etd.Promo_Timing_Id = Pt.Promo_Timing_Id
AND Pt.Promo_Timing_Id = Pvlo.Promo_Timing_Id
AND Evt.Channel_Id = Rc.Channelid
AND Evt.On_Date >= Rc.Fromdate
AND Evt.On_Date <= Rc.Todate
AND Evt.Day_Type_Id = Rc.Daytype;
BEGIN
FOR Each_Record IN Cur_Promo_Logos LOOP
v_Result := Testing_Pkg.Insert_Event(v_Channel_Id => Each_Record.Channel_Id,
v_Tx_Time => Each_Record.Start_Time,
v_Tx_Date => Each_Record.On_Date,
v_Content_Id => Each_Record.Logo_Id,
v_Duration => Each_Record.Duration,
v_Event_Type => Uktv_Tools_Pkg.c_Logo_Kind_Code,
v_Container_Id => Each_Record.Promo_Id);
IF v_Result = -1
THEN
EXIT;
END IF;
END LOOP;
END Promo_Version_Logo_Rule;
END Promo_Version_Logo_Pkg;why do I get this "Hint: Function 'Promo_Version_Logo_Rule' does not return a value" after I compile it? The Testing_Pkg.Insert_Event should insert some values somewhere...I just want to try to test it before I move on onto the next bit of it, but I do not understand what I am doing wrong...
ThanksYou need something like:
END LOOP;
RETURN v_Result; -- if this is what you are trying to get the function to do
EXCEPTION
WHEN OTHERS THEN
<exception handling/logging - whatever you want>
RAISE; --this with then raise an error back to the calling process
END Promo_Version_Logo_Rule;This way the function either returns a value, or an exception which can be handled in the calling procedure -
UPDATE ... RETURNING does not return new value
Hi all,
I've created the following objects in Oracle DB 10.2.0.3.0:
CREATE TABLE TAB1
ID NUMBER PRIMARY KEY,
EDITED_AT DATE,
VALUE VARCHAR2(64)
CREATE SEQUENCE S_TAB1
INCREMENT BY 1
START WITH 1;
CREATE TRIGGER T_TAB1_BIE
BEFORE INSERT OR UPDATE ON TAB1
FOR EACH ROW
BEGIN
IF INSERTING THEN
SELECT S_TAB1.NEXTVAL INTO :NEW.ID FROM DUAL;
END IF;
:NEW.EDITED_AT := SYSDATE;
END;
/Then I tried to do the following in SQL Plus:
SQL> insert into tab1(value) values('ddd');
1 row created.
SQL> commit;
Commit complete.
SQL>
SQL> select * from tab1;
ID EDITED_AT VALUE
1 27.03.2008 17:01:24 ddd
SQL>
SQL> declare dt date; val varchar2(64);
2 begin update tab1 set value = 'ddd' where id = 1 returning edited_at, value into dt, val;
3 dbms_output.put_line('txt = ' || dt || ', ' || val);
4 end;
5 /
txt = 27.03.2008 17:01:24, ddd
PL/SQL procedure successfully completed.
SQL>
SQL> select * from tab1;
ID EDITED_AT VALUE
1 27.03.2008 17:02:12 ddd
SQL>As it can be seen Returning clause of an Update statement does not return a new date, i.e. 27.03.2008 17:02:12, that was updated by the trigger, it returns an old one - 27.03.2008 17:01:24. Please advise me why Database returns an old value? I do believe that UPDATE ... RETURNING ... statement should return new, generated by the trigger, value.
Thanks in advance.
Regards,
Yerzhan.you need to explicitly include the column in your UPDATE statement SET clause that you expect to return the result you want it to be. here's what i think what happened even though you have a trigger the first statement that was processed was your update statement. at the time of the update it has to return the current values to the returning clause that is the values on the table. now comes next the trigger which gives edited_at column a new value. when the trigger got fired the process don't return anymore to the UPDATE RETURNING statement. it's like each sequence of codes does not executes in parallel.
SQL> CREATE TABLE TAB_1
2 (
3 ID NUMBER PRIMARY KEY,
4 EDITED_AT DATE,
5 VALUE VARCHAR2(64)
6 );
Table created.
SQL> CREATE SEQUENCE S_TAB1
2 INCREMENT BY 1
3 START WITH 1;
Sequence created.
SQL> CREATE TRIGGER T_TAB1_BIE
2 BEFORE INSERT OR UPDATE ON TAB_1
3 FOR EACH ROW
4 BEGIN
5 IF INSERTING THEN
6 SELECT S_TAB1.NEXTVAL INTO :NEW.ID FROM DUAL;
7 END IF;
8 :NEW.EDITED_AT := SYSDATE;
9 END;
10 /
Trigger created.
SQL> insert into tab_1(value) values('ddd');
1 row created.
SQL> commit;
SQL> select * from tab_1;
ID EDITED_AT VALUE
1 28-mar-2008 10:31:18 ddd
SQL> declare dt date; val varchar2(64);
2 begin update tab_1 set value = 'ddd', edited_at = sysdate
3 where id = 1 returning edited_at, value into dt, val;
4 dbms_output.put_line('txt = ' || dt || ', ' || val);
5 end;
6 /
txt = 28-mar-2008 10:32:39, ddd
PL/SQL procedure successfully completed.
SQL> select * from tab_1;
ID EDITED_AT VALUE
1 28-mar-2008 10:32:39 ddd
SQL> -
MessageChoice does not return correct value
Hi
I am problem with MessgeChoiceBean's improver beharior
For the first time it retunrs blank and subsequently In one page if I select Yes, it returns No.
In another page it does not return any thing for the first two selections. And I reciev flip values.
I ran VO outside, VO is returning correct values.
MessageChoice attributes and associated PPR:
Data Type: Varchar2
Initial Value: N
Pick List view Definition: oracle.apps.xxx.docs.common.lov.server.YesNoVO
Pick List View Instance: YesNoVO3
Pick List Display Attribute: Meaning
Pick List Value AttributeL LookupCode
ActionType: firePartialAction
Event: handleNewLocationFlagChange
Parameter Name: newLocationFlag
Parameter Value: ${oa.CustomerInfoVO1.NewShipToLocationFlag}
ProcessParameterForm Code:
if ("handleNewLocationFlagChange".equals(event))
String newLocationFlag = pageContext.getParameter("newLocationFlag");
Serializable[] parameters = { ""+newLocationFlag};
Class[] paramTypes = { String.class};
am.invokeMethod("handleNewLocationFlagChange", parameters, paramTypes);
VO definition:
select LOOKUP_CODE,MEANING
FROM ONLINE_DOCS_LOOKUPS
WHERE ONLINE_DOCUMENT_CODE = 'ALL'
AND LOOKUP_TYPE = 'YESNO'
ORDER BY ATTRIBUTE1
View output:
LOOKUP_CODE MEANING
N No
Y Yes
I have quite a bit number of columns to change render property.
Any help will be appreciated.
Thanks
PrasadYour question is not clear, are you saying the values in the messageChoiceBean is not displayed properly. As far as I can see from the definition the poplist picks the values from a lookup(Yes, No) values and has a PPR action associated with it. Did you check what this method handleNewLocationFlagChange is doing in the AM ?
-
LOV does not return the value (2)
PPR in general does not work correctly if invalid HTML is generated. One example of an invalid HTML is having an opening <TD> tag immediately following another opening <TD> tag.
After checking everything else, if LOV still does not return the value, test whether it's not a problem with the invalid HTML by placing the messageLovInput outside of the complicated layout nestings you may have. If it works outside of the layout nestings, look for the possible problems in the layout nestings.Hi RamKumar,
Thanks for your reply.. I have already done that but no luck :(
Regards,
Hemanth J -
Why is the giving me this error (method does not return a value) PLEASE !!
I have this code and it is giving me this error and I don't know how to fix it
can anyone out there tell me why
I have included the next line of code as I have had problems in the curly brackets in the past.
The error is
"Client.java": Error #: 466 : method does not return a value at line 941, column 3
Please help
THX TO ALL
private Date DOBFormat()
try
if
(MonthjComboBox.getSelectedItem().equals("") ||
DayjComboBox.getSelectedItem().equals("") ||
YearjComboBox.getSelectedItem().equals("")){
else
String dateString = StringFromDateFields();
SimpleDateFormat df = new SimpleDateFormat("dd/mm/yyyy");
Date d = df.parse(StringFromDateFields());
System.out.println("date="+d);
return d;
catch (ParseException pe)
String d= System.getProperty("line.separator");
JOptionPane.showMessageDialog( this,
"Date format needs to be DD/MM/YYYY,"+ d +
"You have enterd: "+ StringFromDateFields() + d +
"Please change the Date", "Date Format Error",
JOptionPane.WARNING_MESSAGE);
return null;
//File | Exit action performed
public void jMenuFileExit_actionPerformed(ActionEvent e) {
System.exit(0);
}Fixed it needed to have a return null;
this is the code
if
(MonthjComboBox.getSelectedItem().equals("") ||
DayjComboBox.getSelectedItem().equals("") ||
YearjComboBox.getSelectedItem().equals("")){
return null; -
I have a list in SharePoint 2013 with a people picker field. I am trying to retreive the list info on cient side in javascript. URL does not take lookup field display name (as stated in some articles) but it was taking AssignedPAId instead. However further
expands does not return any thing. I need to return the assigned to user name in this case.
List columns
Title
primaryowner
AssignedPA (People or Group field)
REST Query URL:
_api/Web/Lists/GetByTitle('demolist')/items?$select=Title,primaryowner,AssignedPAId/Name&$expands=AssignedPAId/Name
It keeps returning me Id only regardless i am asking /Name.
Any help on query? Please suggest a working query only. i have already googled/binged enough.........................
Moonis Tahir MVP SharePoint,MCTS SharePoint 2010/2007, MCPD.net, MCSD.net, MCTS BizTalk 2006,SQL 2005Hi,
According to your post, my understanding is that you want to get the user name of the people picker control.
To get the user name in the people picker control, we can use the SPService to achieve it.
There is a function called
SPFindPeoplePicker , we can use this function to get the display name.
There is an article about this topic, you can refer to it.
http://sympmarc.com/2012/04/22/working-with-sharepoint-people-pickers-with-jquery-a-new-function-called-findpeoplepicker/
Thanks,
Jason
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Jason Guo
TechNet Community Support -
FM F4IF_INT_TABLE_VALUE_REQUEST do not return value in RETURN_TAB
Hi all,
I used the FM F4IF_INT_TABLE_VALUE_REQUEST to return the objid and stext and it is showing the search help in the selection screen, however, after i choose a value from the search help, the FM does not return me the value that i have choosen. The following is the code that I had written.
DATA: lt_retval TYPE STANDARD TABLE OF ddshretval,
lwa_retval TYPE ddshretval.
DATA: lt_field TYPE STANDARD TABLE OF dfies,
lwa_field TYPE dfies.
CONSTANTS: lc_retfield TYPE dfies-fieldname VALUE 'STEXT',
lc_value_org TYPE c VALUE 'S'.
lwa_field-fieldname = 'F0001'.
lwa_field-langu = sy-langu.
lwa_field-position = '1'.
lwa_field-offset = '0'.
lwa_field-domname = 'HROBJID'.
lwa_field-rollname = 'HROBJID'.
lwa_field-leng = '8'.
lwa_field-intlen = '16'.
lwa_field-outputlen = '8'.
lwa_field-datatype = 'NUMC'.
lwa_field-inttype = 'N'.
lwa_field-precfield = 'HROBJID'.
lwa_field-headlen = '8'.
lwa_field-scrlen1 = '10'.
lwa_field-scrlen2 = '15'.
lwa_field-scrlen3 = '20'.
lwa_field-fieldtext = 'Posting ID'.
lwa_field-reptext = 'Posting ID'.
lwa_field-scrtext_s = 'PostingID'.
lwa_field-scrtext_m = 'ID'.
lwa_field-scrtext_l = 'Posting ID'.
APPEND lwa_field TO lt_field.
CLEAR lwa_values.
lwa_field-fieldname = 'F0002'.
lwa_field-langu = sy-langu.
lwa_field-position = '2'.
lwa_field-offset = '16'.
lwa_field-domname = 'TEXT40'.
lwa_field-rollname = 'STEXT'.
lwa_field-leng = '40'.
lwa_field-intlen = '80'.
lwa_field-outputlen = '40'.
lwa_field-datatype = 'CHAR'.
lwa_field-inttype = 'C'.
lwa_field-precfield = 'STEXT'.
lwa_field-headlen = '40'.
lwa_field-scrlen1 = '10'.
lwa_field-scrlen2 = '15'.
lwa_field-scrlen3 = '20'.
lwa_field-fieldtext = 'Posting Text'.
lwa_field-reptext = 'Posting Text'.
lwa_field-scrtext_s = 'PostingTxt'.
lwa_field-scrtext_m = 'Text'.
lwa_field-scrtext_l = 'Posting Text'.
lwa_field-lowercase = 'X'.
APPEND lwa_field TO lt_field.
CLEAR lwa_values.
IF lt_values IS NOT INITIAL.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = lc_retfield
* dynpprog = sy-repid
* dynpnr = sy-dynnr
* dynprofield = lc_fieldn
value_org = lc_value_org
TABLES
value_tab = lt_values
field_tab = lt_field
return_tab = lt_retval
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
IF sy-subrc EQ 0.
CLEAR lwa_retval.
READ TABLE lt_retval INTO lwa_retval INDEX 1.
IF sy-subrc EQ 0.
MOVE lwa_retval-fieldval TO s_post-low.
CLEAR lwa_retval.
ENDIF.
ELSE.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDIF.
Please assist, thanks so much.
Edited by: yf wee on Oct 5, 2009 8:11 AMHi,
Refer this demo code:-
PARAMETERS : p_belnr TYPE belnr,
p_bukrs TYPE bukrs.
DATA : BEGIN OF itab OCCURS 0,
belnr TYPE belnr,
END OF itab.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_belnr.
PERFORM f4_belnr_help USING p_belnr.
*& Form f4_belnr_help
* text
* -->P_BELNR text
FORM f4_belnr_help USING p_belnr.
SELECT belnr from <db_table> INTO TABLE itab.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'BELNR' "internal table field
dynpprog = 'Z_F4' "program name
dynpnr = '1000' "screen number
dynprofield = 'P_BELNR' "screen field name
value_org = 'S'
TABLES
value_tab = itab "internal table
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.
ENDFORM. " f4_belnr_help
Hope this helps you.
Regards,
Tarun -
Very Very Urgent Issue: Restricted Key Figure does not return any data
Hi all,
Please help me solving this urgent issue.
created customer exit variable on characterstics version and also
other customer exit variable on Value type.
I coded that in variable exit. Problem is when I include these in
restrickted keyfigure My query does not return me any data.
But if I remove from restrickted key firgure and put it as normal
charaterstics I see the variable is getting populated.
Also in RSRT the SQl generated when these are included in RKF is not
correct.
I debugged and know they are getting populated. As when included in RKF
I can also see the values of customer exit variables from information
tab.
I also know that there is data in cube for those restrictions.
I posted one OSS Notes regarding this urgent issue. But got no reply from SAP.
FYI: We are using BEx 3.5 Browser SAP GUI 6.4 Patch 20 BW Patch 11
Thanks
SAP BW
**Please do not post the same question twice: Very Urgent Issue: Restricted Key Figure does not return any dataHi,
Everyone out there this is very urgent. If someone can help me solving this problem.
We are using BEx 3.5 Browser SAP GUI 6.4 Patch 20 BW Patch 11.
I posted one oss notes also regarding this issue. But got no reply from SAP.
So, Please help me solving this issue.
Thanks
SAP BW -
FM HRTRV_IF_GET_TRIP does not return USERDATA
Hi, it's me, yet again...
I'm using the FM "HRTRV_IF_GET_TRIP" in FITE_VC_GENERA_DATA in a post exit of comp-controller method "ON_SHOW" to get the structure/Table USER/PTK99 from the TE Cluster for binding to the context afterwards. At least that's the plan. The FM does not return me the data I expect in parameter USERDATA, although there is data in the TE Cluster and within the FM, I can see the global Table USER being filled whilst the macro RP-IMP-C1-TE. But this data is not further process neither is seems the strucutre USERDATA to be touched at any point of the FM. Am I calling the FM 'wrong' in any way? I'm close to making an implicit enhancement at the end and forcefully fill userdata from user....
Too long, didn't read: USERDATA is not returned filled --> WHY?
CALL FUNCTION 'HRTRV_IF_GET_TRIP'
EXPORTING
employeenumber = wd_assist->GS_COMMON_RFC_INPUT-employee_number
tripnumber = lv_tripno
* LANGUAGE = SY-LANGU
* CALCULATE_AMOUNTS = 'X'
* GET_TRIP_FROM_MEMORY = ' '
IMPORTING
* FRAMEDATA =
* STATUS =
USERDATA = ls_user " should contain cluster values, but it doesn't
tables
* RECEIPTS =
* ADDINFO =
* GUESTS =
* TEXT =
* MILEAGE =
* STOPOVER =
* DEDUCTIONS =
* COSTDIST_TRIP =
* COSTDIST_STOP =
* COSTDIST_RECE =
* COSTDIST_MILE =
* AMOUNTS =
* ADVANCES =
return = lt_bapiret " says method was executed successful
In the insides of the FM:
* IF CALCULATE_AMOUNTS <> 'X'. "XJY
* import the trip because it was NOT imported before
READ TABLE T_PERIO INDEX 1.
TE-KEY-PERNR = T_PERIO-PERNR.
TE-KEY-REINR = T_PERIO-REINR.
TE-KEY-PERIO = T_PERIO-PERIO.
TE-KEY-PDVRS = T_PERIO-PDVRS. " Once this line is executed, the global table USER is fileld with the data I expect
RP-IMP-C1-TE.
* ENDIF. "XJY
if t_perio-abrec = '0' or
t_perio-abrec = '1'.
clear te-key-pdvrs.
import beler from memory id te-key.
endif.
I hope somebody has ever used this one and can tell me what I'm doing wrong...
Cheers, Lukasgood to know. that you have already implemented similar thing. In our case if employee want to pick a manager he will only be given option from a custom table entries.
They way i was thinking was that there will be a checkbox that will say "Override Approver"
and when that will be checked text filed will be enabled with search help restricted to custom table entries.
I have one question. When I am enhancing FITE_VC_REVIEW and adding field in that view, I m finding it hard to track it. Looks like adding to General data screen will be much easier.
R u using ABAP memory to track field and use it at SMOD or you are using SAP memory ?
I am just starting on this one and not expert at webdynpros.. will ping you if i need any more help
and yes i just added following like in FM HRTRV_IF_GET_TRIP
read TABLE user INTO userdata INDEX 1
to get it to load userdata..
Maybe you are looking for
-
Create a Update Routine to populate Particular records.
Hi, The Lower level ODS (ZGSD_O01) has the key fields Document Number and Document Item. The value for GI_STS will be C for each item when it is PGI'd (Actual Goods Issue Date) and will be in other status (A or B) until it is PGI'd.(that means the or
-
Line items processing in BAPI_REQUISITION_CREATE
Hi all , Inside the loop i would like to check the line items conditions for below : PO Line item Open Po Quantity Need Requsted Quantity 444444 1 80000 40000 444444 1 80000
-
How to trigger Camera usinf IEEE1394
Dear Readers, I am writing a code to trigger the camera externally. i am using the sony fire wire camera model no: XCD-X710CR. It has two input connectors. one is for the cable from PXI express which we uses IEEE1394, The another one is for Ext tr
-
How to get iphone 4 out of recovery mode?
Hello I was trying to update my phone and now it's stuck in recovery mode. I have tried everything I could think of and nothing seems to be working. I hooked it up to iTunes to do a restore and it won't restore it just keeps giving me a download mess
-
Prevent PDF from converting to FDF upon submission?
I have created a pdf in Adobe Acrobat 9 Pro that has fillable forms. I have a submission button at the bottom that sends completed form via email directly to me. When I receive the forms they come in an fdf file format. I've done something simple to