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

IDOC to send HR data

$
0
0

Hi Experts ,

 

Is there any IDOC to send HR(employee) data.

Like in case of material we have BD10 tcode to send MATMAS.

 

Thanks & regards,

Akriti


Web service without SOA Manager

$
0
0

Can anyone help me with setting up a web service?

 

I'm trying to allow someone to search/view data on my SAP 7.0 server from another computer on the same network.  I don't have SOA Manager installed (which would make thing a whole lot easier) but I've been reading that there is a work around using the old transaction codes WSConfig and WSAdmin.  I'm logged in as an administrator but whenever I try to add a service or modify anything it says that I am not authorized.

 

Any help would be greatly appreciated.

 

Thanks in advance for your help.

 

Supporting Screenshots:

 

Hopefully this helps.  I feel like it is related in some way.

Displaying image.png

 

Displaying image.png

How to create a PR from a .net windows application

$
0
0

I need to create a pr from a .net windows application using bapi_pr_create is it possible ?

thanks in advance.

Status of IDOC 13 Retransmission OK

$
0
0

Hello,

 

I have an outbound IDOC where the status flow is 01--> 13--> 03-->12-->41--> 31 --> 13

 

I know that after status 12 IDOC is in target system and status 41 is application document created in target system.

 

At status 31 there is an error as no further processing , at status 13 it is retransmission OK.

 

All the outbound IDOCs are failed at the target system, please guide me where the error is.

 

 

Thanks,

Bala Krishna T.

Change pointers are not triggered for message type ADRMAS

$
0
0

Hi All,

 

 

While changing the email address of the vendor ,change pointers are not created for the message type ADRMAS. I have checked all the configuration part like BD60,BD52,BD50 and SCDO. Everything is fine. Suppose if we change the email address of the customer then the change pointers are triggered for the message type ADRMAS . Kindly let us know if any body know the reason.

 

 

Regards

Srihari

Getting dump call to messaging system failed: in RFC

$
0
0

Hi Experts,

 

I have a requirement where I need to pass data to the RFC and then PI team will be receiving this data.

 

Issue:

RFC throws a dump saying 'call to messaging system failed: '.

 

Though there is a dump, the data is getting successfully passed to PI system.

 

I am calling the RFC asynchronously (by adding in background task) in report,which prevents the dump.Also we can do exception handling by adding Exceptions options.

 

But when I execute the RFC function module directly, it gives me dump, which is required to be corrected.

 

Checked: All the things like, RFC destination created properly, the program id is registered, at PI side maintaining correct gateway details and providing the same program id.

 

Please help me resolving this issue.

 

Thanks in Advance!

 

Regards,

Priya Raja

Enquire SAP Java connector

$
0
0

Dear All,

 

Does anyone know is there any concern or issue that will exist if use SAP JCO in ABAP program? e.g.: stability.

We have an ABAP program which use JCO function as a connector for data convert from scanner to SAP.

 

Rdgs,
Emily

Problem with expend detail data with ALV_HIERSEQ_LIST

$
0
0

Hi all,

 

I have ABAP program with ALV_HIERSEQ, but i can't expand the detail data, please help me to solved this problem.

 

Thanks.

 

 

ABAP Program :

 

 

REPORT  ZEXP_RPT NO STANDARD PAGE HEADING

                               LINE-SIZE 255.

 

*------------------standard common includes----------------------------*

INCLUDE zin_alv_common.

 

*&---------------------------------------------------------------------*

*& Tables

*&---------------------------------------------------------------------*

TABLES : proj, prps, coep, afvc, zfiedt001.

*&--------------------------------------------------------------------*

*& Global Type

*&--------------------------------------------------------------------*

DATA : BEGIN OF it_head OCCURS 0,

        exp(1),

        kstar TYPE coep-kstar,

        ltext TYPE csku-ltext,

        act_wtgbtr TYPE coep-wtgbtr,

 

END OF it_head.

 

DATA : BEGIN OF it_detail OCCURS 0,

 

       kstar TYPE coep-kstar,

       budat TYPE cobk-budat,

       refbn TYPE cobk-refbn,

       sgtxt TYPE coep-sgtxt,

       det_wtgbtr TYPE coep-wtgbtr,

