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

Error While Migrating material Master using BAPI

$
0
0

Hi all,


Am getting Error Like material not created can any one help me on this. Am trying to migrate material master using standard bapi.


DATA : WA_HEADDATA TYPE BAPIMATHEAD,

  WA_CLIENTDATA TYPE BAPI_MARA,

  WA_CLIENTDATAX TYPE BAPI_MARAX.

DATA : IT_MATERIALDESCRIPTION TYPE TABLE OF BAPI_MAKT,

  WA_MATERIALDESCRIPTION TYPE BAPI_MAKT.

DATA : IT_RETURN TYPE TABLE OF BAPIRET2,

  WA_RETURN TYPE BAPIRET2.

TYPES: BEGIN OF TY_MARA, "internal table as per flat file structure

  MATNR TYPE MARA-MATNR,

  MTART TYPE MARA-MTART,

  MBRSH TYPE MARA-MBRSH,

  MATKL TYPE MARA-MATKL,

  MEINS TYPE MARA-MEINS,

  MAKTX TYPE MAKT-MAKTX,

  END OF TY_MARA.

DATA : IT_MARA TYPE TABLE OF TY_MARA,

  WA_MARA TYPE TY_MARA.

**selection screen

PARAMETERS: P_FILE TYPE RLGRAP-FILENAME. "file input

 

AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE. "f4 helop for file input

  PERFORM FILE_HELP.

 

AT SELECTION-SCREEN ON HELP-REQUEST FOR P_FILE. "F1 help for file input

  MESSAGE 'Please press f4 to select file' TYPE 'I'.

 

START-OF-SELECTION.

  DATA : LV_FILE TYPE STRING.

  LV_FILE = P_FILE. "to avoid type conflict

  CALL FUNCTION 'GUI_UPLOAD' "upload flat file

  EXPORTING

  FILENAME = LV_FILE

  FILETYPE = 'ASC'

  HAS_FIELD_SEPARATOR = 'X'

* HEADER_LENGTH = 0

* READ_BY_LINE = 'X'

* DAT_MODE = ' '

* CODEPAGE = ' '

* IGNORE_CERR = ABAP_TRUE

* REPLACEMENT = '#'

* CHECK_BOM = ' '

* VIRUS_SCAN_PROFILE =

* NO_AUTH_CHECK = ' '

* IMPORTING

* FILELENGTH =

* HEADER =

  TABLES

  DATA_TAB = IT_MARA "internal table

* CHANGING

* ISSCANPERFORMED = ' '

* EXCEPTIONS

* FILE_OPEN_ERROR = 1

* FILE_READ_ERROR = 2

* NO_BATCH = 3

* GUI_REFUSE_FILETRANSFER = 4

* INVALID_TYPE = 5

* NO_AUTHORITY = 6

* UNKNOWN_ERROR = 7

* BAD_DATA_FORMAT = 8

* HEADER_NOT_ALLOWED = 9

* SEPARATOR_NOT_ALLOWED = 10

* HEADER_TOO_LONG = 11

* UNKNOWN_DP_ERROR = 12

* ACCESS_DENIED = 13

* DP_OUT_OF_MEMORY = 14

* DISK_FULL = 15

* DP_TIMEOUT = 16

* OTHERS = 17

  .

  IF SY-SUBRC <> 0.

