Quantcast
Channel: SCN : All Content - ABAP Connectivity
Viewing all 1442 articles
Browse latest View live

Error in format date Oracle -> SAP

$
0
0

Hi Abapers,

 

 

I am facing the following issue: i have a date field in ORACLE database and in SAP a have the corresponding field as DocDate(8),  

 

When i read the field to the internal table i receive 12-JUN-1. I get the same result even if the field in SAP is declared as DocDate TYPE date,


I tried something like


SELECT field1, field2, to_char(date1, 'YYYYMMDD') date1, field3, .... from table@remoteDB


and my questions are:


is this correct?


If yes how can avoid to write all the fields in the SQL statement: field1, field2, etc, etc getting the fields date correctly.

I have tables with many fields and it will become huge selects.


Thank you and best regards,


João Lages Fernandes




bapi for lt06

$
0
0

hi all,

 

i have been looking for a bapi for lt06.

i want to create the transfer order no. from document no.

i tried bapi explorer and se37 but couldnt find any.

can anyone plz let me know if there exosts a bapi for the above.

thanks.

 

Edited by: S jain on Jan 5, 2010 11:28 AM

Problem with Popup window in BDC

$
0
0

Hi Gurus,

 

I have an SHDB record for transaction VA01 that is called by an ABAP code via "CALL TRANSACTION 'VA01' USING bdc_tab mode 'N' update 'S'".

 

It does work when I use the 'A' mode, but when I use 'N' mode it shows an error that can't find a window. But this window is a modal popup asking for copy the taxes for all entries in ITEM TAB.

 

We have many BDC here that works in 'N' mode, but none of them have modal popup windows.

 

I've already searched for this problem in SDN but I couldn't find any answer.

 

May anyone help me please?

 

Thanks very much.

 

Fabio Purcino

Problems sending PDF Form by Email

$
0
0

Hi everyone.

 

I have a problem with a "sending PDF Form by email".

 

when I send a form to print. this is printing good.  But if I send the form like pdf by mail. the logo doesn't appear.

 

Someone knows why or have any idea about it or maybe it happened  once?.

 

Tks.

Function module is returning SY-SUBRC = 1 (SYSTEM_FAILURE).

$
0
0

RFC Function module RFC_SET_REG_SERVER_PROPERTY is called with EXCLUSIVE = ‘Y’. This FM is returning SY-SUBRC = 1 (SYSTEM_FAILURE). Due to this reason we are getting error message: “Only available with the RFC library from 4.0C onwards”.

 

Following is the sequence of FMs called:

 

1. ZMM_I0419_BRAINWARE_ARCHIVING

2. SCMS_UPLOAD

3. SCMS_FE_START_REG_SERVER

4. SYSTEM_START_REG_SERVER – This function module is called with EXCLUSIVE = “Y”

5. SYSTEM_SET_REG_SERVER_PROPERTY

6.RFC_SET_REG_SERVER_PROPERTY

 

 

Environment Details:

 

Application Server is 64 Bit and the application is 32 Bit compatible, It is successfully sunning with other client.

We are using 32 bit SAP GUI on the server.

we have librfc32.dll and librfc32u.dll in Syswow64 folder(32 bit dll install folder).

We are using sapftp.exe to post a document in SAP.

 

This is impacting our GO LIVE badly, Please help if you have seen such issue.

 

Praveen.

IDOC trigger using Z change pointers for standard SAP table

$
0
0

For IDOC trigger, is using custom change pointers on standard SAP master data tables, a good idea? A seasoned abaper told me "it will mess with the standard" and further told to go with scheduled job.

 

So, for example, say that my data for table T001K is updated via transports in PRD and I need to transfer this updated data via IDOC to an external system. Since there is no standard message type for this data, I will create a new one. Further, I will create a new change pointer for table T001K (it already has six fields with their data elements activated for Change Documents). Then I link the message type and the new change pointer. And so on an so forth. I have followed the procedure given here:SAP Tips: A to Z of Custom Change Pointer

 

Now, the question is, will this be a good idea to capture data and trigger IDOC? Or a batch program with calls to standard FM to read CDHRD/CDPOS be a more suitable option.

 

I need to know if a near instantaneous data transfer (and an effecient one as far as the system performance and reliability is concerned) can be acheived. If there is any other way of doing this, I am not aware of it!

 