*      wbs TYPE prps-pspnr,

*      bil TYPE coep-wtgbtr,

*      pay TYPE coep-wtgbtr,

 

END OF it_detail.

 

DATA : BEGIN OF st_cobk OCCURS 0,

       kstar TYPE coep-kstar.

       INCLUDE TYPE cobk.

DATA : END OF st_cobk.

 

DATA : w_head LIKE it_head.

DATA : w_detail LIKE STANDARD TABLE OF it_detail WITH HEADER LINE.

*       it_head LIKE it_head.

 

*&--------------------------------------------------------------------*

*& Global Internal Table

*&--------------------------------------------------------------------*

DATA : gi_prps LIKE STANDARD TABLE OF prps WITH HEADER LINE,

        gi_proj LIKE STANDARD TABLE OF proj WITH HEADER LINE,

        gi_afvc LIKE STANDARD TABLE OF afvc WITH HEADER LINE,

        gi_coep LIKE STANDARD TABLE OF coep WITH HEADER LINE,

        gi_cobk LIKE STANDARD TABLE OF st_cobk WITH HEADER LINE.

*       gi_zfiedt001 LIKE STANDARD TABLE OF zfiedt001 WITH HEADER LINE.

 

*----------------------------------------------------------*

* Global Ranges                                            *

*----------------------------------------------------------*

RANGES: gr_coep_kstar FOR coep-kstar.

 

*&--------------------------------------------------------------------*

*& Selection Screen

*&--------------------------------------------------------------------*

SELECTION-SCREEN BEGIN OF BLOCK first WITH FRAME TITLE title.

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 1(18) t110 FOR FIELD p_bukrs.

PARAMETERS : p_bukrs LIKE coep-bukrs OBLIGATORY.

SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 1(15) t120 FOR FIELD p_perio.

SELECT-OPTIONS : p_perio FOR coep-perio.

SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 1(18) t130 FOR FIELD p_gjahr.

PARAMETERS : p_gjahr LIKE coep-gjahr.

SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 1(18) t140 FOR FIELD p_proj.

PARAMETERS : p_proj LIKE prps-psphi.

SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN END OF BLOCK first.

 

*----------------------------------------------------------------------*

* INITIALIZATION.

*----------------------------------------------------------------------*

INITIALIZATION.

title = 'Expense Report'.

t110 = 'Company Code'.

t120 = 'Period'.

t130 = 'Fiscal Year'.

t140 = 'Project Def.'.

*----------------------------------------------------------------------*

* START-OF-SELECTION.

*----------------------------------------------------------------------*

START-OF-SELECTION.

   PERFORM fm_init_data.

   PERFORM fm_collect_data.

   PERFORM fm_process_data.

   PERFORM fm_alv TABLES it_head.

*----------------------------------------------------------------------*

* END-OF-SELECTION.

*----------------------------------------------------------------------*

END-OF-SELECTION.

 

*&---------------------------------------------------------------------*

*&      Form  FM_INIT_DATA

*&---------------------------------------------------------------------*

*       text

*----------------------------------------------------------------------*

*  -->  p1        text

*  <--  p2        text

*----------------------------------------------------------------------*

FORM fm_init_data .

     IF p_bukrs IS INITIAL.

       MESSAGE 'Please Input Company Code' TYPE 'S' DISPLAY LIKE 'E'.

       STOP.

     ENDIF.

     IF p_proj IS INITIAL.

       MESSAGE 'Please Input Project Def' TYPE 'S' DISPLAY LIKE 'E'.

       STOP.

     ENDIF.

     IF p_perio IS INITIAL OR p_gjahr IS INITIAL.

       MESSAGE 'Please Input Period/Year' TYPE 'S' DISPLAY LIKE 'E'.

       STOP.

     ENDIF.

 

* build kstar for COEP.

   gr_coep_kstar-sign = 'I'.

   gr_coep_kstar-option = 'BT'.

   gr_coep_kstar-low  = '0000500000'.

   gr_coep_kstar-high = '0000510000'.

   APPEND gr_coep_kstar.

 

   gr_coep_kstar-low  = '0000511902'.

   gr_coep_kstar-high = '0000599999'.

   APPEND gr_coep_kstar.

 

 

   SORT gr_coep_kstar.

 

