Get RFCOPENEX return code long text
Hi All.
I want make an external connection with RFCOPENEX to SAP, but how can I get the message text to the return code directly from SAP?
THX, Nils
Hi,
you can use Function Module MESSAGE_TEXT_BUILD as:
CALL FUNCTION 'MESSAGE_TEXT_BUILD'
EXPORTING
msgid = g_msgid
msgnr = g_msgno
msgv1 = g_msgv1
IMPORTING
message_text_output = g_message.
Message text will be in g_message.
regards,
Neha
Similar Messages
-
How can I get the return code of SQL*Plus under Win2000Pro
How can I get the return code of SQL*Plus under Win2000Pro ?
In a DOS batch script? Try ECHO %ERRORLEVEL%
-- CJ -
How to get the medium and long text for PRODUCT HIERARCHY?
hi experts,
i am using data source called 0prod_hier_text. in ECC there is description for medium and long.
but in BW it is mapped to 0TXTSH which is short text, and in the transformations medium text is mapped to short text of BW (0TXTSH) which is having length only 20.
IF it exceeds more than 20 it is now showing.
so how to get add 0TXTMD which is medium text so that i can see the description for MEDIUM.
i did try to add to 0PROD_HIER but i cannot add.
i need to show medium text description in the Report.
plz provide me the input.
regards
venuscmHi Venu,
Check in RSD1 screen which text you have chossen .....for object 0product
try to check for medium & long text(if not checked) ..
so that you can add mdtxt & long txt in transformations........
hope this will help you.
Thanks,
Vijay. -
How to get the service master long text from the AC03
Hi All,
we are using the FM READ_TEXT to read the long text for service master which is maintained in AC03 ,Please can any one suggest me how to do the same.
Get long description
CALL FUNCTION 'READ_TEXT'
EXPORTING
id = LTXT
language = EN
name = '003000124'
object = 'ASMD'
TABLES
lines = litab_line
EXCEPTIONS
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
OTHERS = 8.
Regards
cbHello
Try this:
CALL FUNCTION 'READ_TEXT'
EXPORTING
id = 'LTXT' " <- '' missed
language = 'EN' " <- '' missed
name = '000000000003000124' " <- 18 symbols must be here
object = 'ASMD'
TABLES
lines = litab_line
EXCEPTIONS
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
OTHERS = 8. -
Catalog Code long text - transport issue
Hi,
We appear to have a strange issue when transporting Catalog C
ode long text in our clients DEV system. I have followed the advice given in SAP Note 38570 by creating a transport, adding the entries to the transport and then using program RSTXR3TR to export/import. Entries QKATALOG,QPGT and QKATALOG,QPCT have already been added to table TTXCP and program RCTXTCPY has been run.
The issue appears to be when displaying the long text we have format issues and a message appears saying 'Unable to call PC editor (unknown paragraph format <0>)'
We have created the long text in our
config client and when this is transported to our data clinet (both in the DEV environment) the export/import program appears to work OK but the long text is not changed?
As our data client is locked down for configuration changes how can we change the format issue (apart from opening up the data client - I want to avoid this as we will need to open the QA client and also the PRD client!!)
Any advice welcome!!
Gary BGary
A quick Google search found these:
Define code groups for catalog types
Long Text for Catalog
Hope its helpful..
PeteA -
Transport of code long texts - QKATALOG
Hello,
I want to transfer the long texts for the defct codes in QM.
There are two SAP notes about this 38570 & 61049.
I am aware of the usage of long text transfer. Do that for several other texts regularly.
I noticed that there is a problem in the name determination. As the ID is looked up by client it will never find it when the source client is different than the target client.
Example text object name: 2009ZDC001 101 000001E
The first three digits are the client. Greate we have different source and target system client.
I actually used the old program RSTXR3TR and replaced the client in the file and it worked.
Does any one know SAP correct standard solution.
I can not instruct our people replacing text file values. Especially not when those are quite lots of texts we right now transfer.
Thanks for any help.
VolkerHello,
I want to transfer the long texts for the defct codes in QM.
There are two SAP notes about this 38570 & 61049.
I am aware of the usage of long text transfer. Do that for several other texts regularly.
I noticed that there is a problem in the name determination. As the ID is looked up by client it will never find it when the source client is different than the target client.
Example text object name: 2009ZDC001 101 000001E
The first three digits are the client. Greate we have different source and target system client.
I actually used the old program RSTXR3TR and replaced the client in the file and it worked.
Does any one know SAP correct standard solution.
I can not instruct our people replacing text file values. Especially not when those are quite lots of texts we right now transfer.
Thanks for any help.
Volker -
Hi,
Is there any standard report or LIS available which gives the service code(AC03) : long text in report form..
Regards
Vikrant
Edited by: VIKRANT HANDE on Dec 17, 2010 10:10 AMHi,
There is no standard report for showing that detail. You have to develop your own report using the function module READ_TEXT where ID = LTEXT, NAME = Activity code with leading zeros for making the total length to 18, OBJECT = ASMD, LANGUAGE = Respective language
Regards, -
LrTasks.execute not getting correct return code
Hi all,
I'm writing an Export Filter Provider that, in the postProcessRenderedPhotos function, calls an external Python script like this:
exitStatus = LrTasks.execute(command)
log:debug("Task returned, exit status is " .. exitStatus)
if exitStatus ~= 0 then
At the end of my Python script, I use
sys.exit(0)
and have verified that running of the script indeed returns 0 by running it in the shell and then checking the return code
echo $?
returns 0
Whenever I run this script from my Export Plugin, I always get an exitStatus of 256. Any ideas on what I'm doing wrong? Thanks!I would first assure that in the Lightroom case as well, the script is executing up to the sys.exit statement as well - I suspect it is not (but don't really know...).
I have called python scripts from plugins both successfully and unsuccessfully, although I can't be certain I've checked the actual return code from the sys.exit command.
Consider trying an ultra-short script which writes to a file and exists with a code - make sure you can read the file in your plugin before assessing the return code.
If still a problem, report as bug on Adobe feedback site of course:
http://feedback.photoshop.com/photoshop_family/topics/new
Rob -
Getting the return code of an exec-called program
I'm trying to simply call an .EXE (Win32 console-) application from LabView 5, which works fine with EXEC. The problem is, that I cannot query the return code of the program afterwards. (The error output is always 0, no matter what the program has returned.) Anyone knows a nice short solution to that? Thanks!
Hi Ritter,
Somehow I think I may be missing something.
(after looking around)
What version of LV are you using?
I am guessing 5.1 or earlier.
LV 6 EXEC has standard output available.
If you are using LV 5.1.1 or so, I can only recomend the the re-directed solution.
If file system is issue how about using a complete file spec starting with "c:"? Do you expect to be running on a machine that does not have a c drive?
Ben
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction -
Where can I get the source code of Text Layout Editor?
Hi, Guys:
I just want to design horizontal or vertical rulers that are exactly same as the one I see in the Text Layout Editor.
Please see the url: http://labs.adobe.com/technologies/textlayout/demos/
But I cann't download any source code. Does anyone know if it's possible to get it? Thanks.And now it is possible: http://blogs.adobe.com/tlf/2009/12/new-and-updated-tlf-samples.html
-
Why do I get a return code of 4 from DS_GetDataValue( ) in CVI?
Using polling DSTP string variable to receive data transferred from localhost DSTP server, the server returns error code 4 not 0. Using DS_GetLibraryErrorString( ) to query the server on error number 4, the error message returned is "The operation completed successfully."
Since no error is usually returned as 0, I am a little surprised to see errorcode 4 being used to tell me that no error occurred.Hi mpencke,
The DSTP uses the HRESULT information to determine its error codes, and you can find all of the documentation on those error codes in cvi\toolslib\datasock\dataskt.h and cvi\sdk\include\winerror.h. An actual Success code appears to be 0, while an error code of 4 appears to be the code for too many files being open. It could be other numbers are coming into place, or maybe a question of timing. Maybe we could take a look at the snippet of code in question and where it is located within your project, and what is going on we could look further into the issue.
Regards,
James W.
Applications Engineer
National Instruments -
Getting return code from remote script after Unix rsh call
I hope one of you guys can help me with this issue. I think I've gotten the 'rsh' command to work from the CES application so that the sqr report generation can execute on a remote machine (instead of the app server machine). I'm actually doing this by having the app still execute the ces_sqr script, however, now the ces_sqr script will just have an 'rsh' command in it which will cause the actual real sqr processing to occur remotely.
I am executing a Unix script which does a remote shell call to another script on a remote machine. The remote script sends a return code when run locally, however, how can I get the calling rsh script to get that return code?
If I do the following in the rsh script:
rsh -l resdev morph "/dev/bin/remote_script"
rc=$?
echo "$rc\n"
then the return code that I get is not actually the return code from the remote_scrpit, but it is the return code from the rsh command that is 0 (success) because the rsh command actually executed successfully even though the remote_script could've returned something other than success. How can I get the return code from the remote_script passed back to the rsh calling script?
Jan Miller
[email protected]
202-237-9584Please ignore the first paragraph of my previous post.
-
Getting Return Code for cl_gui_frontend_services= execute
Hey,
im using the static method cl_gui_frontend_services=>execute to start a program locally. The program is openens synchronously and i need to get the return code of the program. I mean not the one from the method-call but from the external tool on OS-level.
Is there a way to get that one ?
Thanks and regards,
oliverwell seems there is no way...solved it now over a result-file which is get written by the called tool and later read by sap.
-
Getting return code from subprocess execution
Hi,
I am executing a batch file as a subprocess and need to get the return code from it.
The batch file executes a java class, which exits (System.exits(rc)) with a return code on error and how this can be captured in the calling program.
i am calling the batch file as follows: (fragment)
Runtime r;
process p = r.exec(execCmd, null, mqsiToolFile);
istr = p.getInputStream();
br = new BufferedReader(new InputStreamReader(istr));
returnCode = p.waitFor();
System.out.println("exit value: "+p.exitValue());
This successfully executes the subprocess and always returns with code '0', even though the sub-process exits with a code >0.
p.waitFor() or p.exitValue() - doesn't giving the exit value of the subprocess.
How can i capture the exit value (System.exit(rc)) from the sub-process.
I am running the app on Windows NT4 sp6
Any help would be greatful.
Thanks in Advance.Peter,
can u be more explanative on this, i can see the run time result (0, 1). But couldn't get familiar on the sample you have given.
My code is as follows:
Process p = null;
Runtime r = Runtime.getRuntime();
for loop {
execSubProcess(.., .., ..)
public int execSubProcess(String excmd, String[] env, File fileDir) throws Exception {
int res = 0;
try {
System.out.println(excmd);
p = r.exec(excmd, null, fileDir);
istr = p.getInputStream();
br = new BufferedReader(new InputStreamReader(istr));
line = null;
while ((line = br.readLine()) != null) {
System.out.println(line);
res = p.waitFor();
System.out.println("sub-process return code: "+p.waitFor());
System.out.println("sub-process exitValue: "+p.exitValue());
} catch (Exception e) {
throw e;
return res;
Here i get all the time 'res=0' , even though the subprocess execCmd exits with a return code > 0.
Is tehre any environment setup or ..needed to capture the subprocess exit code val (System.exit(rc)) in the calling program.
Please provide more details as per ur convinience.
thanks -
Create long text for network activity
Hello,
I'll create a long text for a network activity, but I found no BAPI for that.
When I create long text for an order activity I use the BAPI BAPI_ALM_ORDER_MAINTAIN. There it is possible to specifiy the long text lines.
In the BAPI BAPI_NETWORK_MAINTAIN there ist no table for specifying long text.
Did anyone know how to create a long text for an network activity?Hello Vivek,
I'll tried this too. My problem was, if I add long text to a existing network activity, everything works well. But in my programm I create a new network plan with one network activity (0010). After commit I become the correct network plan number. Then I try to add long text to the network activity. I get correct return codes but if I look in the transcation CJ20N I could not see some text. If I use the READ_TEXT function with the key I insert the text, I see the text, but not with the transaction CJ20N.
I compared the key I used in my program with the key if I insert text with transaction CJ20N. I could'nt found some differences.
SELECT SINGLE afvcp~mandt afvcp~aufpl afvcp~aplzl
INTO (mandant,aufpl,aplzl)
FROM afvcp INNER JOIN
afko ON
afko~mandt = afvcp~mandt
AND afko~aufpl = afvcp~aufpl
AND afko~aufnr = ordernumbernew.
"*Create Identifier
CONCATENATE
mandant aufpl aplzl
INTO lv_name.
header-tdobject = 'AUFK'.
header-tdname = lv_name.
header-tdspras = sy-langu.
header-tdform = 'SYSTEM'.
header-tdid = 'AVOT'.
header-mandt = sy-mandt.
header-TDLINESIZE = '079'.
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
client = sy-mandt
header = header
insert = 'X'
savemode_direct = 'X'
owner_specified = ' '
local_cat = ' '
IMPORTING
function = func
newheader = newheader
TABLES
lines = lines
EXCEPTIONS
id = 1
language = 2
name = 3
object = 4
OTHERS = 5.
CALL FUNCTION 'COMMIT_TEXT'
EXPORTING
OBJECT = header-tdobject
SAVEMODE_DIRECT = 'X'
IMPORTING
COMMIT_COUNT = commit_count
COMMIT WORK AND WAIT.
For example in the debug the header ist filled with:
1 TDOBJECT C 10 AUFK
2 TDNAME C 70 210000044156300000001
3 TDID C 4 AVOT
4 TDSPRAS C 1 D
5 TDTITLE C 50
6 TDFORM C 16 SYSTEM
7 TDSTYLE C 8
8 TDVERSION N 5 00000
9 TDFUSER C 12
10 TDFRELES C 4
11 TDFDATE D 8 00000000
12 TDFTIME T 6 000000
13 TDLUSER C 12
14 TDLRELES C 4
15 TDLDATE D 8 00000000
16 TDLTIME T 6 000000
17 TDLINESIZE N 3 079
18 TDTXTLINES N 5 00000
19 TDHYPHENAT C 1
20 TDOSPRAS C 1
21 TDTRANSTAT N 1 0
22 TDMACODE1 C 16
23 TDMACODE2 C 16
24 TDREFOBJ C 10
25 TDREFNAME C 70
26 TDREFID C 4 4
In CJ20N the header is filled with
1 TDOBJECT C 10 AUFK
2 TDNAME C 70 210000044156300000001
3 TDID C 4 AVOT
4 TDSPRAS C 1 D
5 TDTITLE C 50
6 TDFORM C 16 SYSTEM
7 TDSTYLE C 8
8 TDVERSION N 5 00000
9 TDFUSER C 12
10 TDFRELES C 4
11 TDFDATE D 8 00000000
12 TDFTIME T 6 000000
13 TDLUSER C 12
14 TDLRELES C 4
15 TDLDATE D 8 00000000
16 TDLTIME T 6 000000
17 TDLINESIZE N 3 079
18 TDTXTLINES N 5 00007
19 TDHYPHENAT C 1
20 TDOSPRAS C 1
21 TDTRANSTAT N 1 0
22 TDMACODE1 C 16
23 TDMACODE2 C 16
24 TDREFOBJ C 10
25 TDREFNAME C 70
26 TDREFID C 4
Maybe you are looking for
-
Can there be multiple contributors on a single course?
We are wondering if there can be more than one instructor on a course. Any thoughts?
-
Windows 8-1 Pro retail OEM downgrade to Windows 7 Pro
I have just purchased 6 licenses of Windows 8.1 Pro OEM along with ACER desktops. On installation, I realised that one of my applications is not supported under Windows 8.1 Pro. Please let me know my downgrade rights from Windows 8.1 Pro retail licen
-
We are thinking of migrating to 1250's to start preparing for 802.11n. My questions are can you have a mixed environment with 1130's, 1231's, 1242's and 1250's. If so, are there any problems with roaming between different AP's? or Power requirements
-
Panic report in mac air historical system
I recently checked the system records because the laptop became slowly running. I found a report like this, is it a big issue? 2009-03-08-132851.panic: Sun Mar 8 13:28:50 2009 panic(cpu 0 caller 0x001A9C5C): Kernel trap at 0x0103d256, type 14=page fa
-
Out of Bounds Memory Exception in Open JMS
Hi Friends, I am currently using Open JMS version openjms-0.7.6.1 for a Java Swing based application for communication. But I got a memory out of bounds exception if I start the open JMS server for a long period of time and need to restart the open J