Passing message text from external RFC server into SAP EXCEPTION parameter

In function module CREDIT_CARD_SETTLEMENT the following DYNAMIC function module call exists:
------ Send items for settlement to a RFC function -------------------
    CALL FUNCTION l_fnset
         DESTINATION l_rfcset
         EXPORTING   i_ccseth                = i_ccseth
         TABLES      t_settab                = t_settab
                     t_setexd_h              = t_setexd_h
                     t_setexd_i              = t_setexd_i
         EXCEPTIONS  system_failure          = 01 MESSAGE rfc_msg_text
                     communication_failure   = 02 MESSAGE rfc_msg_text
                     call_function_not_found = 03.
This is the code which calls an external credit card application server.  I'm trying to figure out how, on the server side, I can return a message into the rfc_msg_text variable on the system_failure or communication_failure EXCEPTIONS.
I’ve found several examples of this construct in ABAP code in the SAP side – but I can’t for the life of me find anything that shows how to set this up in our external server. 
There are several SAP function modules like RFC_PING that have similar constructs – but I can’t see the compiled C code to tell what command to use to fill in that text.  I can raise the exception, just not fill in the text.
Any ideas?

Hi Eric,
I do not quite understand the problem.
Is there an external NON-SAP system, that needs to do the call?
Within any external SAP system (inside the RFC Function Module) you can raise exceptions in the following manner:
MESSAGE e398(00) WITH par1 par2 par3 par4 RAISING exception_1.
Message 398 in class 00 contains only & & & & as text.
Each & is replaced by par1 through par4.
Suppose par1='Order' par2='1234' par3='invalid' par4=''.
Then a message would be build like: Order 1234 invalid.
This all would reside in the remote called function module.
When you call this module and after any exception in the call the addition MESSAGE rfc_msg_txt was put, then the variable rfc_msg_txt='Order 1234 invalid'.
But as already stated before, i'm not quite sure what the problem is. Shed some light to it.
Greetz,
Rob.