Any one has any input/experience on this?

how to resolve Issues while implement gateway security by using reginfo,secinfo?

$
0
0

Hi,

 

I want to implement gateway security using  gw/reg_info,  gw/sec_info,  gw/reg_no_conn_info.

 

so far I have created reginfo and secinfo files to allow all internal traffic and I kept gw/reg_no_conn_info=11, gw/acl_mode=1

 

reginfo

======

#VERSION=2

P TP=*,HOST=local

P TP=*,HOST=internal

P TP=*,HOST=*.abc.com

 

with the above setting I believe all the programs with in sap systems(including app servers), also system from domain abc.com can register programs with out having any issues.

 

secinfo:

======

#VERSION=2

P TP=* USER=* USER-HOST=local HOST=local

P TP=* USER=* USER-HOST=internal HOST=internal

 

similarly  as per secinfo content I believe that all the internal traffic can go with out any issue with in sap system.

 

beside that I have activated gateway logging to find the rejecting connections if any.

 

I have following questions:

===================

 

1)As the reginfo,secinfo files maintained can I remove gw/acl_mode=1 parameter ?

 

2)if I want to add a specific programs to register from 3rd party system, suppose a program called "zram" from system "172.198.10.1" where I suppose to add it. Do I need to add that IP to secinfo along with reginfo?

 

3)when I set parameter gw/reg_no_conn_info=11 when convert to binary it equals to 00001011

 

what exactly this means from the following definitions from note 1444282

 

 

1 1298433 Bypassing security in reginfo & secinfo


2 1434 117 Bypassing sec_info without reg_info


4 1465129 CANCEL registered programs


8 1473017 Uppercase/lowercase in the files reg_info and sec_info

 

will that means 8+2+1 means satisfying the above 3 lines except condition 4 ?

4) I enabled  gateway logging, how could I catch rejecting connections from third party systems?

 

5)From simulation mode I got to know that It will satisfy reginfo,secinfo restrictions and it will allow all other traffic.so what is the added advantage with this when activate?

 

6)is there any sap native tools which help while preparing reginfo, secinfo files?

 

Regards,

Koteswararao.Davuluri(Koti).

Change with holding tax for vendor

$
0
0

Hi all,

 

I have a requirement of chnaging withholding tax for exisitng vendor. Is it possible to achive this using any function module or BAPI and ateast by BDC or LSMW ??

 

 

Best suggestions will be rewarded with points.

 

Sivaprasad


BD64 IDOC Data Filters

$
0
0

Hi

I have a IDOC (message type J3AGRI) in the ALE Distribution Model and this is working fine.

But now I need to filter the IDOC - certain actions I do not want to send the IDOC.

but I cannot see the Data Filter that I can see on other IDOCS in BD64.

 

I have the field

 

BD64 - Already set up but I need to filter J3AGRI on MSGFN.

BD95 - done (field MSGFN was already there)

BD59 - done

MSGFN     E1J3AGC     3     MSGFN     0     3
MSGFN     E1J3AGE     2     MSGFN     0     3
MSGFN     E1J3GH1     1     MSGFN     0     3

 

Why can't I see the Data Filter option against my message type in BD64

List of Exits before payment proposal in F110

$
0
0

Hi Experts,

    Can any tell the exits/ badi's available before payment proposal starts.So that i can post credit memos based on the number of invoices for that vendor.

Process Synchronisation Between ABAP and the Presentation Server

$
0
0

Hello community,

 

the overview of this forum offers a lot of connection technologies from and to ABAP, e.g. HTTP, XML and SOAP, RFC/BAPI etc. etc. etc. I am the opinion, that the COM interface (Component Object Model) is also a connection technology of ABAP. Sure, it works only with dialog processes with the SAP GUI for Windows, on this point it is limited in comparison with other connectivity methods. Last but not least combines the ABAP COM interface an easy coding with powerful possibilities.

 

Here now an example of process synchronisation between ABAP and the Microsoft Office suite, e.g. Excel with VBA (Visual Basic for Applications), via a COM library. For the process synchronization and communication offers Windows the IPC interface (Interprocess Communication).

 

There are different technics to synchronize and to communicate between processes on Windows, like

  • Events,
  • Semaphores,
  • FileMaps and
  • the ClipBoard
  • etc.

 