ENDFORM .              "fm_init_data.

*&---------------------------------------------------------------------*

*&      Form  FM_COLLECT_DATA

*&---------------------------------------------------------------------*

*       text

*----------------------------------------------------------------------*

*  -->  p1        text

*  <--  p2        text

*----------------------------------------------------------------------*

FORM fm_collect_data.

CLEAR : gi_prps, gi_afvc, gi_coep.

REFRESH : gi_prps, gi_afvc, gi_coep.

 

SELECT *

   INTO CORRESPONDING FIELDS OF TABLE gi_prps

   FROM prps

   WHERE psphi EQ p_proj.

 

IF gi_prps[] IS NOT INITIAL.

   SELECT *

     INTO CORRESPONDING FIELDS OF TABLE gi_afvc

     FROM afvc

     FOR ALL ENTRIES IN gi_prps

     WHERE projn EQ gi_prps-pspnr.

 

   SELECT *

     INTO CORRESPONDING FIELDS OF TABLE gi_coep

     FROM coep

     FOR ALL ENTRIES IN gi_prps

     WHERE objnr EQ gi_prps-objnr

       AND gjahr EQ p_gjahr.

*

*  SELECT *

*    INTO CORRESPONDING FIELDS OF TABLE gi_zfiedt001

*    FROM zfiedt001

*    FOR ALL ENTRIES IN gi_prps

*    WHERE pspnr EQ gi_prps-psphi.

ENDIF.

 

IF gi_afvc[] IS NOT INITIAL.

   SELECT *

     APPENDING CORRESPONDING FIELDS OF TABLE gi_coep

     FROM coep

     FOR ALL ENTRIES IN gi_afvc

     WHERE objnr EQ gi_afvc-objnr

       AND gjahr EQ p_gjahr

       AND perio IN p_perio

       AND wrttp EQ '04'

     .

ENDIF.

SORT gi_coep by kstar.

DELETE gi_coep WHERE kstar NOT IN gr_coep_kstar.

DELETE gi_coep WHERE objnr(2) EQ 'OR'.

 

IF gi_coep[] IS INITIAL.

       MESSAGE 'Document Not Found' TYPE 'S' DISPLAY LIKE 'E'.

       STOP.

ELSE.

 

   LOOP AT gi_coep.

      gi_cobk-kstar = gi_coep-kstar.

      gi_cobk-belnr = gi_coep-belnr.

      gi_cobk-gjahr = gi_coep-gjahr.

      APPEND gi_cobk.

   ENDLOOP.

ENDIF.

 

ENDFORM.                " fm_collect_data

*&---------------------------------------------------------------------*

*&      Form  FM_PROCESS_DATA

*&---------------------------------------------------------------------*

*       text

*----------------------------------------------------------------------*

*  -->  p1        text

*  <--  p2        text

*----------------------------------------------------------------------*

FORM fm_process_data .

DATA : lv_ltext TYPE csku-ltext.

DATA : lv_kstar TYPE coep-kstar.

DATA : lv_act_wtgbtr TYPE coep-wtgbtr.

CLEAR : it_head, it_detail, lv_kstar, lv_act_wtgbtr.

REFRESH : it_head, it_detail.

 

 

SORT gi_coep by kstar.

LOOP AT gi_coep.

    CLEAR lv_ltext.

    w_head-kstar = gi_coep-kstar.

 

    IF lv_kstar NE gi_coep-kstar.

      lv_kstar = gi_coep-kstar.

      w_head-act_wtgbtr = gi_coep-wtgbtr * 100.

    ELSE.

      w_head-act_wtgbtr = w_head-act_wtgbtr + ( gi_coep-wtgbtr * 100 ).

    ENDIF.

    SELECT SINGLE ltext

      INTO lv_ltext

      FROM csku

      WHERE spras EQ 'E'

         AND kstar EQ gi_coep-kstar

         AND ktopl EQ '1000'.

 

    IF sy-subrc EQ 0.

       w_head-ltext = lv_ltext.

    ENDIF.

 

    APPEND w_head TO it_head.

 

