Quantcast
Channel: SCN: Message List - ABAP Connectivity
Viewing all 3125 articles
Browse latest View live

Re: Abap client proxy

$
0
0

Hi Jon,

 

Whenever something unexpected happens, I think it's best to find out if a request has been sent out correctly from the client proxy and received by the web service.

 

If the web service is an SAP web service, you can use the following

1. SRT_UTIL transaction. You can find out more from the link below

http://wiki.scn.sap.com/wiki/display/ABAPConn/ABAP+Web+Service+Monitors

 

2. You may want to enable logging and tracing as well.

http://help.sap.com/saphelp_nwpi711/helpdata/en/2f/9eddbb74b84775931ca9f2297c77be/content.htm

 

Hope this helps.

 

Regards,

Stevanic


Re: BAPI_MATERIAL_MAINTAINDATA_RT gives error KM701, but manual entry succeeds

$
0
0

My hooded friend, you are a legend!

Re: Abap client proxy

$
0
0

Hi Stevanic,

 

I have executed the client proxy with the testing tool provided in SE80 and i receive parameters from the external WS. I have implemented a testing program on which the WS is called with the same parameters and it does not retrieve data.

 

In both cases the log is ok.

 

Thanks

 

Regards

 

Jon

Re: URL rewriting for a WebService Consumer Proxy

$
0
0

Hi Stefan,

 

You are right! It doesn't support to set URL / HTTP parameters outside the logical port.

 

Nevertheless, I have debugged the whole engine and found out that via custom coding (enhancements / modifications) and with extreme attention, the URL can be rewritten as desired.

 

When a method of the proxy is called, let's say for instance: lo_proxy->logout (...) - as written up for example, the method CL_HTTP_CLIENT=>CREATE_BY_URL is called dynamically.

In this method, in the "url" variable is the desired URL that needed to be rewritten.

 

Here it's about an importing parameter, so it cannot be changed so easily, but it's not impossible.

Another place where a nice Enhancement can be created is at the beginning of the FM "SWLWP_URI_PARSE".

 

You need to be very careful not to change these places in all cases (this CREATE_BY_URL will be called pretty much), JUST when the specific conditions are fulfilled.

 

10.10.200.202 - Remote Desktop Connection.jpg

 

Have a great day / week!

 

Warm regards,

Alex

MIRO - BAPI_INCOMINGINVOICE_CREATE

$
0
0

Hello,

 

When I have arelease inFIfroman entryfortheBAPItransactionMIRO-ACWT_ITEM WT_WITHCDfield isnot filledcausingproblemwhenclearingtheaccounting document.

 

DocumentofMIRO

 

ScreenHunter_02 Jun. 04 11.27.jpg

 

 

FIdocument - Code ofwithholding taxisnot filled.

 

 

ScreenHunter_01 Jun. 04 11.21.jpg

 

Does anyone havea hint howI cansolve this problem.

IDOC Reprocessing

$
0
0

Hi Everybody,

 

 

I am replicating the G/L Master data from production to quality using ALE IDOC.When i do it i am getting the error message as "G/L account XXXXXXX is not allowed in the system".When i reprocess the same it is getting posted in the target system as desired.

Here my question is,why the idoc fails to post in the first attempt (Inbound system) and why it is getting posted at the time of reprocessing.

 

Can you please let me know what leads for the IDOC reprocessing.I googled but did not find the anwer for it.

 

 

Regards

 

Sriram.

Save XML with HTTP connection

$
0
0

Hello,

 

I have an XML file and I need to save it in a HTTP patch.

 

The transformation code it's working and I created an HTTP connection(SM59) that is working as well. I'm never did that before but I guess that I'm open the connection on my ABAP code, since it ask for user and password to login, but I have no idea how to save something in there.

 

Follow the code:

 

data: client      type ref to if_http_client.

data: request     type ref to if_http_request.

 

cl_http_client=>create_by_destination(

                 exporting destination = http_dest

                 importing client = client ).

 

   call method client->request->set_method(

     if_http_request=>co_request_method_get ).

 

* set protocol version

   client->request->set_version(

        if_http_request=>co_protocol_version_1_0 ).

 

* content type

   call method client->request->if_http_entity~set_content_type

     exporting

       content_type = 'multipart/form-data'.

 

*** Send HTTP request

   call method client->send

     exceptions

       http_communication_failure = 1

       http_invalid_state         = 2

       http_processing_failed     = 3

       http_invalid_timeout       = 4

       others                     = 5.

   if sy-subrc <> 0.

     raise connection_error.

   endif.

 

*** Get GTTP response

   call method client->receive

     exceptions

       http_communication_failure = 1

       http_invalid_state         = 2

       http_processing_failed     = 3

       others                     = 4.

 

   if rc = 0.

 