To use this possibilities I programmed a COM library which offers this technics. You find it here.

 

At first the ABAP program which creates an event, with the name TestEvent, and then it waits until the event is set.

 

"-Begin-----------------------------------------------------------------

  Report  zCOMIPC.

 

  "-Includes------------------------------------------------------------

    Include OLE2INCL.

 

  "-Constants-----------------------------------------------------------

    Constants Infinite Type i Value -1.

 

  "-Variables-----------------------------------------------------------

    Data oIPC Type Ole2_Object.

    Data rc Type i.

    Data hEvent Type i.

 

  "-Main----------------------------------------------------------------

    Create Object oIPC 'COMIPC'.

 

    If sy-subrc = 0 And oIPC-HANDLE <> 0 And oIPC-TYPE = 'OLE2'.

 

      "-Event-----------------------------------------------------------

        Call Method Of oIPC 'EventCreate' = hEvent

          Exporting #1 = 'TestEvent' #2 = 1 #3 = 0.

        Call Function 'AC_SYSTEM_FLUSH' Exceptions Others = 1.

       

        If hEvent <> 0.

 

          Call Method Of oIPC 'EventWait' = rc

            Exporting #1 = 'TestEvent' #2 = Infinite.

          "-------------------------------------------------------------

          "-

          "- At this point the ABAP program waits until the VBA routine

          "- was executed

          "-

          "-------------------------------------------------------------

          Call Function 'AC_SYSTEM_FLUSH' Exceptions Others = 1.

 

          Call Method Of oIPC 'EventClose' = rc

            Exporting #1 = hEvent.

          Call Function 'AC_SYSTEM_FLUSH' Exceptions Others = 1.

         

        EndIf.

 

      Free Object oIPC.

 

    EndIf.

 

"-End-------------------------------------------------------------------

 

Here now the VBA routine, to set the event.

 

'-Begin-----------------------------------------------------------------

 

  Public oIPC As COMIPC.COMIPC

 

  '-Sub TestEvent-------------------------------------------------------

    Sub TestEvent()

   

      Set oIPC = CreateObject("COMIPC")

     

      oIPC.EVENTSET "TestEvent"

     

      Set oIPC = Nothing

     

    End Sub

 

'-End-------------------------------------------------------------------

 

After the event is set, the ABAP program continues running and closes the event.

 

This simple example should demonstrate, on the one hand, that with little effort very interesting solutions can be created and, on the other hand, how powerful these solutions can be. On this way you can synchronize now different processes on the application and presentation server, in a context of dialog processes. The example above could be used to get data from ABAP to the Office suite, the data could be processed, in a longer running process, and after this the data comes back to the same ABAP process, which continues its work. Certainly there are many ways to realize this, and this is one of them.

 

The COM library itself is nothing more than an easy wrapper around the Windows API functions of IPC. Here as example the EventSet method:

 

'-EventSet--------------------------------------------------------------

'-

'- Sets the specified event object to the signaled state

'-

'- Param: EventName As String

'- Return: Zero if fails

'-

'-----------------------------------------------------------------------

  Method EventSet(ByVal EventName As String) As Long

 

    '-Variables---------------------------------------------------------

      Local NameOfEvent As AsciiZ * %Max_Path

      Local hEvent As Dword

      Local resSet As Long

      Local resClose As Long

 

    NameOfEvent = ACode$(EventName)

    hEvent = OpenEvent(%EVENT_ALL_ACCESS, 0, NameOfEvent)

    If hEvent Then

      '-Set event-------------------------------------------------------

        resSet = SetEvent(hEvent)

      '-Close handle----------------------------------------------------

        resClose = CloseHandle(hEvent)

      '-Return----------------------------------------------------------

        If resSet And resClose Then

          Method = resSet

        Else

          Method = 0

        End If

    Else

      Method = 0

    End If

 

  End Method

 

You can realize it in any programming language which supports COM library creation.

 

Hope you enjoy the perspective.

 

Cheers

Stefan

Error in BAPI_INCOMINGINVOICE_CREATE

$
0
0

Hi Experts,

 

I am trying to run a BAPI:

BAPI_INCOMINGINVOICE_CREATE

 

I am getting an error: The error is:

 

' Enter a reference to a valid goods receipt (line 000010) '

 

Which field to fill to remove this error?

