Pass values from badi to a z report
hi expets,
i am using badi 'ME_REQ_POSTED ' for some requirement but i need to capture the doc no posted in this badi and store it in a variable and use it for further processing in a bdc , can anybody help me out for this , i am new to abap objects .
thanks
reagrds
This is used in same way as in classic approach. You can export/import entire table as well.
"in BADI
EXPORT mem_tab = "pass your table here
TO MEMORY ID 'ZMY_MEM_ID'.
"in other program
data: itab type table of ....
IMPORT mem_tab = itab
FROM MEMORY ID 'ZMY_MEM_ID'.
"here you have your ITAB with data inside
Regards
Marcin
Similar Messages
-
Passing values from column formula to other report
Hi Experts,
we have created a report with table view as
Month Asia_Sales Europe_Sales Total
2012-12 1234 4566
2012-11 4546 7897
Asia_sales = filter(sales where region='Asia')
Europe_Sales = filter(sales where region='Europe')
now i have created a child report,with action link on asia_sales and europe_sales
month customer sales
2012-12 abc 111
this report shall have filter based on column clicked (i.e when user click on asia_sales report shall show data related to asia only)
please enlighten any approach to achieve thisOther work around is to keep the Region column as Dimension in the pivot table (in column section) and use common measure.
it will be piovite table having
...............Asia..............Europe..........xyz
month.....measure........measure....measure
2012-01......220.............300...........955
2012-02.....3434...........5485.........656
here the measure will be common.
I this case if you click on measure, region column will also be prompted. You can use Is Prompted for month,region in sub report.
In your old case region wont be prompted.
Mark if helps/Correct
fiaz
Edited by: fiaz0419 on Jan 9, 2013 12:20 PM -
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? -
Passing values from main report to sub-reports
- How do we pass values from main report to sub-report?
Look at this link which shows how to pass values from a subreport to a main report.
http://www.datamanagementgroup.com/resources/trainerstalk/trainerstalk_howto_share_subreport_data_with_main_report.asp
You can use the same method to pass values from main report to a subreport.
1) Create a formula @mainFormula in the main report, as given in item 1 of link.
2) Place this formulla in a suppressed report footer section above the target subreport.
3) In the subreport, create a formula @subFormula that declares the same variable name, as given in item 3 of link.
4) Place @subFormula column in the subreport where you want to display it. -
We have a process in SRM where incoming IDOCS are coming in from an external source. In our Z function module the BBP_DOC_CHANGE_BADI is called and we need to pass a value to DOC_CHANGE_BADI to make sure we process only code for this process.
Options:
1) EXPORT/IMPORT To Memory ID - Did not work
2) EXPORT/IMPORT TO INDX - Did not work, we processed 10 idocs at once and memory got lost during 1 update.
3) Write to Z table in Z FM, and then read table in BADI. Current solution.
4) Tried to use field symbols (FM(field1) didnt work.
Any other ideas?Hi Divya,
Based on the current description, I understand that there is no issue if you pass two values from main report to subreport, while the issue occurs when passing one value to subreport.
To narrow down the issue, I want to confirm whether the subreport can run if there is only [0] or [1] in the subreport. If so, it indicates the query statements exist error in the subreport. If it’s not the case, this shows the issue occurs during passing
values from main report to subreport. To make further analysis, please post the details of query statements of the subreport to the forum.
Regards,
Heidi Duan
Heidi Duan
TechNet Community Support -
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 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. -
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'
-
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 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 -
Re: Help needed in passing values from workflow to Approve Forms
Dear Experts,
how do I pass values from a workflow to a step (Form) - approve form?
I am using a customized table structure as my data source (FORMCONTAINERELEMENT) but am stuck on how to access the data when i get to to the screen painter's flow logic... What am i missing? Can you give me a step by step example. the ones i see on the net are input fields that update the screen... nothing that shows value being passed from the outside.
I need to pass an exisitng value in the workflow into the form for approval of the the assigned agent.
Please help!!
Thank you.Hello !
Create a method just before the form step.This method should populate the values for the fields maintained in the form.
Pass the values populated from this method to your customized table structure (data source).In other words, you have to pass all the values to the workflow container.
To the step, pass this workflow container by binding.In the control tab of form step, you have to do the binding.
Regards,
S.Suresh -
Passing value from Webdynpro ABAP to Adobe form..
Hi experts,
In first view of web dynpro, im getting employee id as input and after clicking the create new button, an adobe form is called
to create the employee details ( in form i used the submit button and i stored the details ). so, in tat form i used the employee id as read only mode and it has to display the value which i given as input. But in tat form im not getting the value from web dynpro..
can anyone plz help me out for this..
Thanks in advance..Hi,
Try to set your values in Method->"wddomodify" of the View in which Adobe Form is present. If you want to pass values from one view to another then check this link [Passing Local Parameters between views in an ABAP Web Dynpro Application|http://wiki.sdn.sap.com/wiki/display/stage/PassingLocalParametersbetweenviewsinanABAPWebDynproApplication] or use Context declared in Component Controller.
Regards
Pradeep Goli -
Passing value from JSP to JApplet
Hello,
I am stuck up with a problem, can anyone please tell me how do i pass a value from a JSP page
to a JApplet,
and the parameter passed through JSP should be displaed in the JTextArea.
It would be kindful if any of you could help.
Thanks
Sanamhello,
thanks for reply.
I know how to pass parameters from html,
I want to pass values from jsp page,
and i dono how to do it, may be we cann pass values through url connection but i dono how.
if anone knows plz help me in solving this.
i hvae posted my applet code.
import javax.swing.*;
import javax.swing.event.*;
import javax.swing.JToolBar;
import javax.swing.JButton;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JTextArea;
import javax.swing.JScrollPane;
import javax.swing.JPanel;
import java.awt.*;
import java.awt.event.*;
import java.io.*;
import java.net.*;
import java.sql.*;
<applet code = "DocApplet" width = 500 height =5000>
</applet>
public class DocApplet extends JApplet
private JPanel jp;
private Container cp;
private JTextArea jt;
private JToolBar tb;
private JScrollPane sp;
private String annotation;
private String url;
private Connection con;
private Statement stmt;
public void init()
jp = new JPanel();
cp = getContentPane();
jt = new JTextArea();
tb = new JToolBar();
sp = new JScrollPane(jt);
repaint();
public void start()
jp.setLayout(new BorderLayout());
jp.add(tb, BorderLayout.NORTH);
jp.add(sp, BorderLayout.CENTER);
jt.setBackground(Color.BLACK);
jt.setForeground(Color.WHITE);
setContentPane(jp);
addButtons(tb);
repaint();
public void run()
repaint();
public void paint()
private void addButtons(JToolBar tb)
JButton button = null;
button = new JButton("Save");
button.addActionListener(new ActionListener()
public void actionPerformed(ActionEvent e)
tb.add(button);
} -
How to Pass values from XML to JSP??? Urgent Please Help me
Hi guys,
I am new to XML, I want to pass values from XML to JSP. I have a xml file with attributes, I should send this values to a JSP file. How is it??? Please Help guys.... its very urgent. Please send me how to do it with an example or atleast any urls related that....
Looking for ur favourable reply.
Thanks in advance,
Sridharin a servlet :
parse your xml file (see how at the end of the post) and
put the values you want in the request attributes
request.setAttribute("value1", value1);
...redirect to the jsp
in the JSP:
get the wanted attributes:
String value1=(String)request.getAttribute("value1");To learn how to parse a xml file, pay a look at this page, it explains how to read the XML document to build an object representation, and then how to navigate through this object to get the data
http://labe.felk.cvut.cz/~xfaigl/mep/xml/java-xml.htm
Maybe you are looking for
-
How to display 0 Percentage in BEx Query Designer
The BEx queries which I'm doing are ported to EP & client views all charts & data in portal only. I have a small requirement. My client requires to display 0% in the data output. Sample data is like Mon/Grade A | B | C | D | E | F " T
-
Open script : selectbyindex list
Hi how to parameterise the value if the action is selectbyindex list. We have application on forms. Im using the OLT protocol to record them. Form has drop down list while recording I choose the value for selectbyindex list to 'zero' iefirst element
-
if i go to a site and click on a link in the site - sometimes the back button is not there. If I try to close the top window to go back to the original site, it warns me I'm going to close both windows. I only want to close one but don't know how so
-
Strange Problem with datagrid item renderer in flash palyer 10
Hi All In Flash player 10 when i use a text input as a item renderer in grid with a custom textinput skin , it does not show us the text , where as in flash player 11 it shows us. is there any work around for it or it's a bug. Plz help me on this.
-
Iphone 3GS has "169..." IP address after replacing old Airport Express
My 3GS is no longer connecting to my home network after replacing my old airport express. Previously my old G5 iMac would have problems connecting to the old airport express, BUT my iPhone 3GS would reliably connect. After installing this new airport