ENDLOOP.

 

SORT it_head by kstar ASCENDING act_wtgbtr DESCENDING.

DELETE ADJACENT DUPLICATES FROM it_head COMPARING kstar.

LOOP AT it_head.

 

   LOOP AT gi_coep WHERE kstar EQ it_head-kstar.

 

     SELECT SINGLE budat refbn

       INTO (w_detail-budat, w_detail-refbn )

       FROM cobk

       WHERE belnr EQ gi_coep-belnr.

      IF sy-subrc EQ 0.

          w_detail-kstar = it_head-kstar.

          w_detail-sgtxt = gi_coep-sgtxt.

          w_detail-det_wtgbtr = gi_coep-wtgbtr * 100.

      ENDIF.

       APPEND w_detail to it_detail.

 

   ENDLOOP.

ENDLOOP.

 

SORT it_head BY kstar ASCENDING.

SORT w_detail BY kstar budat ASCENDING.

 

ENDFORM.                " fm_process_data

 

*&---------------------------------------------------------------------*

*&      Form  FM_ALV

*&---------------------------------------------------------------------*

*       text

*----------------------------------------------------------------------*

*      -->P_IT_HEAD  text

*----------------------------------------------------------------------*

FORM fm_alv  TABLES   ft_report.

   PERFORM fm_gui_message USING 'Write Data in Progress'(299) ''.

   PERFORM fm_clear_alv_data.

   PERFORM fm_build_fieldcat.

   PERFORM fm_build_layout USING d_layout.

   PERFORM fm_build_keyinfo USING d_alv_keyinfo.

   PERFORM fm_build_sortfield USING t_alv_isort[].

   PERFORM fm_build_event TABLES t_alv_event.

 

   d_repid = sy-repid.

   CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'

     EXPORTING

       i_callback_program       = d_repid

*     i_callback_pf_status_set = 'F_SET_PF_STATUS'

*      i_callback_user_command  = 'F_USER_COMMAND'

       is_layout                = d_layout

       it_fieldcat              = t_alv_fieldcat[]

       it_events                = t_alv_event[]

*      it_sort                  = t_alv_isort[]

       i_tabname_header         = 'IT_HEAD'

       i_tabname_item           = 'W_DETAIL'

       is_keyinfo               = d_alv_keyinfo

     TABLES

       t_outtab_header          = it_head

       t_outtab_item            = w_detail

     EXCEPTIONS

       program_error            = 1

       OTHERS                   = 2.

   IF sy-subrc <> 0.

* Implement suitable error handling here

   ENDIF.

 

ENDFORM.                    " FM_ALV

 

*&---------------------------------------------------------------------*

*&      Form  FM_GUI_MESSAGE

*&---------------------------------------------------------------------*

*       text

*----------------------------------------------------------------------*

*      -->P_0433   text

*      -->P_”  text

*----------------------------------------------------------------------*

FORM fm_gui_message  USING  fu_text1 fu_text2.

   DATA: ld_text1(100) TYPE c.

 

   CONCATENATE fu_text1 fu_text2 INTO ld_text1

   SEPARATED BY space.

   CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'

     EXPORTING

       percentage = 0

       text       = ld_text1.

ENDFORM.                    " FM_GUI_MESSAGE

 

*&---------------------------------------------------------------------*

*&      Form  FM_CLEAR_ALV_DATA

*&---------------------------------------------------------------------*

*       text

*----------------------------------------------------------------------*

*  -->  p1        text

*  <--  p2        text

*----------------------------------------------------------------------*

FORM fm_clear_alv_data .

  CLEAR:t_alv_fieldcat,

         t_alv_event,

         t_events,

         t_alv_isort,

         t_alv_filter,

         t_event_exit,

         d_alv_isort,

         d_alv_variant,

         d_alv_list_scroll,

         d_alv_sort_postn,

         d_alv_keyinfo,

         d_alv_fieldcat,

         d_alv_formname,

         d_alv_ucomm,

         d_alv_print,

         d_alv_repid,

         d_alv_tabix,

         d_alv_subrc,

         d_alv_screen_start_column,

         d_alv_screen_start_line,

         d_alv_screen_end_column,

         d_alv_screen_end_line,

         d_alv_layout,

         d_layout,

         d_repid,

         d_print.

 

   REFRESH: t_alv_fieldcat,

            t_alv_event,

            t_events,

            t_alv_isort,

            t_alv_filter,

            t_event_exit.

 

   d_repid = sy-repid.