Please suggest.

 

Regards,

Sangeeta.

Object reference not set to an instance of an object

$
0
0

Hi Experts.

 

I am trying call an webservice synch from ABAP (ECC 6.17)

 

I had already imported wsdl into Service Consumer to generate my ABAP class and had created ZSER01 Logical Port as following

 

logical port.png

I incremented wsdl as this SAP Note suggested - 1710478 - How to select custom certificate list (PSE) for Logical Ports in SOAMANAGER

 

I configured PSE in STRUST and now I can connect to webservice but the response is "Object reference not set to an instance of an object".

 

I really don't know how I can solve this.

 

My ABAP program for test is simple:

 

DATA: proxy  TYPE REF TO zserasaco_wsgestordecisao_soap,       ls_output TYPE zserasaanalisar_credito_ssoap,       ls_input  TYPE zserasaanalisar_credito_ssoap1,       fault  TYPE REF TO cx_root.
 ls_input-s_cnpj          = '61586558002562'.
 ls_input-s_usr_gc        = '879'.
 ls_input-s_pass_gc       = '16407'.
 ls_input-s_usr_ser       = '9759'.
 ls_input-s_pass_ser      = '4287'.
 ls_input-vr_compra       = 97765.
 ls_input-b_serasa        = 'X'.
 ls_input-b_atualizar     = space.
 ls_input-i_quadro_social = 1.
 TRY.     CREATE OBJECT proxy       EXPORTING         logical_port_name = 'ZSER01'.     BREAK-POINT.     TRY.         CALL METHOD proxy->analisar_credito_s           EXPORTING             input  = ls_input           IMPORTING             output = ls_output.       CATCH cx_ai_system_fault INTO fault.         ls_output-analisar_credito_sresult = fault->get_text( ).       CATCH cx_ai_application_fault INTO fault.         ls_output-analisar_credito_sresult = fault->get_text( ).     ENDTRY.   CATCH cx_ai_system_fault INTO fault.     ls_output-analisar_credito_sresult = fault->get_text( ).
 ENDTRY.
 WRITE ls_output-analisar_credito_sresult.

Any idea?

 

Thanks in advanced.

BAPI_COSTCENTER_CREATEMULTIPLE

$
0
0

Hello Guru's,

 

I am facing a problem in BAPI_COSTCENTER_CREATEMULTIPLE while processing... that BAPI is executing fine, but data was not getting updated in D/B table, the program i have enclosed below, please have a look and kindly suggest me what is wrong in that...

 

Helpful Answeres will be Rewarded,

 

&----


*& Report  ZKCZ005R                                                    *

*&                                                                     *

&----


*&                                                                     *

*&                                                                     *

&----


 

REPORT  ZKCZ005R NO STANDARD PAGE HEADING LINE-SIZE 255 LINE-COUNT 64

MESSAGE-ID ZFA.

 

*&----


*&  Tables Declaration

*&----


 

TABLES:T001.

 

*&----


*&  Global Types Declaration

*&----


 

TYPES: BEGIN OF TY_DATA,

        KOSTL TYPE KOSTL,             " Cost center

        VALID_FROM TYPE DATAB,        " From date

        VALID_TO TYPE DATBI,          " To date

        PERSON_IN_CHARGE TYPE VERAK,  " Person

        DEPARTMENT TYPE ABTEI,        " Dept

        COSTCENTER_TYPE TYPE KOSAR,   " cost center type

        COSTCTR_HIER_GRP TYPE KHINR,  " cost center hier

        COMP_CODE TYPE BUKRS,         " company code

        BUS_AREA TYPE GSBER,          " Business area

        PROFIT_CTR TYPE PRCTR,        " Profit center

        LOCK_UPDATE TYPE BKZOB,       " Lock Commit

        CSTG_SHEET TYPE AUFKALSM,     " Costing Sheet

        TITLE TYPE ANRED,             " Addr.title

        TELCO_LANGU TYPE SPRAS,       " Language

        NAME TYPE KTEXT,              " Name

        DESC TYPE KLTXT,              " Description

        MSG(55) TYPE C,               " Message

       END OF TY_DATA.

 

*&----


*&  Work area Declaration

*&----


 

DATA:

     WA_DATA TYPE TY_DATA.

*&----


*&  Internal tables Declaration

*&----


 

