Quantcast
Channel: SCN : Unanswered Discussions - ABAP Connectivity
Viewing all 1115 articles
Browse latest View live

BASE64 format for image

$
0
0

Hi Experts,

 

I have to input BASE64 format of an image in field B64DATA of function  SSFC_BASE64_DECODE .

 

As this format is long and doesnt fit into the field.

How can i do this? or if there is any other FM by which i can do this.

 

Regards

Akriti


Download file from content server

$
0
0

Hi Experts,

 

I want to download file from content server in binary mode.

How can i do this without using report DMS_KPRO_READ.

Or is there any BAPI through which i will give the document number and in result it will give me data of the file attached to it in binary mode.

 

Regards,

Akriti

BAPI CVAPI_DOC_CHECKIN

$
0
0

Hi Experts,

 

 

I am using BAPI CVAPI_DOC_CHECKIN.

In the input parameteres i am speciying

 

  • Doc category
  • doc number
  • version
  • part
  • httpa destination = 'SAPHTTPA'.

 

When i am executing i am getting no output in PT_CONTENT.

AM i missing anything?

Please help.

 

Regards,

Akriti

Does SAP 4.0b supports connecivity with JCO 2.1/3.0 programming

$
0
0


Dear All,

 

One of our customers has requirement of integrating a portal which is in JAVA platform with SAP 4.0b using JCO 2.1/3.0.

 

Can you please guide if SAP 4.0b supports JCO 2.1 or 3.0 . ECC 6.0 works ffine with JCO.

 

In case SAP 4.0b connects with JCO 3.0 , then is there any limitation which we will have to face while integration.

Update control of movement type is incorrect (entry 641 _ _ _ L X)

$
0
0

Hi Team ,

 

In Tcode VL02N ,Entered Outbound Delivery after that i pressed Post good Issues (Goods Movement Type) i am facing the following Error

 

   

 

As a Administrator i have tried some solution given in online ,like Implementing the note 161729 ,while implementing that following error appears

 

kindly suggest me what i have to do.

 

Thanks & Regards,

Uga

RFC Connection error

$
0
0

Hi Experts,

 

We have a WDJ application which connects to a back end system to fetch outstanding work items for the user.

For some users it is not fetching any items and throwing the following error:

 

"

SAPCFConnectorException.isConnectionBroken

[EXCEPTION]

com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: No RFC authorization for function module UWL_DOCUMENTS_HEADER_READ. (Remote shortdump: RFC_NO_AUTHORITY in system P16|sapap16a)

at com.sap.mw.jco.MiddlewareJRfc.generateJCoException(MiddlewareJRfc.java:557)

at com.sap.mw.jco.MiddlewareJRfc$Client.execute(MiddlewareJRfc.java:1538)

at com.sap.mw.jco.JCO$Client.execute(JCO.java:4433)

at com.sap.mw.jco.JCO$Client.execute(JCO.java:3949)

at com.sapportals.connectors.SAPCFConnector.execution.functions.SAPCFConnectorInteraction.execute(SAPCFConnectorInteraction.java:439)

at com.sapportals.connectors.SAPCFConnector.execution.functions.SAPCFConnectorInteraction.execute(SAPCFConnectorInteraction.java:584)

at com.sapportals.connectors.SAPCFConnector.execution.functions.SAPCFConnectorInteraction.execute(SAPCFConnectorInteraction.java:608)

at com.sap.netweaver.bc.uwl.utils.r3.Transaction.executeFunction(Transaction.java:356)

at com.sap.netweaver.bc.uwl.utils.r3.Transaction.executeFunction(Transaction.java:383)

at com.sap.netweaver.bc.uwl.core.connect.webflow.AttachmentConnector.lookupAnAttachmentHeaders(AttachmentConnector.java:693)

at com.sap.netweaver.bc.uwl.core.connect.webflow.WebflowConnector.lookupAttachments(WebflowConnector.java:1377)

at com.sap.netweaver.bc.uwl.core.connect.webflow.WebflowConnector.getAttachmentHeaders(WebflowConnector.java:255)

at com.sap.netweaver.bc.uwl.core.AttachmentManager.updateAttachmentHeaders(AttachmentManager.java:71)