ENDFORM.                    " FM_CLEAR_ALV_DATA

 

*&---------------------------------------------------------------------*

*&      Form  FM_BUILD_FIELDCAT

*&---------------------------------------------------------------------*

*       text

*----------------------------------------------------------------------*

*  -->  p1        text

*  <--  p2        text

*----------------------------------------------------------------------*

FORM fm_build_fieldcat .

   REFRESH: t_alv_fieldcat.

 

   PERFORM fm_fieldcatg USING 'IT_HEAD' :

   'KSTAR'                     'IT_HEAD' 'KSTAR' '' '' 'Refference' '' '' '' '' '' '' '' '' 'X' '' '' 'X',

   'LTEXT'                     'CSKU' 'LTEXT' '' '' 'Doc. Description' '' '' '' '' '' '' '' '' '' '' '' '',

   'ACT_WTGBTR'                'COEP' 'WTGBTR' '' '' 'Actual' '' '' '' '' '' '' '' '' '' '' '' ''

   .

*

   PERFORM fm_fieldcatg USING 'W_DETAIL' :

*  'KSTAR'                     '' '' '' '' '' '' '' '' '' '' '' '' '' 'X' '' '' '',

   'AUDAT'                     'COBK' 'AUDAT' '' '' 'Date' '' '' '' '' '' '' '' '' '' '' '' '',

   'REFBN'                     'COBK' 'REFBN' '' '' 'Doc. Description' '' '' '' '' '' '' '' '' '' '' '' '',

   'SGTXT'                     'COEP' 'SGTXT' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '',

   'DET_WTGBTR'                'COEP' 'WTGBTR' '' '' '' '' '' '' '' '' '' '' '' '' '' '' ''

   .

 

   CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'

     EXPORTING

       i_internal_tabname     = 'IT_HEAD'

     CHANGING

       ct_fieldcat            = t_alv_fieldcat[]

     EXCEPTIONS

       inconsistent_interface = 1

       program_error          = 2

       OTHERS                 = 3.

   IF sy-subrc <> 0.

* Implement suitable error handling here

   ENDIF.

 

   CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'

     EXPORTING

       i_internal_tabname     = 'W_DETAIL'

     CHANGING

       ct_fieldcat            = t_alv_fieldcat[]

     EXCEPTIONS

       inconsistent_interface = 1

       program_error          = 2

       OTHERS                 = 3.

   IF sy-subrc <> 0.

* Implement suitable error handling here

   ENDIF.

 

ENDFORM.                    " FM_BUILD_FIELDCAT

 

*&---------------------------------------------------------------------*

*&      Form  FM_FIELDCATG

*&---------------------------------------------------------------------*

*       text

*----------------------------------------------------------------------*

 

*----------------------------------------------------------------------*

FORM fm_fieldcatg  USING    value(fu_types)

                             value(fu_fname)

                             value(fu_reftb)

                             value(fu_refld)

                             value(fu_noout)

                             value(fu_outln)

                             value(fu_fltxt)

                             value(fu_dosum)

                             value(fu_hotsp)

                             value(fu_dec)

                             value(fu_waers)

                             value(fu_meins)

                             value(fu_waers_f)

                             value(fu_meins_f)

                             value(fu_checkbox)