DATA: T_DATA TYPE STANDARD TABLE OF TY_DATA INITIAL SIZE 0,

      t_write_list TYPE TABLE OF abaplist.

 

 

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

*Global Variables

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

 

CONSTANTS: c_yes TYPE xfeld VALUE 'X'.

 

data: v_subrc TYPE sy-subrc,

      v_error_exist TYPE xfeld.

 

*&----


*&  Selection Screen Declaration

*&----


 

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.

PARAMETERS: p_test TYPE checkbox DEFAULT 'X'.

SELECTION-SCREEN END OF BLOCK b1.

SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.

SELECTION-SCREEN BEGIN OF LINE.

PARAMETERS: rb_file RADIOBUTTON GROUP r1.

SELECTION-SCREEN COMMENT 3(29) FOR FIELD p_file.

PARAMETERS: p_file LIKE rlgrap-filename.

SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN POSITION 3.

SELECTION-SCREEN COMMENT 3(29) FOR FIELD p_header.

PARAMETERS: p_header(3) TYPE n DEFAULT 1.

SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN BEGIN OF LINE.

PARAMETERS: rb_clbd RADIOBUTTON GROUP r1.

SELECTION-SCREEN COMMENT (28) text-003.

SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN END OF BLOCK b2.

PARAMETERS: p_intca TYPE c NO-DISPLAY.  " Internal call

 

 

*----


  • Screen Validations

*----


AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.

  PERFORM get_filename USING  p_file.

 

AT SELECTION-SCREEN ON p_file.

  PERFORM validate_filename.

*----


  • Start Of Selection

*----


START-OF-SELECTION.

 

IF p_intca IS INITIAL.

  • Do this because we do not want to lock the material items

  • when using BAPI_GOODSMVT_CREATE. With SUBMIT, the locks

  • on materials will be released

    SUBMIT ZKCZ005R

      WITH p_test = p_test

      WITH rb_file = rb_file

      WITH p_file = p_file

      WITH p_header = p_header

      WITH rb_clbd = rb_clbd

      WITH p_intca = 'X'

      EXPORTING LIST TO MEMORY AND RETURN.

    CALL FUNCTION 'LIST_FROM_MEMORY'

      TABLES

        listobject = t_write_list

      EXCEPTIONS

        not_found  = 1

        OTHERS     = 2.

    IF sy-subrc <> 0.

 

    ENDIF.

    IF NOT t_write_list[] IS INITIAL.

      CALL FUNCTION 'WRITE_LIST'

        TABLES

          listobject = t_write_list.

    ENDIF.

  ELSE.

    CHECK v_subrc IS INITIAL.

    PERFORM upload_data CHANGING v_subrc.

    IF v_subrc IS INITIAL.

      PERFORM CREATE_DATA.

    ENDIF.

  •    PERFORM display_data.

 

ENDIF.

*----


  • End Of Selection

*----


END-OF-SELECTION.

 

  • ----------------------------------------------------------------------

  • SUBROUTINES

&----


&----


*&      Form  get_filename

&----


FORM get_filename  USING pi_file TYPE rlgrap-filename.

  DATA: lv_file  TYPE string,

        li_files TYPE filetable,

        lv_subrc TYPE i,

        lv_title TYPE string VALUE 'File System for Pres. Server'.

 

  lv_file = pi_file.

 

  CALL METHOD cl_gui_frontend_services=>file_open_dialog

    EXPORTING

      window_title            = lv_title

      default_filename        = lv_file

    CHANGING

      file_table              = li_files

      rc                      = lv_subrc

    EXCEPTIONS

      file_open_dialog_failed = 1

      cntl_error              = 2

      error_no_gui            = 3

      OTHERS                  = 4.

 

  READ TABLE li_files INDEX 1 INTO pi_file.

 

ENDFORM.                    " get_filename

&----


*&      Form  validate_filename

&----


FORM validate_filename .

 

  CHECK rb_file = c_yes.

  IF p_file IS INITIAL.

    MESSAGE e318 WITH 'Enter file path name'.

  ENDIF.

 

ENDFORM.                    " validate_filename

 

&----


*&      Form  upload_data

&----