at com.sap.netweaver.bc.uwl.core.ItemCacheManager.getItemByUwlId(ItemCacheManager.java:1969)

at com.sap.netweaver.bc.uwl.core.ItemCacheManager.getItemByUwlId(ItemCacheManager.java:1888)

at com.sap.netweaver.bc.uwl.ui.utils.ServiceHelper.getItemById(ServiceHelper.java:267)

at com.sap.netweaver.bc.uwl.ui.UWLPreview.load(UWLPreview.java:295)

at com.sap.netweaver.bc.uwl.ui.UWLPreview.loadPreviewPage(UWLPreview.java:239)

at com.sap.netweaver.bc.uwl.ui.wdp.InternalUWLPreview.wdInvokeEventHandler(InternalUWLPreview.java:166)

at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:142)

at com.sap.tc.webdynpro.progmodel.components.Component.fireEvent(Component.java:492)

at com.sap.netweaver.bc.uwl.ui.wdp.InternalUWLItem.wdFireEventInitializationComplete(InternalUWLItem.java:264)

at com.sap.netweaver.bc.uwl.ui.UWLItem.initalizeItemController(UWLItem.java:283)

at com.sap.netweaver.bc.uwl.ui.wdp.InternalUWLItem.initalizeItemController(InternalUWLItem.java:212)

at com.sap.netweaver.bc.uwl.ui.UWLMainView.wdDoModifyView(UWLMainView.java:338)

at com.sap.netweaver.bc.uwl.ui.wdp.InternalUWLMainView.wdDoModifyView(InternalUWLMainView.java:1099)

at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.doModifyView(DelegatingView.java:94)

at com.sap.tc.webdynpro.progmodel.view.View.modifyView(View.java:746)

at com.sap.tc.webdynpro.progmodel.window.ViewController.modifyView(ViewController.java:254)

at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.doModifyView(ClientComponent.java:432)

at com.sap.tc.webdynpro.clientserver.phases.ModifyViewPhase.execute(ModifyViewPhase.java:69)

at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequestPartly(WindowPhaseModel.java:162)

at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doProcessRequest(WindowPhaseModel.java:110)

at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:97)

at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:515)

at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:58)

at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.doExecute(ClientApplication.java:1671)

at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.doProcessing(ClientApplication.java:1485)

at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doApplicationProcessingStandalone(ApplicationSession.java:908)

at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doApplicationProcessing(ApplicationSession.java:880)

at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:357)

at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:326)

at com.sap.tc.webdynpro.serverimpl.core.AbstractDispatcherServlet.doContent(AbstractDispatcherServlet.java:87)

at com.sap.tc.webdynpro.serverimpl.wdc.DispatcherServlet.doContent(DispatcherServlet.java:89)

at com.sap.tc.webdynpro.serverimpl.core.AbstractDispatcherServlet.doPost(AbstractDispatcherServlet.java:62)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:152)

at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.doWork(RequestDispatcherImpl.java:373)

at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:499)

at com.sap.tc.webdynpro.serverimpl.wdc.ForwardServlet.doPost(ForwardServlet.java:73)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:152)

at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:38)

at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:466)

at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:210)

at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:441)

at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:430)

at com.sap.engine.services.servlets_jsp.filters.DSRWebContainerFilter.process(DSRWebContainerFilter.java:38)

at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)

at com.sap.engine.services.servlets_jsp.filters.ServletSelector.process(ServletSelector.java:81)

at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)

at com.sap.engine.services.servlets_jsp.filters.ApplicationSelector.process(ApplicationSelector.java:278)

at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)

at com.sap.engine.services.httpserver.filters.WebContainerInvoker.process(WebContainerInvoker.java:81)

at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)

at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)

at com.sap.engine.services.httpserver.filters.ResponseLogWriter.process(ResponseLogWriter.java:60)

at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)

at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)

at com.sap.engine.services.httpserver.filters.DefineHostFilter.process(DefineHostFilter.java:27)

at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)

at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)

at com.sap.engine.services.httpserver.filters.MonitoringFilter.process(MonitoringFilter.java:29)