*                           value(fu_fixcolumn)

                             value(fu_key)

                             value(fu_icon)

                             value(fu_input)

                             value(fu_fix).

 

   DATA: ld_fieldcat TYPE slis_fieldcat_alv.

   CLEAR: ld_fieldcat.

   ld_fieldcat-tabname = fu_types.

   ld_fieldcat-fieldname = fu_fname.

   ld_fieldcat-ref_tabname = fu_reftb.

   ld_fieldcat-ref_fieldname = fu_refld.

   ld_fieldcat-no_out = fu_noout.

   ld_fieldcat-outputlen = fu_outln.

   ld_fieldcat-seltext_l = fu_fltxt.

   ld_fieldcat-seltext_m = fu_fltxt.

   ld_fieldcat-seltext_s = fu_fltxt.

   ld_fieldcat-reptext_ddic = fu_fltxt.

   ld_fieldcat-no_out = fu_noout.

   ld_fieldcat-do_sum = fu_dosum.

   ld_fieldcat-hotspot = fu_hotsp.

   ld_fieldcat-decimals_out = fu_dec.

   ld_fieldcat-currency = fu_waers.

   ld_fieldcat-quantity = fu_meins.

   ld_fieldcat-qfieldname = fu_meins_f.

   ld_fieldcat-cfieldname = fu_waers_f.

   ld_fieldcat-checkbox = fu_checkbox.

* ld_fieldcat-fix_column = fu_fixcolumn.

   ld_fieldcat-key = fu_key.

   ld_fieldcat-icon = fu_icon.

   ld_fieldcat-input = fu_input.

   ld_fieldcat-fix_column = fu_fix.

   APPEND ld_fieldcat TO t_alv_fieldcat.

   CLEAR ld_fieldcat.

 

ENDFORM.                    " FM_FIELDCATG

 

 

*&---------------------------------------------------------------------*

*&      Form  FM_BUILD_KEYINFO

*&---------------------------------------------------------------------*

*       text

*----------------------------------------------------------------------*

*      -->P_D_ALV_KEYINFO  text

*----------------------------------------------------------------------*

FORM fm_build_keyinfo  USING fu_keyinfo TYPE slis_keyinfo_alv .

   fu_keyinfo-header01 = 'KSTAR'.

   fu_keyinfo-item01 = 'KSTAR'.

ENDFORM.                    " FM_BUILD_KEYINFO

 

*&---------------------------------------------------------------------*

*&      Form  FM_BUILD_LAYOUT

*&---------------------------------------------------------------------*

*       text

*----------------------------------------------------------------------*

*      -->P_D_LAYOUT  text

*----------------------------------------------------------------------*

FORM fm_build_layout  USING    fu_layout TYPE slis_layout_alv.

*  fu_layout-f2code = '&IC1'.

   fu_layout-zebra = 'X'.

   fu_layout-colwidth_optimize = 'X'.

   fu_layout-no_colhead = space.

   fu_layout-no_uline_hs = 'X'.

*  fu_layout-no_vline = '2'.

*  fu_layout-no_vline = '4'.

 

*fu_layout-box_fieldname = ‘CHBOX’.

   fu_layout-box_tabname = 'IT_HEAD'.

   fu_layout-expand_fieldname = 'EXP'.

*   fu_LAYOUT-DETAIL_POPUP      = 'X'.

ENDFORM.                    " FM_BUILD_LAYOUT

 

*&---------------------------------------------------------------------*

*&      Form  FM_BUILD_EVENT

*&---------------------------------------------------------------------*

*       text

*----------------------------------------------------------------------*

*      -->P_T_ALV_EVENT  text

*----------------------------------------------------------------------*

FORM fm_build_event  TABLES   ft_events LIKE t_events.

   REFRESH: ft_events.

   CLEAR ft_events.

   ft_events-name = slis_ev_top_of_page.

   ft_events-form = 'F_TOP_OF_PAGE'.

   APPEND ft_events.

ENDFORM.                    " FM_BUILD_EVENT

 

*&---------------------------------------------------------------------*

*&      Form  fm_build_sortfield

*&---------------------------------------------------------------------*

*       text

*----------------------------------------------------------------------*

*      -->FU_SORT    text

*----------------------------------------------------------------------*

FORM fm_build_sortfield USING fu_sort TYPE slis_t_sortinfo_alv.

   DATA: ld_sort TYPE slis_sortinfo_alv.

 

   CLEAR ld_sort.

   ld_sort-spos = '01'.

   ld_sort-tabname = 'IT_HEAD'.

   ld_sort-fieldname = 'KSTAR'.

   ld_sort-up = 'X'.