FORM upload_data CHANGING pc_v_subrc TYPE sy-subrc.

  DATA: lv_file TYPE string,

        lv_subrc LIKE sy-subrc,

        lv_tabix TYPE sy-tabix,

        lwa_data TYPE TY_data,

        lt_clip(1024) OCCURS 0 WITH HEADER LINE.

 

  CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'

    EXPORTING

      text = 'Uploading data'(t01).

 

  CLEAR pc_v_subrc.

  REFRESH T_data.

  IF rb_clbd = 'X'.

    CALL FUNCTION 'CLPB_IMPORT'

      TABLES

        data_tab = lt_clip.

    LOOP AT lt_clip.

      CHECK lt_clip NE space.

      CLEAR lwa_data.

      PERFORM asc2dat_konvert

          IN PROGRAM saplgrap USING lt_clip lwa_data lv_subrc.

      APPEND lwa_data TO T_data.

      CLEAR:Lwa_DATA.

    ENDLOOP.

 

  ELSEIF rb_file = 'X'.

    lv_file = p_file.

    CALL FUNCTION 'GUI_UPLOAD'

      EXPORTING

        filename            = lv_file

        filetype            = 'ASC'

        has_field_separator = 'X'

        dat_mode            = 'X'

      TABLES

        data_tab            = t_data

      EXCEPTIONS

        OTHERS              = 4.

 

    IF sy-subrc NE 0.

      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

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

    ENDIF.

endif.

 

  IF t_data[] IS INITIAL.

    pc_v_subrc = 4.

  ENDIF.

 

ENDFORM.                    " upload_data

 

&----


*&      Form  CREATE_data

&----


FORM CREATE_DATA .

  DATA: lv_tabix TYPE sy-tabix,

        lv_tot_records TYPE i.

    • For BAPI

  DATA : lt_data TYPE TABLE OF BAPI0012_CCINPUTLIST,

         lT_return TYPE TABLE OF bapiret2,

         lv_test TYPE bapi2017_gm_gen-testrun,

         LWA_DATA TYPE BAPI0012_CCINPUTLIST,

         LV_HEADER TYPE BAPI0012_GEN-CO_AREA.

 

 

  IF p_test IS INITIAL.

    CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'

      EXPORTING

        text = 'Posting data'(t02).

  ELSE.

    CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'

      EXPORTING

        text = 'Simulate posting'(t03).

  ENDIF.

 

  lv_test = p_test.

 

 

LOOP AT T_DATA INTO WA_DATA.

 

LWA_DATA-COSTCENTER =  WA_DATA-KOSTL.

LWA_DATA-VALID_FROM =  WA_DATA-VALID_FROM.

LWA_DATA-COMP_CODE = WA_DATA-COMP_CODE.

LWA_DATA-VALID_TO = WA_DATA-VALID_TO.

 

LWA_DATA-PERSON_IN_CHARGE = WA_DATA-PERSON_IN_CHARGE.

LWA_DATA-DEPARTMENT = WA_DATA-DEPARTMENT.

LWA_DATA-COSTCENTER_TYPE = WA_DATA-COSTCENTER_TYPE.

LWA_DATA-COSTCTR_HIER_GRP = WA_DATA-COSTCTR_HIER_GRP.

 

LWA_DATA-BUS_AREA = WA_DATA-BUS_AREA.

LWA_DATA-PROFIT_CTR = WA_DATA-PROFIT_CTR.

LWA_DATA-LOCK_IND_COMMITMENT_UPDATE = WA_DATA-LOCK_UPDATE.

LWA_DATA-CSTG_SHEET = WA_DATA-CSTG_SHEET.

 

LWA_DATA-ADDR_TITLE = WA_DATA-TITLE.

LWA_DATA-TELCO_LANGU = WA_DATA-TELCO_LANGU.

LWA_DATA-NAME = WA_DATA-NAME.

LWA_DATA-DESCRIPT = WA_DATA-DESC.

 

APPEND: LWA_DATA TO LT_DATA.

CLEAR: LWA_DATA,WA_DATA.

 

ENDLOOP.

 

 

LV_HEADER = 'SG01'.

CALL FUNCTION 'BAPI_COSTCENTER_CREATEMULTIPLE'

  EXPORTING

    CONTROLLINGAREA           = LV_HEADER

   TESTRUN                    = ' '

   MASTER_DATA_INACTIVE       = ' '

  TABLES

    COSTCENTERLIST            = LT_DATA

    RETURN                    = LT_RETURN

 

