Passing values to FM
Hi Experts,
I have written the following code to assign partner2 to Partner1. But no result. Is there anything missing?
REPORT ZCREATE_REL.
TABLES : BUT050 .
DATA: part1 TYPE but050-partner1,
part2 TYPE but050-partner2.
DATA:
BEGIN OF itab,
part1 TYPE but050-partner1,
part2 TYPE but050-partner2,
END OF itab.
*Internal Table
DATA: i_itab TYPE TABLE OF itab WITH HEADER LINE.
*Workarea.
DATA: w_itab TYPE itab.
SELECTION-SCREEN BEGIN OF BLOCK blk18 WITH FRAME TITLE text-001.
SELECT-OPTIONS:
s_part1 FOR part1 ,
s_part2 FOR part2 .
SELECTION-SCREEN END OF BLOCK blk18.
Loop at i_itab into w_itab.
CALL FUNCTION 'BUPR_RELATIONSHIP_CREATE'
EXPORTING
iv_partner_1 = 'part1'
iv_partner_2 = 'part2'
iv_relationship = 'BUR011'
*iv_date_from = '00010101'
*iv_date_to = '99991231'
iv_testrun = ' '
iv_x_save = 'X'.
*TABLES
*et_return = gt_return.
*PERFORM disp_error USING gs_warning.
*COMMIT WORK AND WAIT.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'.
* IMPORTING
* RETURN =
endloop.
Thanks
Ajay
Hi Ajay,
Seems these are the following problems:
- the internal table itab is not having any data. The itab is not filled in the code any where so there is no data in it due to which function modules are not called.
- if you fill the internal table itab in your code then make sure that you are passing right values to the parameters iv_partner_1 and iv_partner_2.
CALL FUNCTION 'BUPR_RELATIONSHIP_CREATE'
EXPORTING
iv_partner_1 = 'part1' "w_itab-partner1 or s_part1
iv_partner_2 = 'part2' "w_itab-partner2 or s_part2
iv_relationship = 'BUR011'
*iv_date_from = '00010101'
*iv_date_to = '99991231'
iv_testrun = ' '
iv_x_save = 'X'.
George
Similar Messages
-
Hi, I am calling a Background job in my program. I am using JOB_OPEN, JOB_SUBMIT and JOB_CLOSE FM to start a job. My need is to pass a value to the job program(job program doesnt have any selection screen values). Is their any way without creating variants each time to pass value to it.
Please advice.....Hello,
You can first use JOB_OPEN which returns job number. Then build ranges or parameters to use SUBMIT to call the program.
Eg: SUBMIT RM06BB20 AND RETURN
WITH S_EKGRP IN R_EKGRP
WITH S_EKORG IN R_EKORG
WITH S_FLIEF IN R_FLIEF
WITH S_KONNR IN R_KONNR
USER sy-uname VIA JOB w_jobname
NUMBER w_job_number.
Now use JOB_CLOSE.
Thanks,
Venu -
Passing values between adf application and web services
hi i have a situation where i have jsff page which got username,surname,lastname,email i what to pass this value to my webservices how can i do that. this is how i create my webservicesright click viewControler->web services->web services Data Control
i what to pass the value to webservices workflow i already have a screen in my workflow now i what to pass the adf application values to that webservices am in jdeveloper 11.1.1.6.0
i try this
<af:inputText simple="true"
required="#{bindings.Username.hints.mandatory}"
columns="#{bindings.Username.hints.displayWidth}"
maximumLength="#{bindings.Username.hints.precision}"
shortDesc="#{bindings.Username.hints.tooltip}" id="it1"
value="#{bindings.Username.inputValue}">
<f:validator binding="#{bindings.Username.validator}"/>
<af:setPropertyListener from="#{bindings.Username.inputValue}"
to="#{bindings.start_user_details}"
type="action"/>
</af:inputText>i make my webservices to pass values
<af:inputText simple="true"
required="#{bindings.Username.hints.mandatory}"
columns="#{bindings.Username.hints.displayWidth}"
maximumLength="#{bindings.Username.hints.precision}"
shortDesc="#{bindings.Username.hints.tooltip}" id="it1"
value="#{bindings.Username.inputValue}">
<f:validator binding="#{bindings.Username.validator}"/>
<af:setPropertyListener from="#{bindings.Username.inputValue}"
to="#{bindings.approveUser_username}"
type="action"/>
</af:inputText>
but am geting error reference approveUser_username not found -
Passing values from a FORM to another FORM
Hi,
I have to pass values from FORM "A" to FORM "B". What is the best way to do this?\
Can I use a GLOBAL variable?
Thanks,
Marc.I think he meant the global namespace.
You set a :global_your_name_here to a value and that value is available in your entire application. See the help file section on the global namespace for more information.
Forms parameters are parameters that you form picks up from the outside when it starts. The calling entity must supply them in the URL or they will be set to null. You set them up in the object navigator in the Parameters node. -
Script fails when passing values from pl/sql to unix variable
Script fails when passing values from pl/sql to unix variable
Dear All,
I am Automating STATSPACK reporting by modifying the sprepins.sql script.
Using DBMS_JOB I take the snap of the database and at the end of the day the cron job creates the statspack report and emails it to me.
I am storing the snapshot ids in the database and when running the report picking up the recent ids(begin snap and end snap).
From the sprepins.sql script
variable bid number;
variable eid number;
begin
select begin_snap into :bid from db_snap;
select end_snap into :eid from db_snap;
end;
This fails with the following error:
DB Name DB Id Instance Inst Num Release Cluster Host
RDMDEVL 3576140228 RDMDEVL 1 9.2.0.4.0 NO ibm-rdm
:ela := ;
ERROR at line 4:
ORA-06550: line 4, column 17:
PLS-00103: Encountered the symbol ";" when expecting one of the following:
( - + case mod new not null <an identifier>
<a double-quoted delimited-identifier> <a bind variable> avg
count current exists max min prior sql stddev sum variance
execute forall merge time timestamp interval date
<a string literal with character set specification>
<a number> <a single-quoted SQL string> pipe
The symbol "null" was substituted for ";" to continue.
ORA-06550: line 6, column 16:
PLS-00103: Encountered the symbol ";" when expecting one of the following:
( - + case mod new not null <an identifier>
<a double-quoted delimited-identifier> <a bind variable> avg
count current exists max min prior sql stddev su
But when I change the select statements below the report runs successfully.
variable bid number;
variable eid number;
begin
select '46' into :bid from db_snap;
select '47' into :eid from db_snap;
end;
Even changing the select statements to:
select TO_CHAR(begin_snap) into :bid from db_snap;
select TO_CHAR(end_snap) into :eid from db_snap;
Does not help.
Please Help.
TIA,
NischalHi,
could it be the begin_ and end_ Colums of your query?
Seems SQL*PLUS hs parsing problems?
try to fetch another column from that table
and see if the error raises again.
Karl -
Passing values from javascript in pop up window to parent jsp
Hi
I am trying to pass values from a pop up window to the main window that popped this child window , with the idea to have the parent window refresh itself with value from pop up window.But the values are not going through.I do a request on the hidden variable but when the parent
jsp refreshes , the variable is still null...
The following is the code i have .
Parent jsp:a.jsp
<form name='summary'>
<input type=hidden name=customerid value="">
<input type="button" class="textButton" name="action" value="customerlist" onClick="javascript:openWin('b.jsp','800','350')">
<script>
function openWin(loc, w, h) {
var newWin = window.openloc,"HTML",'dependent=1,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=' + w + ',height=' + h);
newWin.window.focus();
</SCRIPT>
<%
String optionVal = request.getParameter("customerid");%>
var user = "<%= optionVal%>";
</form>
child jsp- b.jsp (pop up window)
<script>
function closer(){
var val = document.formname.id.selected.value;
window.opener.document.summary.customerid.value = val;
window.opener.location.reload();
</script>
<form name = formname>
<input type="text" name="id" value = ''>
<input type="button" class="textButton" value="select"
onClick="closer();window.close();">
</form>
Any ideas on what i am missing
Thanks
Arnuse window.opener.document.forms[0].filedname.value = 'value u need to set'
-
Passing Value from Crystal Report (special function) to Business View parameter
Friends,
Í have a scenario where i need to pass value from Crystal Report to a Business view's parameter.
Eg : CurrentCEUsername (func in crystal report)-- gives login user which i should pass to parameter in a Business view (used in the same report).
Will be able to explain more if required.
Thanks in Advance,
BharathI guess you got the picture wrong. User_id is not a report_level parameter .
In Data Foundation, below query is used..
select Acc_Number, Account_Group,User_id from Accounts where user_id={?User_id}
where in {?User_id} is the BV parameter...
The Filter was a solution. But it takes long time to Query all the data from DB and then filter at BV level.
How do i pass the CurrentCEUsername to {?User_id}
Value should ve CurrentCEusername always. so that query will be
select Acc_Number, Account_Group,User_id from Accounts where user_id=CurrentCEusername
It will restrict the data pulled from DB to BV .. right? -
Hello Experts,
I am trying to test usage of f4 help function module.
We want to dynamically pass values from remote machines into the given input parameters of a Given Search help and receive the output into a table (no dialogs required .. so no pop ups )
I wrote a test program to just test if we can really do that at runtime ?
This program pops up the window of search help First I want to surpress that window and Second I have no clue
( How to pass the input parameters as value eg. 20 to a given field as we pass manually )
Can some one suggest something here ?
REPORT ZTEST_F4_TEST.
data lt_return TYPE TABLE OF DDSHRETVAL.
data ls_return TYPE DDSHRETVAL.
data lt_return_ddic TYPE TABLE OF zDDSHRETVAL.
data ls_return_ddic TYPE zDDSHRETVAL.
PARAMETERS ptable type tabname.
PARAMETERS pfield type fieldname.
PARAMETERS pshelp type SHLPNAMe.
CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
EXPORTING
tabname = ptable
fieldname = pfield
SEARCHHELP = pshelp
* SHLPPARAM = ' '
* DYNPPROG = ' '
* DYNPNR = ' '
* DYNPROFIELD = ' '
* STEPL = 0
* VALUE = ' '
MULTIPLE_CHOICE = 'X'
DISPLAY = 'F'
SUPPRESS_RECORDLIST = 'X'
* CALLBACK_PROGRAM = ' '
* CALLBACK_FORM = ' '
* SELECTION_SCREEN = ' '
* IMPORTING
* USER_RESET =
TABLES
RETURN_TAB = lt_return
* EXCEPTIONS
* FIELD_NOT_FOUND = 1
* NO_HELP_FOR_FIELD = 2
* INCONSISTENT_HELP = 3
* NO_VALUES_FOUND = 4
* OTHERS = 5
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
data lv_count type i.
delete lt_return where fieldname <> pfield.
sort lt_return by fieldval.
delete ADJACENT DUPLICATES FROM lt_return COMPARING fieldval.Hello Sim,
We will be exposing the Input parameters and Output lists of the SAP Search helps (simple search helps only) as input output of a Webservice.
So I need to understand how can we exploit the SAP Search Helps ?
What function modules can take these inputs as structures and can provide the output in form of a table ?
Regards,
Ravi -
Hi,
I want to pass value of kromosom which is an int array to myValue which is int. How to cast the kromosom?
myValue = kromosom;I want to pass value of kromosom which is an int
array to myValue which is int. How to cast the
kromosom?Just out of curiosity. How did you expect that to be possible? You have an array of many ints and now you want to squeeze all of them into just one int?
Or do you want to read one int from the array and assign it to an int variable? This is how you read the first one,
myValue = kromosom[0]; -
Anyone knows how to pass value from Java to Perl program?
Did you write the perl program? Can you change it? Or are you trying to interface to something that already exists? This will limit your options, of course.
Anyway the first option is simple. The java program does this:
System.out.println("This is a line of input.");The perl program does this:
while(<>)and in that block, $_ is assigned to each line of input.
Then you can invoke both like this:
$ java MyJavaProgram | perl MyPerlProgram.pl -
Pass Value from Excel to custom program
Hello,
I want to pass value from Excel to Custom Program being called in the Custom Integrator and i am using the Import in the Importer section but it is not getting passed.
Please advise and i am on R12.1.3.
ThanksPl do not post duplicates - Concurrent Program Parameter
-
How can u pass value in SAP Script?& where?
Hi,
PASSING TABLE VALUES AS AN ARGUMENT TO SAPSCRIPT:
In the line editor, specify the table field arguments enclosed by '&' symbol as follows:
/E ELEMENT
&KNA1-KUNNR& ,, &KNA1-NAME1& ,, &KNA1-LAND1&
Save -> Activate.
In the Print Program, specify following code:
TABLES KNA1.
CALL FUNCTION 'OPEN_FORM'
EXPORTING
FORM = 'ZSHABFORM1'
LANGUAGE = SY-LANGU.
SELECT * FROM KNA1.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'ELEMENT'
WINDOW = 'MAIN'.
ENDSELECT.
CALL FUNCTION 'CLOSE_FORM'.
Save -> Activate -> Execute.
Regards,
Priya. -
How can I pass values from one node to another
Give a standard and efficient way to pass values from child to parent
hai Prathap
You can use the custom event for passing values from child to parent -
I need to pass value for Actual GI date field in VL01N t code, I am using BAPI_DELIVERYPROCESSING_EXEC. can any one tell me how can i pass vaule ?
Hi Abdul,
Sorry for my unprecise answer, but you talk about a tcode, but you're using a BAPI Call. Maybe you want to call the transaction in batch mode?
http://help.sap.com/saphelp_erp60_sp/helpdata/de/fa/09715a543b11d1898e0000e8322d00/content.htm
Regards,
Franz -
Hello,
I want pass value in STATUS and Reason for rejection according to requirement when i am creating multiple lead using BAPI_LEAD_CREATEMULTI. Please help me how can i pass value. Please give some sample code that in which table i have to pass values and please also tell me INPUT_FIELDS values. Please help me
Regards,
Kshitij RathoreHello,
Please help me for solve this problem. I am trying to solve problem from last 4 days but i didn't get any solution.
Regards,
Kshitij Rathore -
Using Form to pass value to query parameters in the selct part of query
I created a form in Access 2007 to pass 2 values to an Access query. I am doing this to create delimited output (very large) with the parameters included in the selected data. The select works and is something like this:
SELECT "^"+!FORM!EXPORT2DAT!PREF_VALUE+"_"+Replace(UCase([column_1])," ","_")+"^|" AS OUTPUT_column1, "^"+!FORM!EXPORT2DAT!COMPANY_VALUE+[COLUMN_3]+"
([COMPANY_VALUE])"+"^|" AS OUTPUT_column2,....................
The form has text boxes for the values I want to pass PREF_VALUE and COMPANY_VALUE to the query parameters, and an execute button to open the query when clicked.
However when I enter the values and click the execute button, I still get the parameter boxes for the 2 parameters. 1 for this: !FORM!EXPORT2DAT!PREF_VALUE, and FORM!EXPORT2DAT!COMPANY_VALUE. I thought I was filling in with the form text box values.
Can I use the form's text boxes to pass values to concatenated using(+) columns in the select part of the query as I'm doing above?
Thanks in advance for your response.I have never seen a select statement like that!
For query criteria I would use this --
[FORMS]![EXPORT2DAT]![PREF_VALUE]
and [FORMS]![EXPORT2DAT]![COMPANY_VALUE]
Build a little, test a little
Maybe you are looking for
-
Problem occurs after updated to new mac os x 10.7.4
I Brought my first Macbook (15-inch) and 3 days before i updated my mac os x to 10.7.4 after installing the new mac os x,my mac is got slow its gettig time to stat and the others process like opening system preferences,adjusting volume,opening applic
-
I've just been given a new project which is to take an ASP site and convert it to CF. Sounds easy enough...but I can't get the CF variables to work/display. Here's what I've done so far: 1 - Copied all ASP and associated site files to a new developer
-
ORA-20000: cannot find the dimension
Hi, While trying to install Oracle 11g R2 Single Instance Database on Solaris 10 (sparc) got following error: [Thread-10] [ 2012-07-14 20:57:33.395 EEST ] [CloneDBCreationStep.executeImpl:650] ** INSTALL SAMPLE SCHEMA'S ** [Thread-10] [ 2012-07-14 20
-
I was looking in console.log and under the crashreporters in the following logs, ~/library/logs,/library/logs and /var/logs, there are lists of crashes. 4 in ~/library/logs, 2 in /library/log and a long list in /var/logs crashreporter.log. Also, ther
-
Archive and Install problem (not enough disc space for another install)
Alright, so I've got the blue screen. I tried getting rid of the APE stuff, and they were all successfully deleted, but it's still the blue screen. So I'm going to do the Archive/Install thing. My problem is that if I try to do an Archive and Install