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

JCoServer Error Comunication

$
0
0

Hello,

 

We're trying to connect a Java program to R / 3 system but have an error;

I created a port in the transaction WE21

I created a profile partner in the transaction WE20

Create a distribution model in transaction BD64 distribute and when I try I get the following error:

 

 

Target system JAVSYS

 

Communication error occurred

The JCoServerFunctionHandlerFactory com.sap.conn.idoc.jco.rt.DefaultJCoIDocCallH

 

Anyone know anything about this error or where I can see more detail

 

Best Regards!


cl_gui_frontend_services= execute close adobe app synchronous

$
0
0

Dear expert,

 

I have the following code to print a PDF in a loop. It works but the PDFs are printed out of order.  So I tried to use 'synchronous' option. However now I have to close the adobe reader application manually before it would go to the next print.  I noticed others had the same issue (see below thread), but no resolutions though.  Do you guys come across such issue before?  I even coded to close the adobe reader app using tastkill (see further below), however it kills the adobe app totally even before the PDF is sent to the printer.  Any thoughts? Any help would be greatly appreciated.

 

https://scn.sap.com/thread/1955518

 

 

          CALL METHOD cl_gui_frontend_services=>execute

            EXPORTING

*             document               =

              application            = 'AcroRd32'

              parameter              = wa_auffile-line

*             default_directory      =

*             maximized              =

              minimized              = 'X'

              synchronous            = 'X'

              operation              = ' '

            EXCEPTIONS

              cntl_error             = 1

              error_no_gui           = 2

              bad_parameter          = 3

              file_not_found         = 4

              path_not_found         = 5

              file_extension_unknown = 6

              error_execute_failed   = 7

              synchronous_failed     = 8

              not_supported_by_gui   = 9

              OTHERS                 = 10.

          IF sy-subrc <> 0.

            MESSAGE ID sy-msgid TYPE 'I' NUMBER sy-msgno

                       WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

          ENDIF.                       " IF sy-subrc <> 0.

 

 

 

Below is the code to auto close adobe application.

 

          CALL METHOD cl_gui_frontend_services=>execute

            EXPORTING

*             document               =

              application            = 'taskkill'

              parameter              = '/F /IM acroRD32.exe'

            EXCEPTIONS

              cntl_error             = 1

              error_no_gui           = 2

              bad_parameter          = 3

              file_not_found         = 4

              path_not_found         = 5

              file_extension_unknown = 6

              error_execute_failed   = 7

              synchronous_failed     = 8

              not_supported_by_gui   = 9

              OTHERS                 = 10.

          IF sy-subrc <> 0.

            MESSAGE ID sy-msgid TYPE 'I' NUMBER sy-msgno

                       WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

          ENDIF.                       " IF sy-subrc <> 0.

 

 

Many thanks.

Joanna

How to trigger the IDoc for the Remittance ...

How to handling duplicate data in infocube

$
0
0

Hi BW expert,

 

I have problem with my data in infocube, the data has been duplicate since loading data from R3 to infocube. the data in infocube look like this :

 

Curr   Amount

IDR   50,154.08

IDR   50,154.08

IDR   50,154.08

IDR   68,382.00

IDR   68,382.00

IDR   68,382.00

IDR  110,171.00

IDR  110,171.00

IDR  110,171.00

 

I only use 2 table VBAK and VBAP to produce that output.

 

why did it happen ?, and how to handle it ?, please help me...

 

Thanks before,

FKA

Check for Unicode Categories

$
0
0

Hi,

 

what I am trying to do is to check in ABAP a given URL for characters from certain UC categories.

 

For example, I want to check if an input characters belongs to category [L], which is actually consisting of the (sub) categories Ll, Lm, Lo, Lt and Lu.

There are thousands of characters in these categories.

 

In Perl, for example, a regex for checking for a lower case letter would simply look like this \p{Ll}, but that does no work in ABAP regex.

 

Does anyone had such a problem before or even a solution for this in ABAP?

 

Thanks, Otto

Restrict RFC's to invoke from the excel File.

$
0
0

Hi Experts,

 

I have a use case  where the SAP RFC's [with Remote enabled] should always be invoked from the another SAP system but the same RFC's should be restricted to call from the external program like excel.

 

Please help me to resolve this issue.

 

 

Thanks and Best Regards,

Vaibhav

Send bank details from source to target system via Idoc

$
0
0

Hello,

 

There is a source system in which the customer had two bank accounts attached to it, of these two accounts one is now deleted.

 

Now the user wants to send the details of the deleted bank account to the target system so that from the target system the bank account gets deleted from the customer.

 

User is trying to send the customer from source to target system via idoc but the bank details are not getting deleted.

 

How can we achieve this?

 

Regards,

Ankit Doshi

New Z communication method in customer master

$
0
0

Hello,

 

I am currently working on one enhancement to create a new communication method in SAP customer master -> address -> other communication. Steps followed so far to achieve this.

 

- Created a new entry in SA10 - Z11