IF SY-SUBRC EQ 0.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

   EXPORTING

     WAIT   = 'X'.

ELSE.

   CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.

ENDIF.

 

ENDFORM.                    " CREATE_data

 

 

.Thanks,

Murali

Intercompany posting through BAPI_ACC_DOCUMENT_POST

$
0
0

Hi,

 

We have a requirement for Intercompany GL posting , we are using BAPI_ACC_DOCUMENT_POST for standard posting but looks like it does not work with intercompany posting.

 

We tried posting it thr bapi BAPI_ACC_DOCUMENT_POST bt it gives an error as "Minor difference * USD 30 cannot be allocated across company codes" bt the document is getting posted properly using FB01.

 

We needed help on this if anyone may have worked on a similar requirement.

 

Thanks,

 

 

Regards,

Ajay.k


Error LSMW - /SAPDMC/LSMW_OBJ_060045

$
0
0

Dear experts,

 

I'm in trouble when I do the LSMW for BOM loads (SAP PP).

 

Follows the error attached, no message: / SAPDMC/LSMW_OBJ_060045.

I believe the error is in the file conversion in T_CODE FILE. But I can not find.

Please help me.

 

Thanks.

Cristiane.

Distribution of exchange rates

$
0
0

Hi

 

We are in need to distribute exchange rates from one system to another. We are looking to setup an ALE between the setup. Plz share if any relavant message types/standard programs to distribute the same..

 

Raju.

BAPI vs RFC

$
0
0

what is diference Between RFC & BAPI... Can we use BAPI without RFC ?

Sending a IDOC from TIBCO to SAP

$
0
0

Hi All,

 

Have a strange issue here , we are connecting from tibco to SAP. We are facing intermittent issue, where some of the idocs are getting generated and some of them are not.

tibco adapter version is 6.0 connecting to ERP ehp6 .

Have seen any product issues as such before with the above versions?

basically tibco would be calling the function module to generate the idoc" IDOC_INBOUND_ASYNCHRONOUS." right?

What would be the flow if i understand correctly it would be like this right tibco adapter --> SAP generate idoc --> send confirmation back to tibco ---> process the idoc.

Where would the sm58 sessions come into play will they come into play after the idoc has been created to update the records ?

 

Thanks,

CJ40 Change Cost Planning using KBPP_EXTERN_UPDATE_CO

$
0
0

Hi,

I'm trying to use FM KBPP_EXTERN_UPDATE_CO to change existing Cost Planning for WBS elements for a project, but I either get the following error: "Overall plan less than plan value distributed" or the update terminates with a system dump "Exception condition "ERR_UPDATE raised. Termination occurred in the ABAP program "SAPLKBPV" - in "KBPV_POST_GE_VB"".

I've searched the SDN, internet and OSS, but can't find any help. I'm using SAP ERP 6.0 and I've applied OSS note 1078106, but this hasn't fixed the error.

I'm calling the FM in the following way:

 

itab_bpak-e_objnr = itab_wbs3-objnr.

itab_bpak-wert = g_wert.

itab_bpak-twaer = 'GBP'.

itab_bpak-e_ges = k_true.

itab_bpak-e_versn = f_version_to.

append itab_bpak.

 

call function 'KBPP_EXTERN_UPDATE_CO'

EXPORTING

I_BUDGET_ACTIVITY = 'KSTP'

  • I_BUDGET_ACTIV_SUP_RET = ' '

I_COMMIT_DATA = 'X'

I_DELTA_AMOUNTS = ' '

I_ROLLUP_DATA = 'X'

I_CHECK_PLAN_DATA = 'X'

I_APPLICATION = 'P'

I_COMMIT_ALL = ' '

IMPORTING

E_ERRORS_FOUND = g_errors

tables

it_bpak = itab_bpak

IT_RETURN = itab_return2

EXCEPTIONS

NO_UPDATE = 1

OTHERS = 2.

 

I've tried switching the I_ROLLUP_DATA and I_CHECK_PLAN_DATA flags off, I've also tried switching I_COMMIT_ALL on, but it still does not change the existing cost plan.

I would be grateful if anyone has used this FM successfully could they please provide me with an example of their code.

Thanks,

Cara.

Viewing all 1442 articles
Browse latest View live


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