at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)

at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)

at com.sap.engine.services.httpserver.filters.SessionSizeFilter.process(SessionSizeFilter.java:26)

at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)

at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)

at com.sap.engine.services.httpserver.filters.MemoryStatisticFilter.process(MemoryStatisticFilter.java:57)

at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)

at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)

at com.sap.engine.services.httpserver.filters.DSRHttpFilter.process(DSRHttpFilter.java:43)

at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)

at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)

at com.sap.engine.services.httpserver.server.Processor.chainedRequest(Processor.java:475)

at com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.process(Processor.java:269)

at com.sap.engine.services.httpserver.server.rcm.RequestProcessorThread.run(RequestProcessorThread.java:56)

at com.sap.engine.core.thread.execution.Executable.run(Executable.java:122)

at com.sap.engine.core.thread.execution.Executable.run(Executable.java:101)

at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:328)

Caused by: RfcException: [P16|sapap16a]

    message: No RFC authorization for function module UWL_DOCUMENTS_HEADER_READ.

    Return code: RFC_SYS_EXCEPTION(3)

    error group: 104

    key: RFC_ERROR_SYSTEM_FAILURE

    message class: 00

    message type: X

    message number: 341

    message parameter 0: RFC_NO_AUTHORITY

Exception raised by P16|sapap16a

 

at com.sap.mw.rfc.api.RfcApi.RfcReceive(RfcApi.java:849)

at com.sap.mw.jco.MiddlewareJRfc$Client.execute(MiddlewareJRfc.java:1508)

... 90 more

Caused by: com.sap.mw.rfc.exceptions.RfcGetException: No RFC authorization for function module UWL_DOCUMENTS_HEADER_READ.

at com.sap.mw.rfc.engine.RfcImp.ab_rfcerror(RfcImp.java:908)

at com.sap.mw.rfc.engine.RfcGet.rfcget_run(RfcGet.java:155)

at com.sap.mw.rfc.engine.RfcGet.ab_rfcget(RfcGet.java:27)

at com.sap.mw.rfc.engine.RfcRcv.ab_rfcreceive(RfcRcv.java:39)

at com.sap.mw.rfc.api.RfcApi.RfcReceive(RfcApi.java:818)

"

 

This issue is seen with a few users only while it is working fine for others.

The RFC authorization to the recipient back end system is fine without any error.

 

Would appreciate your suggestion.

 

Regards, Biswajit

External JAVA Connector(JCO) Connects to SAP, but unable to Test from SM59

$
0
0

Here is the scenario:

The client has two Application Server and each one of them is listening on gateway service sapgw10 and sapgw20. The message server and another gateway service, sapgw00 is running on another host. The client is running on SAP 46C system.  In all there are 5 gateway services running.

sapgw00     1 external host (3600)

sapgw10     2 (1 on each App Server Host - 3310)

sapgw20     2 (1 on each App Server Host - 3320)

 

What Works:

An external Java Connector is able to connect to each application server and works fine without any issues( App Server -1 - sapgw10 & sapgw20 and App Server -2 sapgw10 & sapgw20). We are able to test the connection from SM59 and the data flows without any issues.

 

What doesn't work:

When the same Java connector connects using Load Balancer(Msg Server host, Logon Group & SID), we are unable to run the test connections from SM59. From the logs of the external connector, we could see  the list of Application servers and connections spawned to each gateway, and we could see 4 active threads. The Java connector's host machine has the following entry: sapms<SID>  3600/TCP.

 

Can anyone help us what the issues could be? What else the basis can do to troubleshoot this issue. Are some etc/services entries missing on SAP side?

 

Why the gateway registration to sapgw00(3600) is not visible to sapgw10(3310) an sapgw20(3320) running on each App Server?

 

Any help is greatly appreciated.

 

Thanks in Advance.

 

Leo Selvaraj.

BAPI for Doc CLASS

$
0
0

Hi Experts,

Is there any BAPI through which i can get DOcument class like DMS_PCD1 and obj ID.

 

I am getting OBJ ID from BAPI_document_getdetail and BApi_document_getlist.

 

Regards,

Akriti


Binary data through IDOC