- Copied program SZA6 function group to a custom function group and generated new screen for new communication method

- Did implicit enhancement in include LSZA1F52 to call a new screen using new function module

 

When I click on other communication method, I can see new communication method in the list Z11, and I can also view the new screen once I select the communication method Z11. When I click on save, nothing happens.

 

It would be appreciated if anyone share their views on this or better approach than this.

 

Thanks

Pavan


Auto-check of values given by Web Service

$
0
0

Hi guys,

 

I have a function module which is called by a web service. Some of the attributes that are transported have fixed values defined in a domain, for example a flag can have the values "X" or "<empty>" only. I want the web service to check these attributes automatically before the function module is called - is it possible? If yes, how do I realise it?

 

Many thanks in advance for any information!

 

Cheers, Marius.

RFC_REMOTE_FILE

$
0
0

Hi together,

 

Since SAP removed fb RFC_REMOTE_FILE.....

Is there any other suitable fb in higher releases? (...or any other approaches)

 

Thanks for any help

Can't get Push Channel to work

$
0
0

Hi guys

 

I'm new to the SAP world and I wanted to try out the Push Channels in my SAPUI5 application. I followed this tutorial: ABAP Channels Part 1: WebSocket Communication Using ABAP Push Channels

I created the Push Channel and generated the class and service as described in the tutorial. I activated all the functions, the class and the push channel.

 

Here is how this looks like in SE80:

ABAP_Push_Channel.PNG

And here is the class with the functions implemented like in the tutorial:

ABAP_Push_Channel_class.PNG

 

I tried to use the channel in my SAPUI5 app like this:

 

jQuery.sap.require("sap.ui.core.ws.WebSocket");

var webSocket = new sap.ui.core.ws.WebSocket("ws://192.168.36.12:8000/sap/bc/apc/sap/zui5_eval_push_notifications");

 

I also tried "wss" instead of "ws" but that didn't work either.

 

Problem is, I get an error 500 from the server.

 

What could I have missed here? I went through a lot of additional tutorials but I couldn't find anything that worked.

Thank you so much :-)

Salary Register

$
0
0

Hi ,

 

I am doing ABAP-HR and i have to develop new Report  For monthly Salary Register for one of our client so please if anyone having code share with me .

 

 

Thanks,

 

Rajveer Rahekwal

Popup window appears when clicking test service- SICF

$
0
0

Dear All,

 

When connecting to GIS portal from ECC system it is not connecting automatically without any security.

 

From ECC system under tcode 'SICF' when we test the publish GIS service it automates to HTTP URL.

But at once a popup window security appears asking for basic authentication for username and password.

 

Also the RFC user id(system) often gets locked due to many incorrect attempts.

Please help how to avoid or ignore this popup. Many Thanks.

 

GISTestservice_popup.jpg

Butin other ECC quality and development system its working without any popup. Please find below screenshot:

GIS_sicf_test.jpg

SoapFaultCode:4 Server did not recognize the value of HTTP Header SOAPAction

$
0
0

Hi Experts,

 

I am trying to consume the SOAP web Service using the below program. But I am getting the below error 

 

SoapFaultCode:4 Server did not recognize the value of HTTP Header SOAPAction: .

 

I am now to this web service connectivity..

 

When I searched with the same error I found the below threads, but not able to understand how to try these solutions.

 

https://scn.sap.com/thread/1716805

 

Note: We dont have PI in our system, I am trying to use consume the SOAP web service through the below program directly from SAP-ECC.

 

Kindly give your valuable suggestions to solve this issue.

 

Thanks in advance.

 

REPORT zhr_mgr_webserv_test.

 

*declarations for Try/Catch block exception handling

DATA: exc TYPE REF TO cx_root.

DATA: msg TYPE string.

 

START-OF-SELECTION.

 

* declare a reference to your proxy consumer object

   DATA proxy_test TYPE REF TO zco_mgrtraining_soap1.

 

    TRY.

*     instantiate the object reference

       IF proxy_test IS NOT BOUND.

         CREATE OBJECT proxy_test TYPE zco_mgrtraining_soap1.

       ENDIF.

 

 

    DATA:input  TYPE zmgrcourse_categories_soap_in1,

          output  TYPE zmgrcourse_categories_soap_ou3.

 

    input-n_company_code = 'XXXX'.

    input-n_password = 'YYYY'.

 

***   *     call the method (web service call) you can use the pattern to generate the code if you wish

       CALL METHOD proxy_test->mgrcourse_categories

         EXPORTING

           input  = input

         IMPORTING

           output = output.

 

*     process the output

       DATA: wa_get_data TYPE PRXCTRL.

       LOOP AT output-mgrcourse_categories_result-controller INTO wa_get_data.

         WRITE wa_get_data-field .

         WRITE wa_get_data-value .

       ENDLOOP.

     CATCH cx_ai_system_fault INTO exc.

       msg = exc->get_text( ).

       WRITE:/  msg.

   ENDTRY.

Reg : Show mandatory in LSO Reason Cancelation

$
0
0

Hi,

 