* Implement suitable error handling here

  ENDIF.

  LOOP AT IT_MARA INTO WA_MARA.

  WA_HEADDATA-MATERIAL = WA_MARA-MATNR. "material no

  WA_HEADDATA-IND_SECTOR = WA_MARA-MBRSH. "industry sector

  WA_HEADDATA-MATL_TYPE = WA_MARA-MTART. "material type

  WA_HEADDATA-BASIC_VIEW = 'X'. "basic view

  WA_CLIENTDATA-MATL_GROUP = WA_MARA-MATKL. "material group

  WA_CLIENTDATA-BASE_UOM = WA_MARA-MEINS. "base Unit Of measure

  WA_CLIENTDATAX-MATL_GROUP = 'X'. "passing material group

  WA_CLIENTDATAX-BASE_UOM = 'X'. "passing base unit of measure

 

  WA_MATERIALDESCRIPTION-LANGU = 'EN'. "english language

  WA_MATERIALDESCRIPTION-LANGU_ISO = 'EN'. "ISO language

  WA_MATERIALDESCRIPTION-MATL_DESC = WA_MARA-MAKTX. "material descriptions

  APPEND WA_MATERIALDESCRIPTION TO IT_MATERIALDESCRIPTION.

  CLEAR WA_MATERIALDESCRIPTION.

**Create/update materials using BAPI_MATERIAL_SAVEDATA

  CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'

  EXPORTING

  HEADDATA = WA_HEADDATA

  CLIENTDATA = WA_CLIENTDATA

  CLIENTDATAX = WA_CLIENTDATAX

* PLANTDATA = WA_PLANTDATA

* PLANTDATAX = WA_PLANTDATAX

* FORECASTPARAMETERS =

* FORECASTPARAMETERSX =

* PLANNINGDATA =

* PLANNINGDATAX =

* STORAGELOCATIONDATA = WA_STORAGELOCATIONDATA

* STORAGELOCATIONDATAX = WA_STORAGELOCATIONDATAX

* VALUATIONDATA =

* VALUATIONDATAX =

* WAREHOUSENUMBERDATA =

* WAREHOUSENUMBERDATAX =

* SALESDATA = WA_SALESDATA

* SALESDATAX = WA_SALESDATAX

* STORAGETYPEDATA =

* STORAGETYPEDATAX =

* FLAG_ONLINE = ' '

* FLAG_CAD_CALL = ' '

* NO_DEQUEUE = ' '

* NO_ROLLBACK_WORK = ' '

  IMPORTING

  RETURN = WA_RETURN

  TABLES

  MATERIALDESCRIPTION = IT_MATERIALDESCRIPTION

* UNITSOFMEASURE = IT_UNITSOFMEASURE

* UNITSOFMEASUREX = IT_UNITSOFMEASUREX

* INTERNATIONALARTNOS =

* MATERIALLONGTEXT = IT_MATERIALLONGTEXT

* TAXCLASSIFICATIONS = IT_TAXCLASSIFICATIONS

* RETURNMESSAGES = IT_RETURN

* PRTDATA =

* PRTDATAX =

* EXTENSIONIN =

* EXTENSIONINX =

  .

  IF WA_RETURN-TYPE = 'E'.

  CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.

  WRITE:/ WA_HEADDATA-MATERIAL, 'is not created' COLOR 3.

  ELSE.

  CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

  EXPORTING

  WAIT = 'X'.

  IF SY-SUBRC EQ 0.

  WRITE:/ WA_HEADDATA-MATERIAL, 'is created' COLOR 5.

  ENDIF.

  ENDIF.

  ENDLOOP.

FORM FILE_HELP .

  CALL FUNCTION 'KD_GET_FILENAME_ON_F4' "get file name on F4 help

* EXPORTING

* PROGRAM_NAME = SYST-REPID

* DYNPRO_NUMBER = SYST-DYNNR

* FIELD_NAME = ' '

* STATIC = ' '

* MASK = ' '

* FILEOPERATION = 'R'

* PATH =

  CHANGING

  FILE_NAME = P_FILE

* LOCATION_FLAG = 'P'

* EXCEPTIONS

* MASK_TOO_LONG = 1

* OTHERS = 2

  .

  IF SY-SUBRC <> 0.

* Implement suitable error handling here

  ENDIF.

ENDFORM. " FILE_HELP


How to get data from Application layer to Presentation layer?

$
0
0

Hi all,

 

Can any one tell how can we get the data from application layer to presentation layer at run time in SAP-ABAP.

Rows Grouping with separate heading for each group in ALV Output Webdynpro