*  ld_sort-subtot = 'X'.

   APPEND ld_sort TO fu_sort.

 

   CLEAR ld_sort.                       "Edit

   ld_sort-spos = '04'.

   ld_sort-tabname = 'W_DETAIL'.

   ld_sort-fieldname = 'KSTAR'.

   ld_sort-up = 'X'.

*  ld_sort-subtot = 'X'.

   APPEND ld_sort TO fu_sort.

ENDFORM.                    "fm_build_sortfield


Problem export to excel from ALV Grid

$
0
0

Hi All,

 

 

Ihaveover40columninALVgrid, I try exporttoexcel but error like this :



Can help me with this error?


Thanks

How to configure IDOCs between 2 servers

$
0
0

Hi,i am an ABAP consultant and for some reason i was charged with configuring IDOCs between 2 different servers, i have been trying all tutorials that i could find for the past 2 weeks but i always get stuck in creating the partner profile step, most of the time i get an error "port could not be opened", also the tutorials i tried were never crystal clear about which steps to be configured on the sender server and which steps to be done on the receiver server, plus all the tutorials i tried never said the possible issues that could occur during configuration or how to fix them, so my question is could someone direct me to a comprehensive tutorial that is clear enough to be followed and also has tips on how to handle the possible issues that could happen during configuration i would be so thankful

BASXML support for BGRFC

$
0
0

Hi Experts


We can use BASXML with synchronous, asy and BGRFC. But in SM59 we can select transfer protocol type either BGRFC or BASXML.

So if we have to use BASXML with BGRFC how to configure this? And also how is this BASXML protoco lhelps in data compression in case of nested structure?

 

Thanks

Akriti

EDI 856

$
0
0

Hi,

 

Currently we are using IDOC basic type "DESADV01" for ASN inbound IDOC's. we got a new requirement to update handling units and serial numbers. when I was checking the latest version "DELVRY07", i could see it has got many relevant segments/fields for handling units, whereas in "DESADV01", we don't have those segments/fields, I know "DESDAV01" is outdated version.

 

Is it easy to upgrade to latest version or we can extend "DESADV01" to meet the business requirement.. which approach would be better and cost effective? I don't have much idea on this, can you please provide your inputs.. Thanks in advance..

 

Regards,

Prabu

Model distribution not possible in 4.7

$
0
0

Hello,

 

We have refreshed QAS client with client copy (data) from PRD system.

 

Afterwards, we created ALE model (BD64) in QAS and when we try to distribute it to DEV system we get an error:

"Client XXX is not available. Please choose an existing client".

 

If we create model in DEV, distribution to QAS works, but after finishing model setup, sending idocs from QAS to DEV fails with the same error:

"Client XXX is not available. Please choose an existing client".


In dev_rfc logs we can only see the same message:


**** Trace file opened at 20150126 122009 CET SAP-REL 640,0,155 RFC-VER 3 865711

======> Client XXX is not available. Please choose an existing client

ABAP Programm: SAPLBD22 (Transaction: BD64)

Called function module: MODEL_VIEW_REPLICATE

User: ALEUSER (Client: XXX)

Destination: DEVCLNT100 (handle: 4, 73508497, {54C4E81F-7BD3-051D-E100-0000AC180AF2})

 

 

**** Trace file opened at 20150126 123459 CET SAP-REL 640,0,155 RFC-VER 3 865711

======> Client XXX is not available. Please choose an existing client

ABAP Programm: SAPLERFC (Transaction: BD87)

Called function module: ARFC_DEST_SHIP

User: ALEUSER (Client: XXX)

Destination: DEVCLNT100 (handle: 1, 74404664, {54C4E9BD-7BD3-051D-E100-0000AC180AF2})


**** Trace file opened at 20150126 123619 CET SAP-REL 640,0,155 RFC-VER 3 865711

======> Client XXX is not available. Please choose an existing client

ABAP Programm: SAPLARFC (Transaction: BD87)

Called function module: ARFC_DEST_CONFIRM

User: ALEUSER (Client: XXX)

Destination: DEVCLNT100 (handle: 2, , {54C4E9BE-7BD3-051D-E100-0000AC180AF2})


Of course system is defined in SCC4, logical systems are correctly assigned.


Before client copy ALE worked ok.


Any ideas how to correct this error?