I have an requirement that I need to be set a mandatory for the LSO Cancelation reason.

 

In the TCODE : LSO_PSV2 in that reason for cancellation drop down is available presently we can cancel the reason without specifying the Cancelation Reason.

 

But my requirement to set the mandatory to the Cancelation Reason.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Kindly suggest.

 

Regards,

Sadiq K


How to change primary key field dataelemet in customized table (ztable) ?

$
0
0

Dear Guru's,

 

        

 

I have created table.nd also created table maintaince generator.

i need to change primary key field domain element in that table..

 

 

 

i tried with se14 and se11.. but its not updated domain element. for that i need to give validation in

tgm.

Suppose company code  110 ..

tgm validate 110 company code only if give any other company code

through error message in tgm.

 

 

Regards,

syam.

SOAP:1027 SRT: Serialization / Deserialization failed

$
0
0

Dear Experts,

 

I am trying to consume the SOAP web Service using the below program. But I am getting the below error

 

SOAP:1027 SRT: Serialization / Deserialization failed

 

I am now to this web service connectivity..

 

When I searched with the same error I found the below threads, but not able to understand how to try these solutions.

 

https://scn.sap.com/thread/1716805

 

Note: We dont have PI in our system, I am trying to use consume the SOAP web service through the below program directly from SAP-ECC.

 

Kindly give your valuable suggestions to solve this issue.

 

Thanks in advance.

 

REPORT zhr_mgr_webserv_test.

 

*declarations for Try/Catch block exception handling

DATA: exc TYPE REF TO cx_root.

DATA: msg TYPE string.

 

START-OF-SELECTION.

 

* declare a reference to your proxy consumer object

   DATA proxy_test TYPE REF TO zco_mgrtraining_soap1.

 

    TRY.

*     instantiate the object reference

       IF proxy_test IS NOT BOUND.

         CREATE OBJECT proxy_test TYPE zco_mgrtraining_soap1.

       ENDIF.

 

 

    DATA:input  TYPE zmgrcourse_categories_soap_in1,

          output  TYPE zmgrcourse_categories_soap_ou3.

 

    input-n_company_code = 'XXXX'.

    input-n_password = 'YYYY'.

 

***   *     call the method (web service call) you can use the pattern to generate the code if you wish

       CALL METHOD proxy_test->mgrcourse_categories

         EXPORTING

           input  = input

         IMPORTING

           output = output.

 

*     process the output

       DATA: wa_get_data TYPE PRXCTRL.

       LOOP AT output-mgrcourse_categories_result-controller INTO wa_get_data.

         WRITE wa_get_data-field .

         WRITE wa_get_data-value .

       ENDLOOP.

     CATCH cx_ai_system_fault INTO exc.

       msg = exc->get_text( ).

       WRITE:/  msg.

   ENDTRY.


Also Please find the below output from my web service


<xsd:schema>schema</xsd:schema>xml</MGRCourseCategoriesResult>


Is both the formats are correct.... Please give some suggestions.

Awaiting your kind response.


Thanks,

Nalla B.

Connectivity solutions review

$
0
0

Hi Experts!

 

I've found an article ABAP Connectivity: Methods and Services

But I'm sure there must be some more connectivity methods and servces, such as Netveawer, XI, or JCo.

I need to have a general review of availiable ( willingly recommended) connectivity solutions for SAP.

Can you provide me with some short infos and/or links?

 

THX. Luki.

Error for conditional statements in SAP scripts

$
0
0

Hello,

 

I hav emade few changes in the script where I had to add conditions in the IF statement.

When I check I could see the condition is written correctly but getting an error AND,OR, or END of condtion expected.

 

Capture.PNG

Problem with date field with Oracle external database

$
0
0

Hi all,

 

i need to insert rows into Oracle external database. It's work fine with Native SQL instruction but i have a problem with date fields, the system goes back me an error.

 

My Oracle database is created like this :

 

CREATE TABLE ENT_ENTITE(

    ENT_No number(8) NOT NULL,

    ENT_DenSoc varchar(80) NOT NULL,

    TET_Code char(16) NOT NULL,

    ENT_CodeSiret varchar(14) NULL,

    ADR_Rue varchar(50) NULL,

    ADR_ComplRue varchar(50) NULL,

    ADR_Cedex varchar(10) NULL,

    ADR_CodePostal varchar(16) NULL,

    ADR_Ville varchar(32) NULL,

    ADR_CodePays char(32) NOT NULL,

    ENT_DtCessation date NULL,

    GRE_No number(6) NULL,

    DT_Mod date NOT NULL,

constraint PK_ENT_ENTITE primary key (ENT_No)            

)

 

In my ABAP code, if i fill the field 'ENT_DtCessation4 with the value 'NULL', the system return the following error :


"con=1(SAPEXTST.WORLD): ORA-01858: a non-numeric

character was found where a numeric was expected"

 

I don't know why.

 

Thansk for your help.

 

Regards,

Eric

Viewing all 1115 articles
Browse latest View live


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