Call function SXMB_SELECT_MESSAGES - determine message type
After calling function SXMB_SELECT_MESSAGES, you get the
following information in the return structure. How do you determine the
message type based upon this information? Programatically (table name or
functions)?
outbound system,outbound namespace,outbound interface name
inbound system,inbound namespace, and inbound interface name
Hey,
I forgot to mentation,
if you are using swith proceudure than,
need to use the table SXMSPEMAS2,
in order to find the current table,
pleae do the following:
I hope I don't have minor syntax error
(I didn't compile this before...)
Report mizi.
Data:
lv_emast_table type tabname,
lv_guid like sxmsemast-msgguid,
lv_pid like sxmsemast-pid,
ls_emast type sxmsemast.
Get values into lv_guid and lv_pid
lv_guid = ...
lv_pid = ...
call method
cl_xms_persist=>get_current_table_contrainer
importing
ex_emast = lv_emast_table.
select *
from (lv_emast_table)
into ls_emast
where
msgguid = lv_guid and
pid = lv_pid.
write: / ls_emast.
Similar Messages
-
Function Module to message type
Hi All,
How can i convert a function module to message type?
Thanks,
Nidhi Kothiyalthere's nothing like converting function module into message type
you can attach a message type to a process code
and in partner profile(we20)
in the i/b message type
you can call this process code by which that FM will be called
let me know if you have any doubt
Regards
Manu -
FRF-00025 Unable to call function. Error message: Syntax error in program
hi,
when we try to import the export file,we are getting the following error in the 24th phase
i.e., check DDIC Password.
The Error is
INFO 2007-10-29 15:53:20 [iaxxrfcimp.cpp:1017]
CAbRfcImpl::callLibraryFunction
Generating interface for remote function.
TRACE [iaxxrfcimp.cpp:1056]
CAbRfcImpl::performFunctionCall
Calling function module: INST_RFC_GET_INTERFACE
WARNING[E] 2007-10-29 15:53:21 [iaxxrfcimp.cpp:1089]
CAbRfcImpl::performFunctionCall
FRF-00025 Unable to call function. Error message: Syntax error in program SAPLSUNI . .
TRACE [iaxxrfcimp.cpp:1090]
CAbRfcImpl::performFunctionCall
RFC failure or system exception raised
TRACE [iaxxrfcimp.cpp:1091]
CAbRfcImpl::performFunctionCall
Syntax error in program SAPLSUNI .
TRACE [iaxxbjsmod.cpp:657]
CJSlibModule::showOkCancelBox_impl()
<html>Test logon to SAP System I50 failed.<p>Make sure that the system is started, that the user DDIC exists and that the password of user DDIC is correct.</html>
TRACE [iaxxgenimp.cpp:1093]
showDialog()
waiting for an answer from gui
What Could be the solution for this.
waiting for ur reply
SSHi Friend,
Please check whether or not there is view missing error recorded in dev_w0 trace file.
if there is , you can try to follow this procedure in order to manually
import the missing view definitions.
All steps must be carried out with the <sid>adm user of the target
system and from the install-directory:
1. In the install-directory
<sapinst_instdir>\...COPY\IMPORTT\SYSTEM\ABAP\ORA\UC\DB
create a file SAPVIEW.cmd with the following content:
tsk: "<sapinst_instdir>\...\COPY\IMPORT\SYSTEM\ABAP\ORA\UC\DB\SAPVIEW.TSK"
icf: "
<YOUR_EXPORT_DIRECTORY>\export\DATA\SAPVIEW.STR"
dcf: "<sapinst_instdir>\...\COPY\IMPORT\SYSTEM\ABAP\ORA\UC\DB\DDLORA.TPL"
dat: null
dir: null
ext: null
Please make sure that all paths are written correctly (in one line) and
the refered files are existant and readable. One exception:
The SAPVIEW.TSK file is created with step 2.:
2. Run from the command-line:
R3load -ctf I
<YOUR_EXPORT_DIRECTORY>\export\DATA\SAPVIEW.STR <sapinst_instdir>\...\COPY\IMPORT\SYSTEM\ABAP\ORA\UC\DB\DDLORA.TPL SAPVIEW.TSK ORA -l SAPVIEW.log
If there's a problem reading the 'SAPVIEW.STR' file, copy the
file to the install directory and adapt the path accordingly.
3. Run the view import by:
R3load.exe -i SAPVIEW.cmd -dbcodepage <YOUR_CODE_PAGE> -l SAPVIEW.log
-stop_on_error
4. Check both the SAPVIEW.log and the SAPVIEW.TSK file whether all views
have been created successfully.
If 4. is okay, restart the central instance and check whether you are
able to log on now. If yes, continue 'sapinst' by the option 'retry' or
'continue old installation'.
I Hope It can be helpful.
With Best Regards
Julia -
What is the use and functionality of a message type
Hi,
I am new to abap. Can anybody tell me what is the use of the message type? What is it used for?
There is an interface which is using an extended idoc type ZFIDCCP02 (Basic Type FIDCCP02). This extended idoc type is used for other interfaces and the interface in question. However the other interfaces are using the standard message type FIDCC2, but the interface in question is using a customized message type.
Any idea what could be the reason?
Thanks in advance.
MickHi Mick,
Message type tells the about the actual meaning of Idoc..
later if you want to send data to external system the idoc type or extension type is not used..
the message type is used for rest of the process..
Idoc type is know as structure..
<< Cut and paste without attribution from http://www.*******************/2009_01_01_archive.html removed >>
<< Cut and paste without attribution from http://searchsap.techtarget.com/sDefinition/0,,sid21_gci852485,00.html removed >>
<< Points unassigned >>.
Regards,
Prabhudas
Edited by: Prabhu Das on May 14, 2009 8:38 PM
Edited by: Rob Burbank on May 25, 2009 4:30 PM -
Calling function using user-defined type from query
I am in a bit over my head on this, at least at 2:30 in the morning after several hours of intense development. I am working on a function to return financial aging figures by aging date range. I created a user type Aging with a Currency type member for
each of these.
Public Type Aging
Aging0 As Currency
Aging30 As Currency
Aging60 As Currency
Aging90 As Currency
Aging120 As Currency
End Type
I then created a function that accepts the account ID & the as-of date. I have all the rest of the code written to actually calculate all of it, but I am having a fundamental problem figuring out how to call the function. To eliminate any of the complex
mathematical elements for testing, I have reducted the function to a set of simple explicitly-set values below:
Public Function GetAging(AccountID As Integer, AsOfDate As Date) As Aging
GetAging.Aging0 = 0
GetAging.Aging30 = 0
GetAging.Aging60 = 0
GetAging.Aging90 = 0
GetAging.Aging120 = 0
End Function
This all works fine from the immediate window, where I can type this:
?GetAging(115,#2015-04-05#).Aging0
and get the expected response of 0 (I have tested with other values for each member, so I know this part is working correctly).
But can I and/or how do I call this from a query? I should be able, as a test, to pass in each account # and the current date, just to get the Aging0 element out of my function--something like this:
SELECT
AccountID,
CustomerName,
GetAging([AccountID],Date()).Aging0
FROM
Customer
ORDER BY
CustomerName
I get "The expression you entered has an invalid .(dot) or ! operator or invalid parentheses. But if I remove the ".Aging0", I get this error: Undefined function 'GetAging' in expression.
What am I missing here?To expand on the answer of Hans, you could use a AgePoint parameter in the function like this:
Public Function GetAging(AccountID As Integer, AsOfDate As Date, AgePoint As Integer) As Currency
' do calculation
Select Case AgePoint
Case 0: GetAging = Aging.Aging0
Case 30: GetAging = Aging.Aging30
Case 60: GetAging = Aging.Aging60
Case 90: GetAging = Aging.Aging90
Case 120: GetAging = Aging.Aging120End Select
End Function
then use it in the query like this:
SELECT
AccountID,
CustomerName,
GetAging([AccountID],Date(), 0),
GetAging([AccountID],Date(), 30),
GetAging([AccountID],Date(), 60),
GetAging([AccountID],Date(), 90),
GetAging([AccountID],Date(), 120)
FROM
Customer
ORDER BY
CustomerName
However, this has the big drawback that the function will be called 5 times for each and every AccountID, so you will probably have bad performance.
Since you pass the AccountID to the function, you could consider to calculate the results for all AccountIDs in the code and store the results into a table, then join this table into the query.
Matthias Kläy, Kläy Computing AG -
Function to determine file type
I am looking for a basic function that will receive a string,
I want the function to look at the string and determine what the
file type is, then perform another function.
where filename = "demo.swf" or "somethingElse.pdf"
if filename == 'swf'
goto "10"
else if filename == 'pdf'
goto "20"You can use the String.split() method, to split the file name
at the period.
Then the file type will be the second item in the array:
function getExtension (fileName:String):String {
return fileName.split(".")[1];
Dave -
Adobe Community Expert
www.blurredistinction.com
http://www.adobe.com/communities/experts/ -
Outbound IDOC for sales order: message type, function module ?
Hi all,
is there a possibility to send out sales order data with an outbound IDOC (like sending an purchase order out with ORDERS.ORDERS05)
I've looked in WE20, for application V1 there are process codes like SD01, SD04, ... but the function modules behind are no existing on our system (release 500)
can anybody give me an little hint?
Thank you very much
best regards HansHi George,
for every process code there is a function module attached you can see in WE41(t-code)..
double click on the Process code you will able to see the Function Module attached to Process code..
and also you can check it out in WE57 (t-code) link between the Function module and Message type and Idoc type..
Process code SD01
Description ORDRSP: Order acknowledgment, ORD_ID01 (SD_ORDRSP)
Function module SD_EDI_ORDRSP_ORD_ID01
Process code SD04
Description DESADV: Shipping notif. with DES_ID01 (SD_DESADV)
Function module SD_EDI_DESADV_DES_ID01
regards,
Prabhudas -
Idoc ORDERS05 with Custom Message Type
We want to use a Z message type for idoc type ORDERS05 to be able to separate a particular group of partners from other partners using ORDERS/ORDERS05.
The goal with our Z message type is to use the standard function IDOC_OUTPUT_ORDERS. The only problem I see is that this function checks the message type in form READ_SERVICE_PACKAGE. It would ignore this code since my message type is a Z and it's checking for message type ORDERS.
I was thinking of using a Z wrap-around function to perform the same code in form READ_SERVICE_PACKAGE if the message type is my Z message type.
I want to avoid creating a Z copy of IDOC_OUTPUT_ORDERS and all if the includes!!!
Any suggestions?Hello Bruce,
The function module is associated with the process code.
Why do you need a new message type?
Regards,
Samir. -
What exactly is the significance of message types? For example, what exactly would be the difference between the idoc delvry 03 with message type 'desadv' and delvry03 with message type 'shpcon'?
Hi Anju Reddy,
Message types relate to the structure of the data called an IDOC . Message types provide the format of the data, which can be exchanged between SAP and non-SAP systems.
DESADV ---> Delivery: Shipping Notification " Notification
SHPCON ---> Delivery: Shipping Confirmation " Confirmation
Best regards,
raam -
Error "FRF-00025 Unable to call function.when install SM4
ERROR 2009-09-29 15:05:12.687
FRF-00025 Unable to call function. Error message: Exception condition "WRITE_FAILED" raised. .
ERROR 2009-09-29 15:05:12.703
MUT-03025 Caught ERfcExcept in Modulecall: Exception condition "WRITE_FAILED" raised..
ERROR 2009-09-29 15:05:12.734
FCO-00011 The step runRADDBDIF with step key |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System
ind
ind
ind
ind
2
0
NW_CI_Instance
ind
ind
ind
ind
11
0
NW_CI_Instance_ABAP_Reports
ind
ind
ind
ind
2
0
runRADDBDIF was executed with status ERROR ( Last error reported by the step :Caught ERfcExcept in
Modulecall: Exception condition "WRITE_FAILED" raised..).Hi all
Yes, I running for windows. But I found the error below after I re-installation.
ERROR 2009-10-07 15:15:10.718
FCO-00011 The step runRADDBDIF with step key |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|2|0|NW_CI_Instance|ind|ind|ind|ind|11|0|NW_CI_Instance_ABAP_Reports|ind|ind|ind|ind|2|0|runRADDBDIF was executed with status ERROR .
Regards,
Kevin -
Fax/Email capability for the Message types
Hi all,
There a is a new message type ZSF created for Smartform for the PO transactions ME21N/22N/23N through NACE Tcode.
The properties of this message is similar to that of the NEU message type for SAPScript with the changes to the Form name and the Print program name.
But the ZSF does not perform the External send functionality which the message type NEU is able to.
For NEU Processing Routines is has the customised form ZZMEDRUCK while for the ZSF this coulmn of Form is Blank and the Smartform Column is updated with the smartform name. Is this correct?
What else is needed to enable the External send functionality for the ZSF.
Appreciate your inputs.
Thanks & Regards,
Stock.Hi
It seems all the settings are OK But what MEDIUM is used to send Mail
For print we use Medium 1 for Fax 2 like that for MAIL it is 7 I think
see the table NAST and the field NACHA for different medium values
So you have to use the proper medium for sending the mail
also you ensure that the Driver program is triggering properly for the different communication medium
see the links for sending the smartform through mail
check...
How to send smart form via email
/people/pavan.bayyapu/blog/2005/08/30/sending-html-email-from-sap-crmerp
Regards
Anji -
Output message type determination through MIGO
hello experts,
I am doing MIGO for goods reciept, it is creating material document and triggering output type attached to it (ZLCO).
Same thing when i am doing through an excel sheet (this excel application is calling a Z function module thats one looks is calling Standard BAPI BAPI_GOODSMVT_CREATE), this is creating material document but not trigger output type.
Output ZLCO is not created upon VGR thru Excel Upload.
What part of code should i provide to my Z function module so that it also trigger the Output type.
Thanks,
SumitPRs will not get any message type, POs will get a message record.
How is the situation now?
Did you get 20 POs only, or do you have 25 POs where just 20 have a message record?
In the first case convert the PR manually to a PO manually and see if you get a message record. You should not enter anything manually, it is supposed to work without entering anything manually because it was meant for auto PO. In case you have to enter anything manually, then this might be an indicator why auto PO could not work.
if the latter case, then compare a PO with and without message record on the fields that should match with your condition record.
Do you expect the same message type for all POs, are they all in the same purchasing organisation?
Read and check what is mentioned in KBA 1829682 - Output type is not determined in Purchase order -
Same message type calling 2 maps
Hi Experts,
I want to send same Idoc messagetype for two different partners and want to call different map. And these idocs are coming from same SAP system.
Let say message type Orders , first partner PARTNER01 and second partner PARTNER02.
For PARTNER01 partner message mapping name is MM1
For PARTNER02 partner message mapping name is MM2.
When SAP is sending the message for partner PARTNER01 it should call MM1 and it should not call MM2.
Output files are also going to two different system.
Could you please let me what are the configurations are required in ID?
Thanks in advance for your valuable suggestion.
Regards,
ShubhankarHi Shubhankar !
You should enter your receivers (partner01 and partner02) in the receivers table of the receiver determination object. Here you can use the condition editor to detect which system should be the receiver based on content (payload, headers, etc.). Then to specify different mappings, you should create one interface determination object for each receiver system, in each interface determination object you should specify the interface mapping to be used. Please create one interface mapping object in repository for each mapping program (mm1 and mm2).
Regards,
Matias. -
Direct approach for - Message class used in Call Function - possible?
Hi All
This is I guess a very simple question, but I could not find the solution.
If i use the function: POPUP_TO_CONFIRM, I can hand over to the export some text symbols directly from the text elements.
Example:
CALL FUNCTION 'POPUP_TO_CONFIRM'
EXPORTING
titlebar = text-011
text_question = text-030
text_button_1 = text-024
icon_button_1 = 'icon_checked '
text_button_2 = text-026
icon_button_2 = 'icon_incomplete'
default_button = '2'
display_cancel_button = ''
start_column = 25
start_row = 6
IMPORTING
answer = answer.
But I'm using a message class in this progamm.
<b>So my question is, how can I use directly a message from the message class within the function?</b>
I'm not asking for a 2-step approach (copy into text1 and set text1 to function). I would like to know how to use the text from the class directly into the function.
Thanks
PetraHi
May be this way.
data : v_text1(72) type c,
v_text2(72) type c,
v_text3(72) type c,
v_text4(72) type c.
message i175(YVV) into v_text1.
message i176(YVV) into v_text2.
message i177(YVV) into v_text3.
message i178(YVV) into v_text4.
CALL FUNCTION 'POPUP_TO_CONFIRM'
EXPORTING
titlebar = v_text1
text_question = v_text2
text_button_1 = v_text3
icon_button_1 = 'icon_checked '
text_button_2 = v_text4
icon_button_2 = 'icon_incomplete'
default_button = '2'
display_cancel_button = ''
start_column = 25
start_row = 6
IMPORTING
answer = answer.
aRs -
IDOC message type and message code and function?
Hai...
anyone can explain with example what is IDOC message type and message code and function? how it is used?
regards,
prabakaranHi
An IDoc type can be implemented for various "logical" messages; one message can also be assigned to different IDoc types (m:n relationship).
The message is defined by the values for message type (required), message code (optional) and message function (optional). These three fields belong to the key fields in the partner profiles, which are used, for example, to determine inbound processing. If the 'Message type' field is not maintained (e.g. in the case of a control record from Release 2.1, in which MESTYP did not exist), the IDoc Interface uses the value from STDMES (EDI message type).
If possible, the descriptions of the message type should be linked to the corresponding EDI message type.
The message ORDERS (= message type) identifies purchase orders (outbound) and sales orders (inbound).
Message code or Process Code for Inbound Processing
Code which identifies a process type.
The process type determines which process is used to convert an IDoc to an SAP document.
Process code for outbound processing
Code which identifies the type of data which is to be sent via the IDoc interface.
Using the process code, the IDoc interface finds the application selection module which converts the SAP document into an IDoc.
The process code is only used with applications which perform outbound processing via Message Control (NAST).
Thanks & Regards
Kishore
Maybe you are looking for
-
How do I authorize iTunes on a macbook with iTunes 2013 not 2011
I cant find out how to authorize iTunes on my macbook with iTunes 2013
-
Dreamweaver fatal error after photoshop cs4 install
I have upgraded and installed photoshop cs4 today, now i have a problem with dreamweaver mx, whenever i try and insert an image to a html page, dreamweaver gets a fatal error and terminates. Any advice and assistance would be appreciated.
-
form equivalent in Flash CS3 / AS 3.0
Hi -- I am building a form with data I want to send to my web app (ASP page.) Is there an easy way to group my data into the new URLVariables class so that my form data is auto-collected and can be sent via a POST rather than creating new properties
-
SAPScript: manual counting of Total pages
Hi All, in my requirement I have to print a Back page with Terms & conds on each page of the form, but the Back page is increasing a counter, so I want to calculate total pages manually, is it possible? In SDN I have found that system always count to
-
How to create SVGZ-Files in Java?
Hi, I'am able to create normal SVG File with the Java-File API, but I'm not able to create SVGZ Files. I've herad that it could work with the java.util.zip library but the example creates no valid svgz-file. Has someone an idea? Thanks! //--> path of