Best regards,

Sasha

IDOC RFQ and Quotation (MM-PUR-RFQ)

$
0
0

HI,

 

To send a RFQ to a vendor,  I can use the REQUOTE idoc. THis is working perfectly. We send the RFQ from SAP to external vendor portal.

 

I would like to know which idoc i can use, for the quotation which is send back from the vendor.  From the portal to SAP and it updates the RFQ in ME47 with the price.

 

Thanks a lot

 

Regards

B

Header missing in SOAP message header (SAP XI Extension)

$
0
0

Hi Experts,

 

We are implementing interface MasterDataUpdateConfirmation_Out between 2 SAP ERP systems. The middleware is SAP PI.

SAP PI team requested a change in this interface Stack - Replace Stack ABAP by Stack Java. The changes were made.

 

However, now we get an error in the interface in the SAP ERP sender system, but the message arrives to SAP PI where is processed without errors and also arrives to SAP ERP receive system and the message is also processes without errors.

 

The error we have in XML message in SAP ERP sender system is:

 

XML element {http://schemas.xmlsoap.org/soap/envelope/}Header missing in

SOAP message header (SAP XI Extension)

 

Exception of class CX_XMS_SYSERR_PARSER

 

Can anyone please help us? We have no ideia what to do.

 

Thanks in advance,

RS


Background job for IDOC processing

$
0
0

Hi,

 

I know that there will be a batch job which processes the IDoc and changes the status (for example, from 64 to 53).

 

How to find the background batch job which is changing the status?

 

I am having an issue in which IDoc is not processed fully and stuck in status 64 or 52.

 

Please let me know the procedure through which I can find the batch job responsible for this change of status of IDoc.

 

I am also having the user account which is changing the status. Is there a way to find out the batch job using this user account?

 

Thanks,

Abhiram

MATMAS not in WE30

$
0
0

Hi Experts,

 

I am facing an issue in IDOCS. When i am checking in WE30 standard basic type for MATMAS(matmas01-matmas05) is not there.

Is there any configuration required so that i can have the basic type MATMAS.

Also there are no entries for MATMAS in EDMSG and EDIMSG.

 

Thanks

Akriti

NAST-NACHA = 8 in message transmission medium

$
0
0

Hello Gurus,

 

Can any one explain when we use special function( NAST-NACHA = 8)  in output types, I am having an sales order which triggers an outbound IDOC when I check the messages for our output type it is using  special function as the Output Type.

 

Please do the needfull.

 

 

Thanks,

Bala krishna .

Issue from Portal to SAP

$
0
0

Hi all,

 

we have a supplier portal where vendor can come & update info record condition price.

Then we are sending this info record condition price from Portal to SAP through BAPI.

 

This BAPI contains the BDC code to create the condition record(MEK1) in SAP.

I have tested this BAPI in SAP alone & is working fine but

 

This BAPI is giving error when called from Portal. This error is triggered when it reaches the BDC(MEK1)  inside the BAPI.

The Error is as below.

 

" Error opening an RFC connection. Local result variables are used in a control or automation call "

 

we are using ECC5 SAP version. Please advise what is causing this issue.

 

Thanks

Pabi

PI RFC sender adapter throws exception for bgRFC

$
0
0

Hello community,

 

we created several interfaces from ECC 6.0 to PI 7.31 in the past. Most of those interfaces were implemented using sender RFC adapter.

 

Now we want to change an existing interface from tRFC to bgRFC. Below you can see the steps we took until now:

  • Change of RFC destination transfer protocol setting to 'Classig with bgRFC'
  • Setting up of bgRFC enviornment (supervisor destination, etc.)
  • Adaption of coding for bgRFC call

 

The ABAP-side works fine and I can see the request to PI in transaction SBGRFCMON. Unfortunately PI sender adapter returns the following exception:

"Commit fault: java.lang.Exception: error during TID to GUID conversion: com.sap.aii.af.lib.rfc.guid.GuidConversionException: Ch"

 

Has anyone encountered a similar problem? Are there any suggestions how to solve the problem?

 

Many thanks in advance.

 

Best regards,

Chris

Viewing all 1115 articles
Browse latest View live


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