Call the Function "Import Items" of Inventory Module by a external java app
I want call the Import Items Function of inventory from my java application. This function copy the Items from MTL_SYSTEM_ITEMS_INTERFACE into the table that inventory use to manage the Items.
Do you know how can I do?
Thanks
Gabriele
I want call the Import Items Function of inventory from my java application. This function copy the Items from MTL_SYSTEM_ITEMS_INTERFACE into the table that inventory use to manage the Items.
Do you know how can I do?
Thanks
Gabriele
Similar Messages
-
TRFC type conflict when calling the function module
Hi,
When I schedule, it is stucking up with TRFC and giving error message in SM58 as" TRFC type conflict when calling the function module" .
even if I execute the trfc LUWs ,load is not successful.
could you please any body suggest for this error.
Thanks
RHi Guys,
could any suggest why this is happening.
TRFC is stuck up and giving error message.
Thanks
Ram -
MM: do I have to use bdc, when I already called the function?
I'm doing a bapi for requisition create. after calling the function and identified the tables, what's next? Supposed to be it would generate a PR # but it didn't. Please guide me.
IMPORT:
SKIP_ITEMS_WITH_ERROR TYPE BAPIMMPARA-SELECTION Skip Faulty Items
AUTOMATIC_SOURCE TYPE BAPIMMPARA-SELECTION 'X' Automatic source determination
EXPORT:
NUMBER TYPE BAPIEBANC-PREQ_NO Purchase requisition number
CODES:
CALL FUNCTION 'BAPI_REQUISITION_CREATE'
EXPORTING
SKIP_ITEMS_WITH_ERROR =
AUTOMATIC_SOURCE = 'X'
IMPORTING
NUMBER =
TABLES
requisition_items = lt_items
REQUISITION_ACCOUNT_ASSIGNMENT = lt_aac
REQUISITION_ITEM_TEXT = lt_item_text
REQUISITION_LIMITS =
REQUISITION_CONTRACT_LIMITS =
REQUISITION_SERVICES =
REQUISITION_SRV_ACCASS_VALUES =
RETURN = lt_return
REQUISITION_SERVICES_TEXT =
REQUISITION_ADDRDELIVERY =
EXTENSIONIN =Hi !
Most of the BAPIs need a COMMIT WORK to start their work !
If not already done, you can try that.
Are all obligatory fields set ?
Do do get any errors ?
Finally you could check the OSS for the BAPI 'BAPI_REQUISITION_CREATE'. Maybe there are some known errors.
Regards
Rainer
Some points would be fine if that hepled a bit -
Call the function in postgresql to jsp
again i'm a newbie of jsp.. i just wanna know how to call the function in postgresql to jsp.. how to code it?... thanks in advance
<%@ page contentType="text/html;charset=windows-1252" import="java.sql.*"%>
<%
try
Class.forName("org.postgresql.Driver").newInstance();
Connection con = DriverManager.getConnection("jdbc:postgresql://localhost:5432/TESTDB","postgres","");
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery("select catalog('catalog1') from catalog");
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>untitled</title>
</head>
<body>
<%
while(rs.next()){
out.println(rs.getString(1)+"<br>");
%>
</body>
</html>
<%
}catch (Exception ex)
ex.printStackTrace();
%>
CREATE or Replace FUNCTION catalog(varchar) RETURNS catalog
AS $$ SELECT title FROM catalog WHERE catalogid = $1 $$
LANGUAGE SQL;
CREATE TABLE catalog
catalogid varchar(25) NOT NULL,
journal varchar(25),
publisher varchar(25),
edition varchar(25),
title varchar(45),
author varchar(25),
CONSTRAINT catalog_pkey PRIMARY KEY (catalogid)
WITH OIDS; -
Problem in calling the function
HI
i am creating the dynamic xml menu drop down menu in flash ,
1) CreateMainMenu --- used to create the m ain
menu..........
2) getEmpDetailsFrmXML ------- used to load the xml file...
3) GenerateMenu ------ used to genereta the menus.. in run
time ....
but in the GenerateMenu when user roll over the main menu
it'll check whether is there any submenu is there or not
if it's available ,then it need to call this
GenerateMenu("submenu_mc", 110, 90, 500, node_xml); function
but it's not calling the function...... i tried to used some
sample function also like test() ... it also not working....
Can any help me to clear this issue....
~~SKHi,
Can any one help me to solve this issue...
~~
Sk -
Why can't I call the function in the swf from the javascript?
Hello,
I have an html file that calls the function in swf file. In the swf file, I registered the function to be called using ExternalInterface.addCallback, as the book says.
And I put this swf file in the html file using <object> tag and attempted to call the function using this object's id attribute.
But every time to run this file, what I see is the error message such as "test1.show is not a function".
Why is it?
Please anyone help me. I am enclosing my work file. It's very simple one.
Thank you.
Daniel.It is entirely possible your college has decided to block certain websites. It's easy to do.
-
Calling the function NUMBER_GET_NEXT from an XI User Defined Function
Hi there,
A number range object has been created on our XI server, called, ZBC_BKSTMT.
I need to call the function NUMBER_GET_NEXT (standard SAP function for number range objects) with the parameters:
NR_RANGE_NR = 01
OBJECT = ZBC_BKSTMT
Calling the NUMBER_GET_NEXT function will return a unique integer. However, i need to call it from a User Defined Function because I need to make use of the returned integer in my message mapping.
Thanks,Hello,
If you have SP13, SAP provides a RFC API which can be called during the mapping. Refer to this document:
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-code-samples/xi%20mapping%20lookups%20rfc%20api.pdf
Also check this weblog :
/people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
For pre-SP13 systems, refer to this How-To
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-how-to-guides/how%20to%20perform%20sap%20data%20lookups%20within%20xi%20mappings
***************Reward points,if found useful -
How to identify which switch in the panel called the function?
here i have some 192 switches and 192 leds corresponding to each switch,
if a switch is on(say 10th) correspondingly led(10th) should glow.
i want to use the same function for all switche led pairs.
all i could do was to check for the on switch in a for loop and then set the particular led on, but i find it very inefficient way of doing it.
int CVICALLBACK switchOnOff (int panel, int control, int event,
void *callbackData, int eventData1, int eventData2) is the function.
can i use any of these arguments to extract which switch(unique id for that switch) called the function so that i can switch corresponding led glow?
Solved!
Go to Solution.Looping through controls is indeed a inefficient way of doing what you want!
With such a great number of controls, you could assign an appropriate callbackData to each of them when loading the panel. Next you could create an array of control IDs with all the LEDs and operate in the switch callback to turn on and off the corresponding led. A small example will be more clear:
At panel load:
int leds[200];
SetCtrlAttribute (panelHandle, PANEL_SWITCH1, ATTR_CALLBACK_DATA, (void *)1); leds[1] = PANEL_LED1;
SetCtrlAttribute (panelHandle, PANEL_SWITCH2, ATTR_CALLBACK_DATA, (void *)2); leds[2] = PANEL_LED2;
SetCtrlAttribute (panelHandle, PANEL_SWITCH192, ATTR_CALLBACK_DATA, (void *)192); leds[192] = PANEL_LED192;
In the switch callback:
int CVICALLBACK switchOnOff (int panel, int control, int event,
void *callbackData, int eventData1, int eventData2)
int sts;
if (event != EVENT_COMMIT) return 0;
// Get the status of the switch
GetCtrlVal (panel, control, &sts);
// Set the led to the proper status
SetCtrlVal (panel, leds[(int)callbackData], sts);
return 0;
For this solution to work, leds[] array must be global so that it is available to the control callback.
An additional improvement could be to modify the panel loading so that swithces and leds are created programmatically. You could have a single switch/led pair set in the UIR editor and next have a loop that duplicate the controls, sets callbackData and loads the array of led ids.
Proud to use LW/CVI from 3.1 on.
My contributions to the Developer Zone Community
If I have helped you, why not giving me a kudos? -
Problem in transfer rules-- Calling the function module.
Hi All,
when we r extracting the data from r3, the infoobject 0wbs_elem the data pulled is in internal format in which wbs element is stored.
wbs element gets stored in a different way compared to front end.
Eg. The external format is /abc/123 the internal format is 00012300.
I have written a transfer routine using the function module CONVERSION_EXIT_ABPSP_OUTPUT.
the code goes like this
data ifield(30) type c.
call function CONVERSION_EXIT_ABPSP_OUTPUT
Exporting
input = tran_structure-wbselem (Field in transfer structure---name of the field in source system) .
Importing
output = ifield.
result = ifield.
End of code.
Problem
When I am Scheduling the package the job doesnt get completed for a long time and fails.Is there a problem with the code. When trying for the Simulation of the datapackets, the system says no data package number could be determined.
Please help me out...
Thank You
MaheshHi Mahesh,
Could you please check ST22 and see if there is any short dumps ?
try to do test run for the FMs using SE37 and see what is the output for your input.
Do you have PSA for the load ? It may also have been deleted. You get this message when there is no PSA available.
hope it helps
Thanks
Soumya -
Call the Function against a select query in 500 procedures...
Hello Gurus,
I have a scenario, where i had made one function(UDF Function) to calculate something and in every procedure i call that function and calculate my requirement.
Yesterday, i made a select query using reg exp for the same calculation..
So my question is, what should be the proper approach..
I need to implement this on 500 procedures...
And the UDF function is
CREATE OR REPLACE FUNCTION "UDF_TEXTSPLIT" (
p_list VARCHAR2,
p_del VARCHAR2 := ','
) RETURN split_tbl pipelined
IS
l_idx PLS_INTEGER;
l_list VARCHAR2(7999) ;
l_value VARCHAR2(7999);
BEGIN
l_list := p_list;
LOOP
l_idx := INSTR(l_list,p_del);
IF l_idx > 0 THEN
pipe ROW(SUBSTR(l_list,1,l_idx-1));
l_list := SUBSTR(l_list,l_idx+LENGTH(p_del));
ELSE
pipe ROW(l_list);
EXIT;
END IF;
END LOOP;
RETURN;
END Udf_Textsplit;
I have made this query:
SELECT a.b,z. b1 FROM
(SELECT ROWNUM d,REGEXP_SUBSTR(str1, '[^> ]+', 1, LEVEL) b
FROM (SELECT 'xxx>zzz>gg' str1 FROM dual)
CONNECT BY REGEXP_SUBSTR(str1, '[^> ]+', 1, LEVEL) IS NOT NULL)a,
(SELECT ROWNUM d,REGEXP_SUBSTR(str1, '[^> ]+', 1, LEVEL) b1
FROM (SELECT '100>500>20' str1 FROM dual)
CONNECT BY REGEXP_SUBSTR(str1, '[^> ]+', 1, LEVEL) IS NOT NULL)z
WHERE a.d=z.d
Do i use the same select query in all 500 procedures or call the (UDF Function) in every procedure..
So which will be faster...
Your approach would be very much appreciated...
Thanks,
Haraprasad...Hmm, do I edit 500 procedures to replace a function call with a SQL statement, or edit 1 function to use a sql statement instead of the current algorithm?
This is why we use code modules that do one thing and do it well. As long as the new version of the function takes the same arguments and returns the same results as the old, then the callers will never know that the way the function works has changed.
Whenther you put the select statement in 500 procedures, or 1 function, there will still be a context switch every time you use it. The tiny additional overhead of calling a function before the context switch would be unnoticeable.
John -
Layout - not recognize the element when i call the function write_form
Hi experts,
I got a layout(se71) that not recognize the element that i add in the MAIN window when i call the layout from a program.
what could it be?
i add the element in se71.
any help will be appreciated.
Michal.Hi!
the write form that u are calling should be as below....
CALL FUNCTION 'WRITE_FORM'
EXPORTING
element = 'ELEMENT'
window = 'MAIN'
EXCEPTIONS
element = 1
function = 2
type = 3
unopened = 4
unstarted = 5
window = 6
bad_pageformat_for_print = 7
spool_error = 8
codepage = 9
OTHERS = 10.
IF sy-subrc <> 0.
MESSAGE 'MAIN window not called properly'(006) TYPE 'E'.
ENDIF. " IF SY-SUBRC NE 0
in the layout see if the code there with data element is proper as...
/E ELEMENT
&var&
Also this write_form FUNCTION MODULE should be called b/w OPEN_FORM and CLOSE_FORM Function Modules.
Regards -
Error while calling the function which returns SQL Query!!!
Hi,
I have a Function which returns SQL query. I am calling this function in my APEX report region source.
The query is dynamic SQL and its size varies based on the dynamic "where clause" condition.
But I am not able to execute this function.It gives me the following error in APEX region source.
ORA-06502: PL/SQL: numeric or value error: character string buffer too small
Even in SQL* Plus or SQL developer also same error .
The length of my query is more than 4000. I tried changing the variable size which holds my query in the function.
Earlier it was
l_query varchar2(4000)
Now I changed to
l_query varchar2(32767).
Still it is throwing the same error.
Can anybody help me to resolve this.???
Thanks
AlakaHi Varad,
I am already using 32k of varchar2. Then also it is not working.
It is giving the same error. I think there is something to do with buffer size.
My query size is not more than 4200. Even if i give 32k of varchar2 also buffer is able to hold only 3997 size of the query only.
Error is
ORA-06502: PL/SQL: numeric or value error: character string buffer too small
Tried CLOB also. It is not working.
Any other solution for this.
Thanks
Alaka -
Calling the function from SQL query
Hi,
I am trying to run the below statement,
Select to_number(apps.pay_balance_pkg.get_value( 326, :paa.assignment_action_id,to_date ('31032011','ddmmyyyy'))) from dual;
getting an error as :
ORA-14552 cannot perform a DDL, commit or rollback inside a query or DML
ORA - 06512 at apps.pay_balance_pkg , line 4526.
How can I execute this funciton "apps.pay_balance_pkg.get_value" from sql query?
Thanks in advance.user1175432 wrote:
Hi,
I am trying to run the below statement,
Select to_number(apps.pay_balance_pkg.get_value( 326, :paa.assignment_action_id,to_date ('31032011','ddmmyyyy'))) from dual;
getting an error as :
ORA-14552 cannot perform a DDL, commit or rollback inside a query or DML
ORA - 06512 at apps.pay_balance_pkg , line 4526.
How can I execute this funciton "apps.pay_balance_pkg.get_value" from sql query?
Thanks in advance.If the function is performing DDL, commit or rollback inside it then you will not be able to call it from an SQL statement.
Either change the function so it doesn't perform DDL, commit or rollback, or use a different means to obtain the information you want (assuming you can't change the function) -
How to call the function 5 times
hi
i have a function 'a' with array 1x2, 1x3, 1x4...
every step its 1x2 > answer
1x3 > answer..
ans so on
if answer correct i call my function 'a' again.
how i can call my function 'a' just 3 times?
thank you.Hello!
Well, it depends on some factors, like:
1) Function 'a' itself checks if the answer is correct?
2) Which event calls function 'a'?
... and so on.
Please, if you could detail your problem and maybe post some code, it will be easier for us to understand it and help you :-).
Message was edited by: rah02 -
Calling the function/procedure in the control file of the SQL*loader???
Hi,
Could you please let me know whether we can call procedure/function in the control file ? If possible, please share some examples.
Thanks in advance !!
Regards,
Vissu...Please see below code, I think It will help you...
LOAD DATA
INFILE 'mail_orders.txt'
BADFILE 'bad_orders.txt'
APPEND
INTO TABLE mailing_list
FIELDS TERMINATED BY ","
( addr,
city,
state,
zipcode,
mailing_addr EXPRESSION "Your_function(:mailing_addr)",
mailing_city EXPRESSION "UPPER(:mailing_city)",
mailing_state,
move_date EXPRESSION "substr(:move_date, 3, 2) || substr(:move_date, 7, 2)"
)Edited by: Atanu Chatterjee on Nov 12, 2010 2:44 AM
Maybe you are looking for
-
Using databases and container events?
I'm having trouble finding documents show how one should use databases and listen for container events? I'm using Berkley Java DB. I'll need all my remote object to have access to the database. How do I pass that in? Custom adapters? Also, when Tomca
-
Has MSI (or anyone) resolved the on-board LAN drivers won't install issue?
I am having this exact problem with my Neo2 PFISR (ms-6728) mb: https://forum-en.msi.com/index.php?topic=89598.0 I find the "PSU is probalby faulty" comments particularly laughable. It's obvious the original poster is much more technical than the MSI
-
How does the width parameter in the peak detector work?
I would like to know how the window slides. For example if i take a width of 3. My first window is from 1 to 3. My next window will slide from 4 to 6 or from 2 to 4. Thank you.
-
Entry in fields to make compulsory /Required Entry for QM tab fields in MMR
Dear Gurus , I need to make some fields as Required Entry in Quality Management tab of Material Master record So that the users compulsorily need to fill data before saving the MMR. The fields which I want to make compulsory are visible after clickin
-
Having recently upgraded to Captivate 5, I held-out hope that when importing video, the ridiculus lockdown on the address format for linking to video already deployed on a web server (I use FMS) would allow me to manually enter "rtmps://...". Alas, n