Similar Messages

  • Taking time data from external system(KRONOS) into SAP

    Dear Friends,
    I have to intergrate my time managemnt to time recording machine(KRONOS) am not aware about that it's sap certified or not .How we can access the data from that machine and insert in sap tables that means we have to communicate sap to non sap system.I don't have to use the BDC because i have to update our table according to machine shall i go for IDOC and EDI.In that case which IDOC or EDI i have to use .I have to create the INBOUND interface for that .Kindly help me am stuck
    thanks
    sandeep dabral

    Hi Sandeep,
    You require a abap guy along with a basis person. Below steps are required.
    Step 1: The third party ll specify the file format in which they are going to send the data.
    Step 2. You need to check with the basis or a third tool to upload the file into SAP application directory tcode al11.
    step 3: Then the ABAP guy will write a interface program using this BAPIs to upload the data in to catsdb.
    Step 4. Then functional testing and bug fixing and finially sheduling the inteface job in Production.
    Br/Manas

  • I can't paste text from external sources into Photoshop CC 2014.

    Hello everyone,
    Since a few days I'm not able to paste texts from external sources into Photoshop CC 2014.
    I never have problems with Photoshop CC before.
    I have the new iOS Yosemite installed in my macbook.
    It's really frustrating, can someone help please?

    I have basically the same setup, except on a Mac Mini. I am unable to reproduce your problem. Double check that you are copying the original text in the first place, and then make sure you are pasting into a text layer as you cannot paste into a regular Photoshop layer -- nothing will happen. Create a text layer by clicking on a regular layer with the text tool, the T in the tool box. The new layer will show up in the layers panel identified by the first line of the text.

  • Isolate app server from external RFC's, idocs

    There is a server in our SAP R3 landscape that needs to be isolated both from user logon, external communiction like idocs and also load balancing of batch jobs to this server. 
    The user logon is no issue, config via SMLG by not including the server in the logon groups.
    The external idoc coming in is still an issue to be addressed. 
    So is the batch job issue.  This server requires background processes.  But we don't want general batch jobs load balanaced to this server.
    If idocs were balanced to that server, potentially they would wait (because of heavy procesing occuring on this server) and could processes to backup.
    Can these be eliminated via usage of RZ12?  By default a server in the environment will be in that group.
    Could the server effectively be isolated by creating some bogus server logon group and assigning the server to it?
    So 2 issues:
    1. isolate server from idocs
    2. isolate server from having batch jobs load balanced to it.
    Any thoughts appreciated on this matter of isolating a server from the rest of the landscape so that it can be dedicated to a specific process.

    We understand the issues of you as below.
    1. isolate server from idocs (The external idoc coming in is still an issue to be addressed)
    - As u already eliminated the target server from SMLG, User login are managed but why external IDOC's are coming.
    View-1) if the IDOC's are coming from other ABAP System, Check the RFC Connections of  Source ABAP System to This Target ABAP System, Are they using by any chance LOGON group "SPACE".  if yes...pl assign it to a Custom LOGON GROUP of Source which does not include the application server you desire.
    View-2) if the IDOC's are coming directly from an external NON-ABAP System, Analyze where the external RFC server is registered..Secondly.....How the Inbound IDOCS are processed by Function Module....Select " TRIGGER BY BACK GROUND PROGRAM" instead "TRIGGER IMMEDIATELY" to build a control thru which BATCH Server the INBOUND IDOCS are processed.
    2. isolate server from having batch jobs load balanced to it.
    This you can acheive it as Mr.Sunil Bujade  said thru SM61 in this thread.
    3. HTTP Logins to thru that application server
    If your ECC System connected to a Portal , and you are experience some WEB logins (IC) login on this application server ,
    Do not activate the parameters on the application server where you do not desire HTTP Connections, which will stop HTTP Logins.
    icm/server_port_0
    icm/host_name_full
    login/accept_sso2_ticket
    login/create_sso2_ticket
    (or)
    You should Disable / Deactivate ICM of application server said by Mr.Khaiser in this thread ( I think after every restart ).
    If time allows have a look of these Notes.
    SAP Note 0001385751  Deactivating background processing
    SAP Note 0000786412  Determining execution server of jobs w/o target server
    SAP Note 0001359508  Background server groups: Blank server name in server group
    SAP Note 0000519059  FAQ: Background processing system
    A Final Question,
    In which scenario, A server is not for GUI LOGINS, not for Specific BATCH Jobs, not for HTTP Logins,  is required.. May we request a Technical Scenario was required such application server which may be useful to connect to the requirement when similar demand in our landscape.
    Rgds

  • How to pass the text from a table to the field label on the selection scre

    hi guru's
      i have requirement were in i have to pass the text from a table as field label for
       a input field on the selection screen.
      EX:    selection screen  
                (xxxxxxx )  __________   
                field label    
      please help 
    regards,
    vara

    hi all,
    can you please check the code, and suggest am i doing wrong any were.
    types: xtab(200).
    data : ttab type table of xtab,
    w_so type xtab.
    data: routine(32) value 'TEMP_ROUTINE',
    program(8),
    message(128),
    line type i.
    AT SELECTION-SCREEN OUTPUT.
    select field text DATA_ELEMENT from zauthgrptxt into table t_fieldlabel where STARALLOWED EQ c_asteriks.
    DESCRIBE TABLE t_fieldlabel LINES N.
    w_so = 'REPORT ZTEMP_PROGRAM.'.
    append w_so to ttab.
    w_so = 'FORM TEMP_ROUTINE.'.
    append w_so to ttab.
    loop at t_fieldlabel.
    w_field = t_fieldlabel-field.
    CONCATENATE 'SELECT-OPTIONS: ' ' P_' w_field zspace ' FOR ' ' T_FIELDLABEL-' w_field ' NO INTERVALS NO-EXTENTION.' INTO w_so.
    append w_so to ttab.
    endloop.
    w_so = 'ENDFORM.'.
    append w_so to ttab.
    generate subroutine pool ttab name program
    message message
    line line.
    if sy-subrc = 0.
    perform (routine) in program (program).
    else.
    write:/ Message.
    endif.
    The sy-subrc = 4. nothing is coming into 'program' at generate subroutine pool
    very urgent requirement please help
    thanks,
    vara

  • How to send an idoc of lower release to an External RFC server

    Hi All,
    I am sending idocs from the sap system to an external rfc server(written using Sap RFC SDK).
    When an idoc is sent from the Sap system, I receive an IDOC_INBOUND_ASYNCHRONOUS call in the external RFC server with the Idoc data.
    Everything works fine with the latest release of idocs. But if I send an Idoc of lower release number, I am getting the data records properly for the lower release(say 640). But the DOCREL field (in the control record- EDI_DC40) always gives me the latest release number(700)
    In my partner profile, I specify the Segment release number to 640 and even then I am receiving the value 700 in DOCREL.
    What am I missing here? How can I populate the DOCREL field with the appropriate release number?
    Any help would be greatly appreciated.
    Thanks
    PS: Please feel free to move this post to appropriate category, if this is not the one.

    Serigo,
    Thanks for your reply and we are not using XI.
    I have defined in the port definition giving the path name refering to unix like /outbound/<system name>/<directory name>. But I dont know how to define for C:\temp\, if I define the same way as c:\temp\  do I need define anything anywhere else ?
    Kindly let me know.
    Thanks,
    Kalikonda.

  • Fetching of multiple files from Application Server into SAP Program

    Hi All,
    I have a issue related <b>Fetching of multiple files from Application Server into SAP Program</b>.
    Actual issue is as below.
    In the <b>selection screen</b> of <b>my program</b> i will give <b>Application Server Path</b> as :
    <b>/PW/DATA/SAP/D1S/PP/DOWN/eppi0720*</b>
    Then the based on above input it should pick up all the files that are matching <b>eppi0720*</b> criteria.
    Suppose if i am having <b>5</b> files with above scenario, i have to fetch all those <b>5</b> files at a time and place in my SAP Program.
    All those 5 file's data should come into SAP at a time.
    Can anybody tell me how can we solve above issue.
    If any body has come across same issue please provide me with solution.
    Thanks in advance.
    Thanks & Regards,
    Rayeez.

    If you want to get around the authorization check, you can do something like this.
    report zrich_0001 .
    parameters: p_path type epsf-epsdirnam
                      default '/usr/sap/TST/SYS/global'.
    parameters: p_file type epsf-epsfilnam default 'CO*'.
    start-of-selection.
    perform get_file_list.
    *       FORM get_file_list                                            *
    form get_file_list.
      types: name_of_dir(1024)        type c,
             name_of_file(260)        type c,
             name_of_path(1285)       type c.
      data: begin of file_list occurs 100,
              dirname     type name_of_dir,  " name of directory. (possibly
                                             " truncated.)
              name        type name_of_file, " name of entry. (possibly
                                             " truncated.)
              type(10)    type c,            " type of entry.
              len(8)      type p,            " length in bytes.
              owner(8)    type c,            " owner of the entry.
            mtime(6)    type p, " last modification date, seconds since 1970
              mode(9)     type c, " like "rwx-r-x--x": protection mode.
              useable(1)  type c,
              subrc(4)    type c,
              errno(3)    type c,
              errmsg(40)  type c,
              mod_date    type d,
              mod_time(8) type c,            " hh:mm:ss
              seen(1)     type c,
              changed(1)  type c,
            end of file_list.
      data: begin of file,
              dirname     type name_of_dir,  " name of directory. (possibly
                                             " truncated.)
              name        type name_of_file, " name of entry. (possibly
                                             " truncated.)
              type(10)    type c,            " type of entry.
              len(8)      type p,            " length in bytes.
              owner(8)    type c,            " owner of the entry.
            mtime(6)    type p, " last modification date, seconds since 1970
              mode(9)     type c, " like "rwx-r-x--x": protection mode.
              useable(1)  type c,
              subrc(4)    type c,
              errno(3)    type c,
              errmsg(40)  type c,
              mod_date    type d,
              mod_time(8) type c,            " hh:mm:ss
              seen(1)     type c,
              changed(1)  type c,
            end of file.
      call 'C_DIR_READ_FINISH'             " just to be sure
           id 'ERRNO'  field file_list-errno
           id 'ERRMSG' field file_list-errmsg.
      call 'C_DIR_READ_START' id 'DIR'    field p_path
                              id 'FILE'   field p_file
                              id 'ERRNO'  field file-errno
                              id 'ERRMSG' field file-errmsg.
      if sy-subrc <> 0.
        sy-subrc = 4.
        exit.
      endif.
    * Read the file list and add to internal table.
      do.
        clear file.
        call 'C_DIR_READ_NEXT'
          id 'TYPE'   field file-type
          id 'NAME'   field file-name
          id 'LEN'    field file-len
          id 'OWNER'  field file-owner
          id 'MTIME'  field file-mtime
          id 'MODE'   field file-mode
          id 'ERRNO'  field file-errno
          id 'ERRMSG' field file-errmsg.
        if sy-subrc =  1.
          exit.
        endif.
        append file to file_list.
      enddo.
    * Write out the file list
      loop at file_list.
        write:/ file_list-name.
      endloop.
    endform.
    Regards,
    Rich Heilman

  • PSE-10 how do I import and copy from external hard drive into organizer

    Can I import and copy from external hard drive into organizer? Under Get Photos, I select import  from folders/files but after browsing to the external hard drive the copy option is disabled/greyed out. I there a method to import and copy?

    That would be mounted as an internal drive and hence the corresponding option is not checked during Import.
    Once you import the media form this drive, you can select all and go for File >> Copy/Move files option and copy them wherever you want to.
    Hope this helps
    Thanks
    Andaleeb

  • Migration of documents from a http content server into sap kpro und sap dvs

    hello,
    I want to migrate documents from an http 4.5 content server into the sap knowledge provider (kpro) and in sap dvs with an abap program.
    I know I have to create a PHIO and a LOIO and write it in the tables DMS_PH_CD1 and (only the LOIO) in DMS_DOC2LOIO.
    Where I have to write my url for accessing the document on the content server?In which table?
    What fm´s do I need to create the PHIO´s and LOIO´s?
    Has anyone an idea and hints (like weblinks) to integrate documents from an content server into kpro and sap dvs?

    Hello,
    the private key, where the hash is signed with is stored
    in your AppServer directory $DIR_INSTANCE/sec and is
    called SAPSYS.PSE. Where the PSE is a secude (www.secude.de) specific format which contains the private and the publik key.
    But I guess you won't get the private key, because its private, unless you are the Administror
    Then signig is done via the normal industry standards. (http://www.rsasecurity.com/)
    regards,
    mumba.

  • Attach doc from external content server- using Generic Object Service (GOS)

    Dear All,
    i have intergrated an external content server to SAP using SAP archive link. All the scanned document are there in Content server and corresponding entries are done in SAP.I can search and view document using tcode : OAAD
    Please tell me steps for "how to attach a document from external content server using Generic Object Service "
    Scenario is :  For example when we change any Master records or create a new PO, or do some financial transaction then i need to attach the supporting document which is there in my content server connected  to SAP.how do we manual attach a Document in SAP using GOS.
    Do we need to do some special configuration to use GOS .please give the steps from initial.
    Thanks
    sandeep

    Hello,
    Check your configuration of document type assignement to required business document - object type, Archivelink table, content repository in OAC3 transaction.
    Goto respective business document > Click on GOS > Create > Store business document - Here you can see defined document type with desctiption. Double click on this the assign your document to this business document. Save it.
    This will help in attaching the document to your required business document.
    To verify you can check the archivelink table or by transaction OAAD.
    Hope this will help you.
    -Thanks,
    Ajay

  • PDF file transfer from File server into SAP

    Hi,
    I need to get the PDF file which exists in the File server into SAP using XI in any format so that I can convert into required form in SAP but the file exists in PDF format in File server or any method other than XI .Is it possible to do it through XI if so please explain me the procedure.
    Answers will be appreciated with points.
    Thanks,
    Ramesh.

    Hi Ramesh,
        In addition to above reply, also go through these blogs whcuh also talk about ADF Conversion:
    <a href="/people/william.li/blog/2006/03/17/how-to-get-started-using-conversion-agent-from-itemfield:///people/william.li/blog/2006/03/17/how-to-get-started-using-conversion-agent-from-itemfield
    <a href="/people/sap.user72/blog/2005/07/27/xi-generate-pdf-file-out-of-file-adapter:///people/sap.user72/blog/2005/07/27/xi-generate-pdf-file-out-of-file-adapter
    Regards,
    Subhasha Ranjan

  • Unable to copy text from Word (for Mac) into Safari

    I am unable to copy text from Word (for Mac) into Safari. It doesn't seem to be recognizing that I am copying a selection of text from a word document. As when I try to paste, nothing happens. Is there a way around this?

    Disregard question, found it. Right click, or Ctrl+click to use submenu to Copy.

  • It is very difficult to import audio files from extern drives (NAS) into the new garageband

    it is very difficult to import audio files from extern drives (NAS) into the new garageband.

    Are you trying to open an audio file in GarageBand or a GarageBand project?
    To open an audio file drag it from your NAS to a real-instrument track in GarageBand.
    If you are trying to open a GarageBand project - can you open the same project, if you copy it to your system drive?
    Trying Google translate -
    Bent u probeert om een audiobestand in GarageBand of een GarageBand-project te openen?
    Om een audiobestand slepen uit uw NAS naar een real-instrument track in GarageBand openen.
    Als u probeert een GarageBand-project te openen - kunt u hetzelfde project opent, als u het kopiëren naar uw systeem schijf?

  • Search highlights from external highlight server

    In Acrobat Reader 9, under Edit > Preferences > Search, the "Enable search highlights from external highlight server" option is by default set to false. For those of us who use third party search engines to search PDF files on the web, this is a disaster. The only way to enable hit highlighting in this situation is to have users change their settings manually, which is a lot to ask of people who are not tech savvy.
    Does anyone know of a solution to this problem? Would Adobe change the default settings to true in future versions? Is there some kind of workaround?
    Thanks,
    Simon

    Why did Adobe change the defaut? I am installing dtSearch and it works great in Adobe 8 and below. But Adobe changed version 9 changed and so now the hits do not show and the "Jump to next Hits" and "Jump to previous Hits" does not show on the Adobe toolbar.
    My problem is that this makes dtSearch look bad - like their search page is no good.
    If I create web pages using dtSearch, the users will not know enough to set the Enable search highlights from external highlight server.
    Even if I put a big note on the web page, I know that people will not read it and they will think that the web page is buggy.
    I sure wish Adobe would put this back and make Enable search highlights from external highlight server the default.

  • Problems concerning "How to integrate MS Exchange Server into SAP EP"

    Hi,
    I want to realize the scenario in "How to integrate Microsoft Exchange Server into SAP Enterprise Portal" from the Microsoft-Website.
    We´re using SAP NetWeaver 04, SAP NetWeaver Portal 6.0.14.0.0 and KMC 6.0.14.2.0 and Microsoft Exchange Server 2000 SP3.
    I have created (as described in the document) the HTTP-System and a WebDAV RM. But the repository doesn´t appeaer in the KM-Content-iView.
    I checked the Component Monitor and got this error-message for "servers" (it was marked with a red square)
    last-error-3   2006-05-16T13:12:11Z: PROPFIND /public: 401 Access Denied
    last-error-4   2006-05-16T13:15:04Z: PROPFIND /public: 401 Access Denied
    last-error-6   2006-05-16T13:26:35Z: PROPFIND /public: 401 Access Denied
    errors   8
    last-error-2   2006-05-16T13:12:10Z: PROPFIND /public: 401 Access Denied
    requests   8
    last-error-7   2006-05-16T13:26:35Z: PROPFIND /public: 401 Access Denied
    bytes-per-second   0
    successes   0
    response-average   194
    last-error-1   2006-05-16T13:11:55Z: PROPFIND /public: 401 Access Denied
    last-error-0   2006-05-16T13:11:54Z: PROPFIND /public: 401 Access Denied
    last-error-5   2006-05-16T13:15:05Z: PROPFIND /public: 401 Access Denied
    failures   0
    Any idea, what´s wrong? And how to solve the problem.
    Thanks for help,
    Sven
    Message was edited by: Sven Keller

    Hi James,
    How can I check the KM ACLs/Security Zones?
    I had a look on "System Administration - System Configuration - Knowledge Management - Content Management - Repository Managers - Security Manager - WebDAV ACL Security Manager".
    There was just "WDAclSecurityManager" and the Permission Rendering Class was "com.sapportals.wcm.control.acl.ResourcePermissionControl".
    Or where do I have to look for the ACL?

Maybe you are looking for

  • Restrict creation of inspection lot for certain work centers

    Hi My client needs to restrict the creation of inspection lot at certain work centers although QM is active for all material processed in these work centers. I am using the  function module 'EXIT_SAPLQAAT_002' of QAAT0001 for this purpose. Z04 inspec

  • Is it still Nano only?

    I have a 30gb iPod video. I am wondering if the nike + is for nano only...if there is any way to get it onto iPod video please tell me.

  • DW8 text not visible in design view

    I have imported a site from DWMX(6?) to DW8. In DWMX everything is visible in design view. In DW8 the text is NOT visible in design view unless I switch off rendering using CSS (Display Styles Off), but displays fine in a browser. If I switch off ren

  • [SOLVED]strange behavior from pipe to wgetpaste

    I noticed today that when I pipe a command into wgetpaste or my sprunge function I see what looks like terminal colour codes inxi -Fc 1 | wgetpaste http://bpaste.net/show/170458/ here is another with the same http://bpaste.net/show/170455/ also one o

  • Flush shared pool in 8i

    Is it possible to clear the buffers in 8i? I tired but getting this error: 16:25:00 SQL> alter system flush shared_pool; alter system flush shared_pool ERROR at line 1: ORA-02000: missing SHARED_POOL keyword