cancel
Showing results for 
Search instead for 
Did you mean: 

MBO RFC In Sybase Unwired WorkSpace 2.1.3 Don't Load Value From EIS

Former Member
0 Kudos

Hello All.

This is my problem, I have create this RFC in SAP using transaction SE80:

FUNCTION ZSUP_VIEWDOCUMENT.
*"----------------------------------------------------------------------
*"*"Local Interface:
*"  IMPORTING
*"     VALUE(DOCUMENT_TYPE) LIKE  BAPI_DOC_AUX-DOCTYPE
*"     VALUE(DOCUMENT_NUMBER) LIKE  BAPI_DOC_AUX-DOCNUMBER
*"  TABLES
*"      DOCUMENT_STRUCTURE STRUCTURE  BAPI_DOC_STRUCTURE
*"      DOCUMENT_FILES STRUCTURE  BAPI_DOC_FILES2
*"      DOCUMENT_COMPONENT STRUCTURE  BAPI_DOC_COMP
*"----------------------------------------------------------------------

DATA: WA_DOCUMENT_FILE LIKE BAPI_DOC_FILES2.

  CALL FUNCTION 'BAPI_DOCUMENT_CHECKOUTVIEW2'
     EXPORTING
       DOCUMENTTYPE              = DOCUMENT_TYPE
       DOCUMENTNUMBER            = DOCUMENT_NUMBER
       DOCUMENTPART              = '000'
       DOCUMENTVERSION           = '00'
       DOCUMENTFILE              = WA_DOCUMENT_FILE
*   GETSTRUCTURE              = 'X'
*   GETCOMPONENTS             = 'X'
*   ORIGINALPATH              = ' '
*   HOSTNAME                  = ' '
*   GETHEADER                 = 'X'
*   DOCBOMCHANGENUMBER        =
*   DOCBOMVALIDFROM           =
*   DOCBOMREVISIONLEVEL       =
*   PF_HTTP_DEST              = ' '
*   PF_FTP_DEST               = ' '
* IMPORTING
*   RETURN                    =
    TABLES
       DOCUMENTSTRUCTURE         = DOCUMENT_STRUCTURE
       DOCUMENTFILES             = DOCUMENT_FILES
       COMPONENTS                = DOCUMENT_COMPONENT
.

ENDFUNCTION.

This RFC works fine in ABAP (I can use it and test it correctly) , but when I create a MBO or a MBO Operation inside Sybase Unwired WorkSpace 2.1.3 and I try to test my new MBO calling my RFC from SAP  (using Preview function inside Mobile Application Diagam)  I get only empty tables.

Can you tell me where am I wrong, or if I miss something?


Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello Andrea Caretti,

Check if you are passing the input values(DOCUMENT_TYPE and DOCUMENT_NUMBER) to the RFC correctly.

Place an external break-point in the RFC FM (with the userid which you are using for the SAP connection on the SUP Workspace) and see if the control is reaching the RFC and the import parameters are correctly filled.

Regards,

Guru.

Former Member
0 Kudos

Thanks Guru.

I had place a external break-point in RFC and I can see that the values are ​​imported correctly.


It is strange because the same values ​​in ABAP Workbench work and I get the correct return;

When I try the same values ​​from Mobile Application Diagram I get an empty table.