$
0
0

Hi Experts,

 

I have a requirement to display my Web dynpro ALV Output having 30 rows.. In which I have to group few records with respective headings as shown below. I have the key to identify the Group now I am looking for how to display the group heading dynamically( In each group the number of rows will vary based on the user action).

 

Webdynpro ALV.PNG

 

Quick responses will be appreciated.

 

Thanks

SM37 Background Job with Program RSBDCBTC

$
0
0

Hello everyone ,

 

I have 5 sessions created out of LSMW namely by A1, A2, A3, A4 ,A5 and every session has an individual session ID. My requirement is to process all the sessions one after other.

 

I have created 5 variants with unique ID's in program RSBDCBTC and made it as 5 steps in my job so that it can be executed one after another . When i see the job log i could see only first step is getting executed and the job status is finished and rest of the steps are not executed.

 

Any advise on how to get this done to get the rest of the steps executed as soon as the previous step is done ?

 

Thanks,

AJ.

How to reprocess outbound idoc with status 32

$
0
0

Hello All,

 

If the status of the outbound idoc after using the we02 edit becomes 30 then you can do following to change it again to stsus 03 to send it to target system:

 

1. The status will get changed to 30. Try Executing RSEOUT00 program.

2. If that does not work, first change the status from 30 to 32 using program RC1_IDOC_SET_STATUS and then Execute RSEOUT00 progra

Error:Problem with SOAP Class while sending IDoc from ECC to HCI

$
0
0

Dear Friends,

 

"System Basis version is 731"

 

I was done integration between the systems ECC and HCI (SAP On-Premise), it is working for inbound as well as outbound IDocs,but in the Out bound IDoc I am getting status like "Problem with SOAP Class" (HCI getting proper Payload means IDoc data).

 

 

Please refer the error screen shot

erroridoc.png

  erroridoc1.png

Please help me to solve this issue.

HCI( HANA CLOUD INTEGRATION)

 

Thanks and Regards

Nani

REST PROGRAMMING EXAMPLE R_CAR

WE20 missing Message Type

$
0
0

Hello Colleagues,

 

we need do configure a partner profile and missing the Message Type "HRMD_A" in our CRM system.

 

How do we get the missing Message Type in our System?

 

Many thanks in advance!

 

Regards,

 

Jochen


RFC for list of activated lang in SAP server

$
0
0

Hi ,

 

Is there any RFC to get the list of activated languages in SAP server ?

By activated languages i mean i should be able to login in my SAP system using that language.

 

Thanks & Regards,

Akriti

Message as "Runtime error has occurred" in ME21N and ME22N tcodes in quality after upgrade

$
0
0

Hi,

 

Am getting the Message as "Runtime error has occurred"  message class 00 & number 341 in transaction ME21N and ME22N tcodes in quality system after giving the all inputs while creating the purchase order after upgrade form 4.6 to ECC 6.0  pfa file for reference

 

Could someone help me on this how to resolve this issue.

Deletion of PO with ABAP Programming Error

$
0
0

Hello SAP Gurus,

 

We are having an ABAP  Programming error. When we are deleting /viewing a certain Purchase Order in ME22n/ME23n the SAP says:

Category                              ABAP Programming Error

Runtime Errors                     CONVT_NO_NUMBER

Except.                                 CX_SY_CONVERSION_NO_NUMBER

ABAP Program                     SAPLMELOG

Application Component       MM-PUR

Date and Time                     09/08/2015 08:50:01

 

Short text

    Unable to interpret "#####" as a number.

 

What happened?
    Error in the ABAP Application Program

    The current ABAP program "SAPLMELOG" had to be terminated because it has
    come across a statement that unfortunately cannot be executed.

 

What can you do?
    Note down which actions and inputs caused the error.


    To process the problem further, contact you SAP system
    administrator.

    Using Transaction ST22 for ABAP Dump Analysis, you can look
    at and manage termination messages, and you can also
    keep them for a long time.

 