$
0
0

Hi Experts

 

I want to send binary data (TIF , PDF etc) through IDOC.

Which segment and type is to be used for this purpose? And what about the length of the segment. Will it take the whole length.

 

Please help

regards,

Akriti

Unable to see Client Proxies in Enterprise services of SE80

$
0
0

Hi all,

 

 

I have created proxy class using local file WSDL and given prefix as ZTAX. Proxy class is generated which you can see in figure 1.

 

 

 

Now using SOA manager i have created a logical port 'TAXPORT' during creation of logical port also i have given the local WSDL file.

 

 

I had activated both proxy class and logical port but was unable to find the proxy client in the Enterprise services(SE80). please see figure 2

 

 

**


Outbound IDOC failed with status07 message type INVOIC

$
0
0

Hello team,

 

Outbound IDOC failed with status 07 MESSAGE TYPE INVOIC, the statuses flow is as below.

 

01-->30-->03-->12 --> 41 -->07-->31 --> 07

could you please help me how to proceed further

 

At status 41 the message is application document created in target system

for the first status07 the message is error during syntax check?

Changing Cases of data

$
0
0

Hi Experts,

 

When i am executing Select query to get data from database table it is converting the data into upper case.

I dont want to change the case to upper case. It should remain the same i.e letter which are uppercase shold remain uppercase and the ones which are in lowercase should remain lowercase.

 

Please help to get this.

 

Regards,

Akriti

Raw to Xstring conversion

$
0
0

Hi Experts,

 

 

I have raw data in an internal table.


data: lo_conv type ref to cl_abap_conv_obj,

       lv_input_length TYPE i.

CREATE OBJECT lo_conv.

loop at lt_bin_data into ls_bin_data.

 

 

   CALL METHOD lo_conv->convert

     EXPORTING

       inbuff    = ls_bin_data

       INBUFFLG  = lv_input_length

       outbufflg = 25000

     IMPORTING

       outbuff   = lv_xstring.

ENDLOOP.


Using the above code i am converting raw data into type XSTRING.

But during the conversion it is converting 000000000000000 in the end with AAAAAAAAAAAAAAAAaaa.

 

For eg. in ls_bin_data = 78932467865

as it is raw it is stored as 789324678650000000000000000000 i.e filling the remmaining space wuth zero.

 

And when i convert it in XSTRING it is replacing the ending zeroes with AAAAAA.

 

Is there any possibility that the field ls_bin_data doesnt append zeroes in the left out space.

that is 78932467865 should remain as 78932467865.

 

Please give ur comments.

 

Regards,

Akriti

Configured ALE distribution model - Now, how create IDOCS?

$
0
0

Good morning all,

 

I created and configured properly an ALE distribution model using transaction DB64.

 

In the New model view, I added the following message type:

 

BOMMAT

CHRMAS

CLFMAS

CLSMAS

CNPMAS

DEPNET

KNOMAS

MATMAS

VFNMAS

VTAMAS

VTMMAS

 

I configured properly also RFC and ports.

 

My main goal is transfer the IDOC DATA just one time, trasferring all data from one SAP system to Another.

 

Now that I have configured the distribution model, How I can generate all idocs of all type indicated in the distribution model and how I can trasfer all data saved from sender to receiver system?

 

There is an transaction that I indicate the name of the distribution model, and It generate all Idocs?

 

Many thanks

Best Regards

Marco

Retrieve data from URL content server SAp

$
0
0

Hi Experts,

 

I have uploaded a file in content server.

Using FM SDOK_PHIO_GET_URL_FOR_GET i got the URl for this file

When i am trying to access the file using this URL it is generating a .dll fileand i am not getting the exact data.

 

CAn anyone tell me how to retreive the data stored in content server using URL.

 

Regards,

Akritu


Standard RFC for FI-AR Bill of exchange module

$
0
0

is anybody knows standard RFC name for FI-AR Bill of exchange module for posting voucher to GL like (F-02) through external system?

UWL refresh issue

$
0
0

Hi Experts,

 

We have a UWL implemented in our SAP EP 7.31 portal.

It fetches work items from a back end system which is connected by a RFC destination.

 

