Successor of CALL DIALOG statement?
Hi Experts,
We used to have a statement called CALL DIALOG in previous versions which was helpful in the following ways:
1.Calling a dialog program(module pool) from another program.
2.Data Traffic between two programs.
3.Both program work in Same LUW.
THIS STATEMENT IS NOW OBSOLETE !
Now i have a legacy program doing the same activity where the dialog program is being called using the calll dialog technique into a FM and which in turn is being called in a user exit.
I have done research but could not find an alternate to this technique.
Any one out there got some solution to this?
Thanks,
Sachin
Hello Ramond,
Thanks for your answer.
I do have this idea in mind but thanks for sharing it.
The only problem here is the program i need to call is already working and morever from a diffrent workstream so i do not have a control over it.I could only request the other developer to analyse this option as well.
I was thinking of any other option that we might have to achieve this.
Thanks,
Sachin
Similar Messages
-
What is call dialog method of data transfer? Is it a tyqe of batch input method?
hi mathew,
This may be helpful to u
CALL DIALOG
Syntax
CALL DIALOG dialog [ {AND SKIP FIRST SCREEN}
[ {USING bdc_tab [MODE mode]} ]
[EXPORTING p1 FROM a1 p2 FROM a2 ...]
[IMPORTING p1 TO a1 p2 TO a2 ...].
Extras:
1. ... AND SKIP FIRST SCREEN
2. ... USING bdc_tab [MODE mode]
3. ... EXPORTING p1 FROM a1 p2 FROM a2 ...
4. ... IMPORTING p1 TO a1 p2 TO a2 ...
Effect
The statement CALL DIALOG calls the dialog module whose name is contained in the character-like data object dialog. The data object dialog must contain the name in uppercase. If the dialog module specified in dialog is not found, an exception that cannot be handled is raised.
When calling the dialog module, the assigned ABAP program is loaded in a new internal session. The session of the calling program is still available. In contrast to CALL TRANSACTION, the called program runs in the same SAP LUW as the calling program.
After loading the ABAP program, the event LOAD-OF-PROGRAM is triggered and the screen defined as the initial screen of the dialog module is called. The dialog module is terminated when the corresponding screen sequence terminates upon reaching the next screen with screen number 0 or the program is exited using the statement .
Note
Dialog modules are the only language resource that can be used to open a new session without changing the SAP LUW. Be aware of the following:
The statements COMMIT WORK and ROLLBACK WORK cause database commits or database rollbacks in the called program. However, the procedures registered with CALL FUNCTION IN UPDATE TASK and PERFORM ON {COMMIT|ROLLBACK} are not executed until the execution of the corresponding statements in the calling program.
In the called program, SAP locks are adopted by the caller.
Addition 1
... AND SKIP FIRST SCREEN
Effect
Under the same conditions as for the statement CALL TRANSACTION, this addition surpresses the display of the screen of the initial screen. If the called dialog module has input parameters for the obligatory input fields of the initial screen, they can also be filled using a parameter transfer instead of SPA/GPA parameters.
Addition 2
... USING bdc_tab [MODE mode]
Effect
This addition controls the called program as in the statement CALL TRANSACTION using the specification of a batch input folder in an internal table bdc_tab of the line type BDCDATA. In this case, only MODE can be used as an addition for the control of the batch input processing.
If a message is sent in the called program, this message is available in the system fields sy-msgid, sy-msgty, sy-msgno, sy-msgv1, ..., sy-msgv4 after the call.
Addition 3
... EXPORTING p1 FROM a1 p2 FROM a2 ...
Addition 4
... IMPORTING p1 TO a1 p2 TO a2 ...
Effect
These additions can be used to assign the appropriate actual parameters a1, a2, ... to the formal parameters p1, p2, ... of the dialog module. The formal parameters of a dialog module are always optional. They can have all data types except for reference types.
When loading the called program, the values of the actual parameters are assigned to the global data objects of the called program that are defined as formal parameters. If this data is associated with screen fields of the same name, they are not overwritten by possible SPA/GPA parameters. If you specify IMPORTING, the system field sy-subrc is implicitly adopted by the called dialog module and unknown formal parameters are ignored by the system.
Note
Outside of classes, the additions FROM a1, FROM a2, ... und TO a1, TO a2, ... in the parameter lists can be omitted if the formal parameters and actual parameters have the same names.
Example
Calling a dialog module DEMO_DIALOG_MODULE which is associated with the program SAPMDEMO_TRANSACTION.
DATA spfli_wa TYPE spfli.
spfli_wa-carrid = 'LH'.
spfli_wa-connid = '0400'.
CALL DIALOG 'DEMO_DIALOG_MODULE'
EXPORTING
spfli-carrid FROM spfli_wa-carrid
spfli-connid FROM spfli_wa-connid
IMPORTING
spfli_wa TO spfli_wa.
Exceptions
Non-Catchable Exceptions
Cause: Parameter name is too long.
Runtime Error: CALL_DIALOG_NAME_TOO_LONG
Cause: The called dialog module is unknown.
Runtime Error: CALL_DIALOG_NOT_FOUND
Cause: The called dialog module contains errors (incorrect entry in table TDCT).
Runtime Error: CALL_DIALOG_WRONG_TDCT_MODE
Cause: No further paging area for parameter transfer available.
Runtime Error: CALL_DIALOG_NO_CONTAINER
Cause: The statement CALL DIALOG ... SCREEN ... PROGRAM ... is not supported.
Runtime Error: CALL_DIALOG_SCREEN/PROGRAM
regards,
sravanthi -
Hi Experts,
I am facing a problem in opening an attachment in WD abap.
Actually i need to open an attachment from my WD abap screen , as like standard does .
Standard is using
call dialog 'SO_DOCUMENT_VIEW_MANAGER'
and passing some values in it, and automatically the file opens. When i tries the same thing in WD Abap nothing happens.
I need help in the same thing in WD abap .
Thanks in advance..Yes, but not sure.
if you are able to convert the function module output into xstring format, then you can display the same in pdf format using adobe interactive UI element.
Regards
Srinvias -
How to call UPDATE statements in the timesten
Hi i want to know how can i call UPDATE statements from the c program
as of now i am using SQLPREPARE and SQLEXECUTE for the same.
but i get the following error.
Is there any special way of calling UPDATE and INSERT routines.
As my select statements are doing fine, but i m getting error with UPDATE and INSERT. I am getting the following error
Can Anyone guide me ?
========================================================
[TimesTen][TimesTen 6.0.4 ODBC Driver][TimesTen]TT5102: Cannot load backend library 'libttorD.a' for Cache Connect. OS error message 'Symbol resolution failed
for /disk3/users/timesten/TimesTen/TT_EUDEV10G/lib/libttorD.a because:
Symbol ora_ldap_unbind (number 224) is not exported from dependent
module /disk1/users/oracle/product/9.2.0/lib/libclntsh.a[shr.o].
Symbol ora_ldap_memfree (number 225) is not exported from dependent
module /disk1/users/oracle/product/9.2.0/lib/libclntsh.a[shr.o].
Symbol
*** ODBC Error/Warning = S1000, Additional Error/Warning = 5102
*** (Note: error message was truncated.
Disconnecting from the data source...
==========================================================Hi,
It looks like you are using either :
1. A READONLY CACHE GROUP with PassThrough > 0.
or
2. An SWT CACHE GROUP
Is that correct? This looks like a mismatch between the TT Oracle library and the version of the Oracle client that you have installed (or maybe a bad setting of LD_LIBRARY_PATH).
What is the exact version of TimesTen you are using (output of ttVersion command)?
What is the exact version of Oracle?
Thanks, Chris -
How to replace 'CALL DIALOG' with 'CALL TRANSACTION'
IF NOT bkpf-bukrs IS INITIAL.
CLEAR buztab.
REFRESH buztab.
buztab-zeile = bseg-buzei.
buztab-bukrs = bkpf-bukrs.
buztab-belnr = bkpf-belnr.
buztab-gjahr = bkpf-gjahr.
buztab-buzei = bseg-buzei.
APPEND buztab.
buztab-zeile = bseg-buzei.
x_nochange = 'X'.
CALL DIALOG 'RF_ZEILEN_ANZEIGE'
EXPORTING
buztab
buztab-zeile
tcode FROM 'FB03'
x_nochange
IMPORTING
buztab
x_commit.
ENDIF.
CLEAR bkpf.
CLEAR bseg.
The above given is the part of a code. I need to replace the CALL DIALOG part with CALL TRANSACTION. Can any one plz suggest me how to go ahead with it?Javascript. window.open();
-
How to call SQL statements in InDesign CS6?
Hi,
My plug-in needs to interact with the database, and update the database content, how should I do, can I call SQL statements in InDesign CS6?
Thanku very much.The same way you'd call them from any C++ program. You don't mention which platform, and that probably makes a difference.
I'm accessing an SQL database in InDesign CS6 on Windows. I'm using the ODBC interface to SQL database that Windows provides, via the nanodbc wrapper. So I'm linking to odbc32.lib and odbccp32.lib, and including the nanodbc.cpp and nanodbc.h files. (See http://lexicalunit.github.io/nanodbc/ )
Paul. -
Calling dialog program from report
Hi All,
I need to call dialog program from report and do not want the initial screen to be shown and execute the dialog program. can this be possible, if yes please let me know this to do this, when I tried using leave to transaction its showing the initial dialog screen.
Thanks in advane
jogHi,
Create a Z trnsaction Code for the Transaction you want to call.
Go to SE93. Give Transaction name and click on create.
Select start object as 'Transaction with Variant' or 'Transaction with Parameter'.
On second screen give transaction name and check the <b>check box for 'Skip initial screen'</b>.
Find out the initial screen for the transaction and mention it.
Now, you can call this Z transaction in your program. -
How can I make a BAPI work in a CALL DIALOG ?
Since a call dialog opens in the same SAP LUW The Bapi
BAPI_OUTB_DELIVERY_CHANGE does not work, Neither does using WS_DELVIERY_CHANGE.
Please suggest an alternative
ThanksNo, A 'BAPI_COMMIT' will not work because as long as one is in a 'CALL DIALOG' one is in the same SAP LUW and only when one starts a new SAP LUW does an SAP commit ( changes are saved) take place.
thanks for the reply though but my problem is still unsolved. -
Help on CALL DIALOG 'RF_ZEILEN_ANZEIGE'
Good day everyone!
I am having problems with my code. I tried using
CALL DIALOG 'RF_ZEILEN_ANZEIGE' but whenever I run the program, it always gets dumped. The error goes something like this...
<i>"A dataset can only be imported to a target area with the same structure
as the data in that dataset. If the target area is longer or shorter
than the dataset, see the documentation on the ACCEPTING PADDING and
ACCEPTING TRUNCATION additions.
If the error occurred in one of your own programs or in an SAP program
that you modified, try to correct it yourself. "</i>
This is how I coded it...
CALL DIALOG 'RF_ZEILEN_ANZEIGE'
EXPORTING
BUZTAB
BUZTAB-ZEILE
TCODE FROM 'FB03'
X_NOCHANGE
IMPORTING
BUZTAB
X_COMMIT.
I'd like to know if there is something wrong with how I used this call dialog.
Thank you very much in advanced.
>Christian<Good day Ravi,
Yes, the runtime error occured on this call dialog. There's one thing im a bit confused, do I have to put BUZTAB in the import parameter of the call dialog? Can you please give me the parameters used in Exporting and Importing? Thanks in advanced!
>Christian< -
Debugging call transaction statement
hi,
I am triggering a remotely enabled function module from a webdynpro application from portal. i am debugging this process from SM50 transaction. The function module has a call transaction statement calling VA42 transaction.
I tried below options and these did not work.
I tried changing the mode in debug mode to 'A'.
I tried to complete execution of this statement in background mode only, giving a breakpoint after this statement so that i can get bdcmsgcoll table and see the details.
But at the call transaction statement, the debug operation fails and the process is end abruptly.
Please tell me whether debugging for a call transaction statement from SM50 screen is possible and how?
Thanks in advance,
Padmini
Message was edited by:
Padmini ManickarajIf this is a custom code, modify it to write the contents of the internal table of type BDCMSGCOLL to a file in the unix system (the files that you can view using transaction AL11). The error message will probably give you an idea as to why the BDC has failed. Make sure that this piece of code should be executable only by you. This is just for debugging. You can remove this code after you have finished analysing it.
IF sy-uname EQ <your user id>.
...code to transfer data to the unix file
endif. -
Modify the Edit Sequence Call dialog
In TestStand v3.5, and/or v4.x, is it possible to modify the Edit Sequence Call dialog that comes up when using the SequenceCall Step type? If so, where is the source for this?
What we want to do is add help information to the Edit Sequence Call dialog by either adding a Help button and/or adding the Parameter comments from the selected sequence prototype, along with the Sequence comments, so that we can provide guidance on the sequence usage to the developer at edit time. I've looked everywhere I can think of in the Help and the folders in the TestStand (v3.5) directory (StepTypes).
Any help here would be greatly appreciated.
-JackHi Jack,
Thats a really good question !
In the new TS versions there are some "bulid-in" StepTypes. For example if you take a look at "Wait" in TS4.0 there is a buttton "Configure Wait" . In the new TS 4.1
the hole configure stuff is implemeted in the tab controls view like in the sequence adapter and the code modules. In the old TS 2.0 the sources where available. But in the new versions of TS 4.x
it looks different for me. Just take a look callexec. The shipped TS 4.0 uir looks completly different than in editor under the tab control.
Last year did a user step type. And to modify my stuff i had to click this stuip "Edit" button. I would like to have the same feature than the "build-In" one. But one change !!
After some reverse hacking of some TS ini and xml files. TS editor was always crashing with a .net exception. So in my mind all the "build-in" ones are .net components
like the hole Editor.
So i am very courius what our NI-Guys here are saying to your question.
Greetings and waiting for some "blue" anwsers.
Juergen
=s=i=g=n=a=t=u=r=e= Click on the Star and see what happens :-) =s=i=g=n=a=t=u=r=e= -
Get an error at calling dialog of reservation creation in SAP R/3
Hi experts,
Through SE35,I made a dialog module "ZMM_DIALOG_RE_CREATION".
Its program is SAPMM07R and screen number is 500.
I called this dialog module in my program "SAPMZMB21",the transaction code is ZMB21.
When I executed ZMB21,an error arised.
The error is "Check table 158:entry ZMB21 does not exist."
I found that SAP standard program of reservation creation checks the table T158.
My defined transaction code ZMB21 really did not exist in table T158.
So how should I do?This is development question.
You may not get an answer in this MM forum -
Handle to error object after calling the statement execute - SQLDBC
Topic related to SQLDBC inteface to MaxDB
=======================
In C++ while i was executing the statement
rc = stmt->execute("SELECT 'Hello SAPDB' from DUAL");
i could get a handle to the error object by a call to
stmt->error().getErrorText()
Now while using SQLDBC_C i am using
rc = SQLDBC_Statement_execute(stmt,tempstr,strlen(tempstr),encodAsciiType);
Now how do i get the handle to the error object ??
Call like the above one
fprintf(stderr, "Executed SQLDBC_Statement %s",stmt->error().getErrorText());
gives me compilation error:
error: invalid use of undefined type `struct SQLDBC_Statement'
/opt/sdb/programs/sdk/sqldbc/incl/SQLDBC_C.h:125: error: forward declaration of `struct SQLDBC_Statement'
Please Help and feel free to ask me if the question is not clear.
Regards
RajaSorry. This question doesn't make sense. So, i withdraw the question.
Basically what I had confused with earlier and got clarified now is:
Just like when we make a call to SQLDBC_Connection_connect and after that use the SQLDBC_Connection_getError to get a handle to the SQLDBC_ErrorHndl.
I wanted to know how should we get a handle to the SQLDBC_ErrorHndl after we have made a call to the SQLDBC_Statement_<function call>.
I got the answer after looking through the SQLDBC_C.h file. It will be SQLDBC_Statement_getError and similarly SQLDBC_PreparedStatement_getError.
Wish i could award myself the 10 points for solving the problem
Regards
Raja -
Create a link in a table calls sql statement
Hello,
I'm very new to htmldb but need to complete a project within a tight timeline. I created a sql report in a region. On each row, I have an on/off link, which used to trigger a sql statement. It turns a flag on and off in a table. Key needs to be passed with the link to be used in sql. How do I passed the key in the link and how can I call the sql statement? Where can I put the sql statement? Can someone give me some tips?
Your help is greatly appreciated!
Junif you take a look at the "Understanding URL Syntax" section in chapter 6 of our User Guide, you'll see that you can set item values in html db via the URL by passing name/value pairs through the url. to see it in action, use our "Report with links to form on a table (2 Pages)" wizard to generate a form and a report on some table of yours. when you run that report page and click an edit link on it, you'll see how it passes its values to the form page using our URL syntax. in your case you'd want to create an item like MY_PROD_KEY_ITEM and set its value via your link. you'd then run your pl/sql block referring to the value of that item. when doing so, you'd probably want to use the bind variable syntax that's also explained in chapter 6, "Referencing Session State".
--raj -
Call Dialog from another dialog
hi everyone
can anybody tell me how can we call one dialog from another dialog..
Is it possible...???
if it is, how we can we do ...please tell me with example
thanks in advanceIs it possible...???yes
if it is, how we can we do ...please tell me with example
public static void main(String[] args) {
JDialog parent;
for (int i = 0; i < 5; i++) {
JDialog d = new JDialog(parent, true);
parent = d;
d.setVisible(true);
}
Maybe you are looking for
-
How to get the version no. for service po?
Hi, How to get the version no. for service po?For material po we are getting the version from EKKO-REVNO but for service po Ekko-revno is blank. Regards, Rachel.
-
Problem in compiling aa servlet program
I have installed jsdk1.4.2_13 And also installed tomcat 5.0.28 I have set CATALINA_HOME==C:\Program Files\Tomcat\jakarta-tomcat-5.0.28 JAVA_HOME ==C:\j2sdk1.4.2_13 CLASS_PATH== C:\Program Files\Tomcat\jakarta-tomcat-5.0.28\common\lib\servlet-api.jar;
-
Tables not showing up in schema browser (3.0 final)
I don't know if this has been posted by anyone else, or if anyone else if having this problem, but if I expand the + under the Tables collection, I don't get any tables. I supposed that it was a filter problem because when I clear the filter, the tab
-
What is the maximum resolution Mac mini can support?
does it support 4k display? Intel HD Graphics 4000
-
How to create no-broadcasted guest account?
How can make my guest account SSID from being broadcasted like my master private account?? this for New 2009 Airport Extreme and Time Capsule. sorry if already asked and answered, please don't flame:) thanks!