Error analysis
    An exception occurred that is explained in detail below.
    The exception, which is assigned to class 'CX_SY_CONVERSION_NO_NUMBER', was not
     caught in
    procedure "ME_LOG_READ" "(FUNCTION)", nor was it propagated by a RAISING
     clause.
    Since the caller of the procedure could not have anticipated that the
    exception would occur, the current program is terminated.
    The reason for the exception is:
    The program attempted to interpret the value "#####" as a number, but
    since the value contravenes the rules for correct number formats,
    this was not possible.

 

 

How to correct the error
    Whole numbers are represented in ABAP as a sequence of numbers, possibly
     with an algebraic sign.
    The following are the possibilities for the representation of floating
    point numbers:
      [algebraic sign][mantissa]E[algebraic sign][exponent]
      [algebraic sign][whole number part].[fraction part]
    For example, -12E+34, +12E-34, 12E34, 12.34
    If the error occurred in your own ABAP program or in an SAP
    program you modified, try to remove the error.


    If the error occures in a non-modified SAP program, you may be able to
    find an interim solution in an SAP Note.
    If you have access to SAP Notes, carry out a search with the following
    keywords:

    "CONVT_NO_NUMBER" "CX_SY_CONVERSION_NO_NUMBER"
    "SAPLMELOG" or "LMELOGU04"
    "ME_LOG_READ"

 

 

Thank you very much!

Data transfer (Bi-Directional) between SAP system and legacy frontend system via BIZTALK

$
0
0

Hi All,


I have to create service notification in SAP custom screen and send that created Service notification details to Legacy system via BIZTALK. And at the same time I have to receive data from legacy system via BIZTALK in SAP. For this I have to use WSDL(Web service definition language).

 

As per my understanding following steps needs to be done:


1. Create a Ztable in SAP to store all notification data.

2. Create RFC in SAP with Service definition to send data from SAP to Legacy system.(WSDL creation in SOAMANAGER).

3. To receive data from Legact to SAP via BIZTALK, I have to create a consumer proxy in SE80.

4. And use dynamic class created in consumer proxy for data fetching to SAP.


Can anyone explain what all steps I have to follow for mapping this process.

 

Thanks in advance,

 

Vijju


Unable to assign the connection to TSAPFunctions from TSAPLogon

$
0
0

Hi All,

 

Unfortunately I didn't find the better category to post the message. Therefore, have chosen this one.

 

I have got a my own Delphi program connecting to SAP using TSAPLogonControl and retrieving the table data using TSAPFunctions component.

The issue is that it works on our legacy system (SAP R/3 4.6c based) and doesn't work on SAP ECC 6.0 and SAP SRM causing the EOLEException with the message "Internal Application Error".

 

  Connection                  := SAP.newConnection;

  Connection.User             := AnsiUpperCase(Edit1.text);

  Connection.System           := 'RRO';

  Connection.Client           := '100';

  Connection.ApplicationServer:= 'SAPIDES';

  Connection.SystemNumber     := '00';

  Connection.Password         := Edit2.text;

  Connection.Language         := 'EN' ;

 

 

  if Connection.LogOn(0,False) = true then<------ this part works fine and gets into the IF condition. I have set it to False to see which server is exactly being connected.

  begin

 

    SAPFn.Connection := Connection;<--Error appears here on attempt to assign the connection established at the line above to the SAPFunctions

    SAPFn.RemoveAll;

    Funct := SAPFnc.add('GET_TABLE_RFC');

//  Funct := SAPFn.add('TABLE_ENTRIES_GET_VIA_RFC');

    Funct.exports('CLIENT').value := SAP.Client;

//  Funct.exports('LANGU').value := 'E';

    Funct.exports('TABNAME').value := TabName;

    if not Funct.call then

    begin

      if GrpName='' then showMessage(Funct.exception)

    end

    else

    begin

................................ the rest of the code

    end;

end;

 

May this happen due to the RFC connection limitations on these servers or due to my user authorizations?

 