*** Read HTTP RETURN CODE

     client->response->get_status( importing code = http_rc ).

 

     if http_rc <> 200.

       """KO

     else. "status 200 ->>OK

       clear: xml_xstring.

       xml_xstring = client->response->get_data( ).

 

     endif.

   endif.

 

* VERY IMPORTANT: close your connection

   client->close( ).

 

   call function 'SRTUTIL_HELPER_XML_SHOW'

     exporting

       xdoc = xml_xstring

       html = abap_false.


Thanks,

Andréa

Re: IDOC Reprocessing

$
0
0

Hello Sriramulu,

 

Did you try to debug it.It might be locking issue. Take message number/class and check where used list of that message. Put break point at location and check in both case 1. Direct Processing

2. Reprocessing


Re: Save XML with HTTP connection

$
0
0

Hello Andrea,

 

Did you try using IF_HTTP_CLIENT~AUTHENTICATE method of class CL_HTTP_CLIENT.

Idocs delins : Delete field PARTN in E1EDKA1 we

$
0
0

Hello,

 

My problem is linked to the field   PARTN in the segment E1EDKA1 in the idocs DELFOR01 ,  Now i have a  value in this field <PARTN>  .

 

I want to delete this  fileld  in the idocs , so to generate idocs without fiels Partn in the segement E1EDKA1-we ?

 

 

Where this information is managed ? please help

 

 

 

Thank you

SAP NW RFC - Error LNK2019

$
0
0

Hello

 

I am programming a simple RFC server program which should be called by an ABAP program. It compiles without any errors, but please can somebody help me with the following linker errors:

 

1>myrfc2010.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_nlsui_initialize" in Funktion "_wmain".

1>myrfc2010.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_RfcListenAndDispatch@12" in Funktion "_nlsui_main".

1>myrfc2010.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_RfcRegisterServer@12" in Funktion "_nlsui_main".

1>myrfc2010.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_RfcInstallServerFunction@16" in Funktion "_nlsui_main".

1>myrfc2010.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_RfcCloseConnection@8" in Funktion "_nlsui_main".

1>myrfc2010.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_RfcGetFunctionDesc@12" in Funktion "_nlsui_main".

1>myrfc2010.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_RfcOpenConnection@12" in Funktion "_nlsui_main".

1>C:\startrfc2010.exe : fatal error LNK1120: 7 nicht aufgelöste externe Verweise.

 

I think I set all the project properties right and tried a lot of different things to solve the problem but now I do not know what to do.

 

Thank you for your help in advance and best regards

Max

Re: Disable ZMMH1 and use BMMH1 in LSMW

$
0
0

If someone has the same problem: the correct table name is 'SXDA2'.

Re: Logon Property: RFCWithDialog Problem

$
0
0

Hi Fernando

 

I'm trying to do the same. Once I get here "If rfcFunc.Call = True " my excel macro is still running but no window is popping up.

Did you meanwhile find any solution?

Thx

Re: Interesting DELVRY03 SHPCOND problem

$
0
0

Hi Aditya!

 

Please check if the table-field MARA-VHART is filled for the material 1227010095.

You will find this information under:

MM02 > Sales: General/Plant Data > Packaging mat. type (this field must have a Packaging Material Type)

 

If you can't see this field for your material type IPAM, you can bring it back to the screen using transaction OMSR > Field Search > MARA-VHART > Field Selection

 

Then find your material type, and select to be optional if the current option is Hide.

Save everything and the field will appear again in MM02.

 

I hope it helps!

Re: No IDOC generated when PO is deleted

$
0
0

did you get any resolution to why no idoc is generated when deletion happens?


WSDL generation

$
0
0

    
Hi,

 

SAP always generates sequence definitions in WSDL like this:

 

    <xsd:sequence>

     <xsd:element name="item" type=...

    </xsd:sequence>

 

so that sequences in messages look like in this example:

 

         <Errors>

            <item>

               ...

           </item>

            <item>

               ...

           </item>

         </Errors>

 

Is there any way to control wsdl generation to have different item tags in different sequece type definitions.

 

         <Errors>

            <error>

               ...

 

         <Materials>

            <material>

               ...

 

Thanks,

Victor

Re: NULL bytes in HTTP Response

$
0
0

Hi Rauno,

 

Have you resolved your problem above?

If not, my suggestion is to republish the web service again. There may be some changes to the RFC parameters that need to be reflected in the web service.

Moreover, test your web service with Soap UI to make sure that it has been created correctly.

 

Hope this helps.

 

Regards,

Stevanic

Re: Mass SMQ1 Process

$
0
0

Or, you can enter the outgoing message queue, SMQ1

 

Select all objects in the queue using the select all icon.

Then go to menu edit > change view (or press F8)

 

Then menu edit > reset status (or shift + f6)

This will trigger all queue items to automatically begin processing in the outbound queue.

 

You can do the same for smq2 as well.

 

Regards,

 

Malcolm

Re: RFC Destination SAPFTPA is not working

$
0
0

Hi

Greetings!!

Actually i am also stuck up in a similar situation.

When I use SAPFTP as the destination since it works. However with SAPFTPA, i am getting the same login error as in your case.

 

If you were successful in getting the issue resolved, can you please share the solution.

with best regards,

Hector

Issue connecting from NWBC to SAP App server

$
0
0

Hello All,

 

We having activated MDG for material master in our sandbox environment. I am able to login into the SAP_MDGM_MENU_03 (Master Data Governance for Material: Menu) successfully.

 

But once I go in, the other functionality are not working. For. e.g. Change material, search material. On clicking any of the links it gives a HTTP: 500 server error.

 

I went to ST22 and checked the dump and it gave the following message - Runtime error GETWA_NOT_ASSIGNED

 

Also when going into SM59 transaction it gives a message - RFC call back check not secure.

 

Please provide any pointers.

 

Thank you

Lakshminarayanan

Viewing all 3125 articles
Browse latest View live


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