on 10-04-2012 10:26 AM
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?
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.