Thanks,

 

Vusal Musayev

Configuring webservices for FSCM-CR setup without PI

$
0
0

Hi,

 

We are currently trying to configure a single erp-system with integrated FSCM-CR functionality. Since we are running a single instance ERP, we do not want to use PI for our integration but are trying to use web services. Unfortunately we keep on running into connection errors. the relevant service definitions and corresponding consumer proxies have been established but it seems like some core setup in SPROXY or SOAmanager is still missing. the error that we are getting is...

 

     HTTP-Client: exception during receive: HTTP_COMMUNICATION_FAILURE</Trace>
          </Trace>

<Trace level="1" type="System_Error">HTTP-client: error response= <html><head><title>Application Server Error</title></head><body> <H2> <b>404 Resource not found</b></H2><br>Partner not reached<br><br> Error is logged with Tag: {000f571c}<br><hr> Thu Sep 03 10:45:22 2015 </body></html></Trace>

 

 

<Trace level="1" type="System_Error">Error while receiving by HTTP (error code: 400 , error text: ICM_HTTP_CONNECTION_FAILED)</Trace>
    
The HTML error message reads
    

     404 Resource not found

 

     Partner not reached

 

     Error is logged with Tag: {000f571c}


     Thanks!
     Christian

 

Screen painter issue

$
0
0

Hi Gurus,

 

One of the user not able to open the SAP screen painter from his location. When he tried to open the screen painter he is getting error like "Graphicla Layout Editor is not available. Continue with alphanumeric editor". Also he tried test the RFC connection "EU_SCRP_WN32". Same got failed with below error

 

From our end we are able to open the screen painter without any issue and able to perform the connection test for RFC EU_SCRP_WN32 successfully.

 

LOCATION    SAP-Gateway on host EFLTDS / sapgw00

ERROR       service '' unknown

 

 

TIME        Thu Sep 10 15:16:07 2015

RELEASE     640

COMPONENT   NI (network interface)

VERSION     37

RC          -3

MODULE      ninti.c

LINE        465

DETAIL      NiPGetServByName: service '' not found

SYSTEM CALL getservbyname

COUNTER     41582

 

 

**************************************************************************

Sep 10 15:17:13 2015

ERROR => R3ISearchPartner: timeout, partner LU: >%%SAPGUI%%<, TP: >gnetx.exe< [gwr3cpic.c   6172]

ERROR => R3ISearchPartner: HOST: %%SAPGUI%%, conv ID: 83264924 [gwr3cpic.c   6185]

 

Below is the rfc trace(dev_rfc.trc).

 

T:4056 ======> Connect to SAP gateway failed

Connect_PM  TPNAME=IGS.EFD, GWHOST=EFLTDS, GWSERV=3300

ERROR       internal error

            (this retcode should be handled by caller of NI-layer)

TIME        Thu Jul 30 13:38:22 2015

RELEASE     640

COMPONENT   NI (network interface)

VERSION     37

RC          -8

MODULE      nixx.c

LINE        666

COUNTER     3

>TS> Thu Jul 30 13:40:27 2015

T:4056 Error RFCIO_ERROR_SYSERROR in abrfcio.c : 2362

>TS> Thu Jul 30 13:41:32 2015

T:4056 Error RFCIO_ERROR_SYSERROR in abrfcio.c : 2362

 

One more rfc trace file(dev_rfc0)

 

Timeout during connection setup (check that partner exists)

ABAP Programm: RSRFCPIN (Transaction: SM59)

Called function module: RFC_PING

User: EFLABAP (Client: 112)

Destination: EU_SCRP_WN32 (handle: 2, , {7F960BAE-834F-4BFD-9288-2A1CA5408DD6})

Error RFCIO_ERROR_SYSERROR in abrfcpic.c : 3286

CPIC-CALL: 'ThSAPCMRCV' : cmRc=20 thRc=456

Timeout during connection setup (check that partner exists)