It is seen that users have to hit the refresh button in UWL more than once to get the actual list.

 

When  I checked the logs, found the following connectivity error to back end system:

 

"

com.sap.portal.connectivity.destinations.PortalDestinationsServiceException: Could not get connection for alias PXXCLNTXXX. Contact your system administrator.

at com.sap.portal.connectivity.destinations.portal.PortalSystemLandscapeSource.getConnectionWithOverridingProps(PortalSystemLandscapeSource.java:123)

at com.sap.portal.connectivity.destinations.impl.DestinationServiceImpl.getConnection(DestinationServiceImpl.java:261)

at com.sap.portal.connectivity.destinations.DestinationsService.getConnection(DestinationsService.java:122)

at com.sap.netweaver.bc.uwl.utils.r3.Transaction.begin(Transaction.java:112)

at com.sap.netweaver.bc.uwl.utils.r3.Transaction.createInput(Transaction.java:216)

at com.sap.netweaver.bc.uwl.core.connect.webflow.R3SubstitutionManager.getAllSubstitutions(R3SubstitutionManager.java:120)

at com.sap.netweaver.bc.uwl.core.SubstitutionCheckThread$1.run(SubstitutionCheckThread.java:51)

at com.sap.netweaver.bc.uwl.core.SubstitutionCheckThread$1.run(SubstitutionCheckThread.java:40)

at java.security.AccessController.doPrivileged(Native Method)

at javax.security.auth.Subject.doAs(Subject.java:337)

at com.sap.netweaver.bc.uwl.core.SubstitutionCheckThread.run(SubstitutionCheckThread.java:40)

at com.sap.netweaver.bc.uwl.core.ThreadManager$PoolWorker.run(ThreadManager.java:209)

Caused by: com.sapportals.connector.connection.ConnectionFailedException: Connection Failed: A nested exception occurred. Could not initialize physical connection.

at com.sapportals.connectors.SAPCFConnector.SAPConnectorException.getNewConnectionFailedLocalizedException(SAPConnectorException.java:182)

at com.sapportals.connectors.SAPCFConnector.connection.SAPCFConnectorManagedConnectionFactory.createManagedConnection(SAPCFConnectorManagedConnectionFactory.java:155)

at com.sap.engine.services.connector.jca.ConnectionHashSet.match(ConnectionHashSet.java:401)

at com.sap.engine.services.connector.jca.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:295)

at com.sap.engine.services.connector.jca.ShareableConnectionManager.allocateConnection(ShareableConnectionManager.java:54)

"

 

But when I pinged the destination, it shows successful connection established.

 

Is there any option that I could try.

 

Regards, Biswajit.

bgRFC configuration

$
0
0

Hi,

I have a doubt with the bgRFC configuration.

 

First step, I create the supervisor destination. Second step, I want to create an Inbound destination. This link explain how to create an inbound destination:

http://help.sap.com/saphelp_nw70ehp3/helpdata/en/48/973e3755493987e10000000a421937/content.htm?frameset=/en/48/9709f255493987e10000000a421937/frameset.htm&current_toc=/en/33/12e0f98f494692b9777dd0ce9fba1e/plain.htm&node_id=111

 

It says: “you can maintain a separate inbound destination for each application.”

 

I see that in tx SBGRFCCONF I can create one or more Inbound destination and I can associate it with an RFC. But how can I reserve one of it for a specific application? How can the application choose one specific Inbound destination?

 

Thank you

Regards,

Mark

Execute RFCs in a queue

$
0
0

Hi Experts

 

I want to execute 3-4 RFCs in a queue in a sequence.

How can i execute these set of RFCs in a queue.

 

Please provide the inputs

 

Thanks

Akriti

Different result in PGX & ISX

$
0
0

Hi experts:

          I write a program to upload a excel into a table(mian function is 'GUI_UPLOAD') and this program has completed this function. After connecting in PGX successfully I input the same parameter as in ISX  and I find I got different result.,my core function was not be called by the url. What's the matter with it? I can't find  any bugs of it.

Thanks!

 

程序1.JPG

 

程序2.JPG

 

 

后台.JPG

Viewing all 1115 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>