Error RFCIO_ERROR_MESSAGE in abrfcio.c : 1661

**** Trace file opened at 20150910 161042 India Standard Time, SAP-REL 640,0,404 RFC-VER 3 1330872 MT-SL

 

Please check and let us know the solution.

 

Regards,

Zahir Hussain


Calling web service from external software

$
0
0

Hello All,

 

I am calling some web-services from external system (Non SAP), I am getting the below error:

 

 

The server did not provide a meaningful reply; this might be caused by a contract mismatch, a premature session shutdown or an internal server error.

 

In Se80 and SOAMANAGER I can see the WSDL file but while calling the same in external system, it gives me an error

 

Does anybody know how to solve this?

 

Kind Regards

Manna Das

RFC_READ_TABLE- how to transfer a standard table value from one server to another server

$
0
0

hi,

my requirment is i have to use rfc 'RFC_READ_TABLE'

using this rfc i have to transfer the values of a table in a sap server to another sap server

for example say values of table mara in sap sd server to mara table of sap prd server

Need Solution for the below Requirement

$
0
0

Hello Experts,

 

     I would request you to kindly provide the solution for my requirement. Here are the below details.

 

Sender System: SAP ECC system.

Middle Ware System: PI system.

Target System: File.

Sender Structure: IDoc.

 

    Detail Description:

                   

                              ECC system triggers standard IDoc MATMAS04 to PI system. Each time that transaction BD21 is executed an IDoc will be created. Here the most important requirement is the order of the IDoc transmission must be ensured. The order of the time stamp of change of the material should be the order in which the IDocs are transferred. Independent from the numbering of the IDoc.

                 

    For Example:

 

          The material was created at 10:01, then changed once at 10:04 and then changed a second time at 10:07. The IDocs won’t necessarily be created in the same order of these changes. The information related to the creation of the material master at 10:01 is in IDoc 101, the info about the second change in IDoc 102 and the info about the third change is in IDoc 103. The transmission order of the IDocs should be IDoc 101, 103, 102, so that the creation and the changes are in the correct order.

 

Material MasterChange time (timestamp)IDoc-no (automatically created)Transmission order (IDoc-no)
471111.09.2015 10:01 h101101
471111.09.2015 10:07 h102103
471111.09.2015 10:04 h103102

 

Each IDoc will only contain a change for ONE Material, the change is defined by the change pointer i.e. if the same material was changed twice within 10 minutes 2 IDocs for this material will be created.

 

     We are using PO 7.4 single stack. Also we have tried EOIO option in Sender Communication channel from PI end. But in case of any failure in one IDoc the remaining IDocs will be effected. So other than EOIO could you please kindly help me if any thing needs to be done PI end.

 

     Else case please let me know whether the time stamp need to be care from ECC system. If so kindly provide me the code regarding the same.

 

Appreciate you help for the quick response.

 

Thanks alot in advance!!!!!

 

Best Regards,

Prashanth Bharadwaj.

Rows Grouping with separate heading for each group in ALV Output Webdynpro

$
0
0

Hi Experts,

 

I have a requirement to display my Web dynpro ALV Output having 30 rows.. In which I have to group few records with respective headings as shown below. I have the key to identify the Group now I am looking for how to display the group heading dynamically( In each group the number of rows will vary based on the user action).

 

Webdynpro ALV.PNG

 

Quick responses will be appreciated.

 

Thanks

missing entries in BDCP2

$
0
0

Hi,

 

whenever customer classifications are changed, change pointers should be updated in BDCP2 and should be processed using a job and sent as idoc to different system.

 

but it is observed that pointers are present only on friday even though we make changes daily.

 

message type in bdcp2  : zabc

in bd50                              : zabc is active

in bd52 and bd60            : zabc is not present.

 

Kindly suggest where to check the configurations releated to this issue.

 

note : changes are sent in idoc using job zdef

 

Thanks in advance:)

Viewing all 1115 articles
Browse latest View live


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