Quantcast
Channel: SCN : Unanswered Discussions - ABAP Development
Viewing all 8768 articles
Browse latest View live

display Total and total Text for a field in ALV Grid

$
0
0

hello all,

 

i am stuck with a problem that i wanted to display Total for a field in ALV Grid at the bottom of the display also the text 'TOTALS'

 

should be displayed....


Synchronous proxy in status log version

$
0
0

Hi,

 

We have a synchronous proxy from PI to ECC. Most of the times the processing is a success but every now and then the status gets stuck in log version in ECC.

In order to understand the issue we are logging the inbound log and outbound log in a table.

In cases where messages are getting stuck in log version we have an inbound log in the table but no outbound log.

We see no ST22 dumps or any other update errors in ECC.

 

Can any one help me on what the issue could be?

 

Regards,

Rahul

How to change order item type?

$
0
0

Hi,

I have problem with changing order items type in implementation badi order_save.
To do it, first I have to change system item status to 'open', then change item type and set previous system status again. (because there is a blockade).

 

To change system status I'm using CRM_STATUS_CHANGE_INTERN_VB and BAPI_TRANSACTION_COMMIT.
After that I'm trying to change item type with use CRM_ORDER_MAINTAIN.


However CRM_ORDER_MAINTAIN 'don't see' changes of  CRM_STATUS_CHANGE_INTERN_VB.

 

I know that both functions works good singly:
If I first manually change system status, and then call CRM_ORDER_MAINTAIN it works good.
If I call both function system status are changed but item type don't.

 

Maybe I have to refresh samehow database between both function callings?
Or do you have any other ideas?

 

regards,
Michal

Error occurred when open data preview of CDS in eclipse

$
0
0

Hi all,

I have developed one CDS view in eclipse, when I try to preview the data of this CDS view, I received errors from eclipse as attached file, but records are shown and the view is looks fine as well in the ABAP system, is there any body knows why the errors are coming out and how to solve it?

 

Cheers,

Victor

BADI TRIP_POST_FI

$
0
0

Hi Experts, 

 

I have implemented the badi TRIP_POST_FI but while I am using transaction PRFI, my implementation has not been called (it is calling some other standard implementation for this badi). Please check and let me know how it has been called.

Note: 'Multiple use' has not been checked for this badi.

  

 

 

 

Thnaks and Regards,

Suman Karmakar

how to make one form for performs with different formal parameters but using same logic?

$
0
0

PERFORM f_bapimepoheaderx USING <ls_zbapimepoheaderx>

                                      zcl_constants=>gc_po_header

                                      zcl_constants=>gc_po_headerx

                                CHANGING ls_bapimepoheaderx.

 

FORM f_bapimepoheaderx  USING    is_zsbapimepoheaderx TYPE ty_zs_bapimepoheaderx

                                 iv_source TYPE tabname

                                 iv_dest TYPE tabname

                        CHANGING cs_bapimepoheaderx TYPE ty_bapimepoheaderx.

 

 

  DATA: lt_source_fld TYPE STANDARD TABLE OF dfies.

  DATA: lt_dest_fld TYPE STANDARD TABLE OF dfies.

  FIELD-SYMBOLS : <lv_fval>  TYPE any,

                  <lv_fld>   TYPE any,

                  <lv_fvald> TYPE any.

  DATA: lv_fieldname TYPE fieldname.

 

 

  PERFORM f_call_ddic_nametab1 USING iv_source

                               CHANGING lt_source_fld.

 

 

  PERFORM f_call_ddic_nametab2 USING iv_dest

                               CHANGING lt_dest_fld.

 

 

  LOOP AT lt_source_fld ASSIGNING FIELD-SYMBOL(<ls_src>).

    lv_fieldname = <ls_src>-fieldname.

 

 

    ASSIGN COMPONENT  lv_fieldname  OF STRUCTURE is_zbapimepoheaderx TO <lv_fval>.

    READ TABLE lt_dest_fld ASSIGNING <lv_fld> WITH KEY fieldname = <ls_src>-fieldname.

    IF sy-subrc EQ 0.

      ASSIGN COMPONENT lv_fieldname OF STRUCTURE cs_bapimepoheaderx TO <lv_fvald>.

      <lv_fvald> = <lv_fval>.

    ENDIF.

  ENDLOOP.

 

 

ENDFORM.

 

PERFORM f_bapimepoitem USING    <ls_zbapimepoitem>

                                        zcl_constants=>gc_custom_po_item

                                        zcl_constants=>gc_po_item

                               CHANGING ls_bapimepoitem.

FORM f_bapimepoitem   USING      is_zbapimepoitem TYPE ty_zbapimepoitem

                                 iv_source TYPE tabname

                                 iv_dest TYPE tabname

                        CHANGING cs_bapimepoitem TYPE ty_bapimepoitem.

 

 

  DATA: lt_source_fld TYPE STANDARD TABLE OF dfies.

  DATA: lt_dest_fld TYPE STANDARD TABLE OF dfies.

  FIELD-SYMBOLS : <lv_fval>  TYPE any,

                  <lv_fld>   TYPE any,

                  <lv_fvald> TYPE any.

 

 

  DATA: lv_fieldname TYPE fieldname.

 

 

  PERFORM f_call_ddic_nametab1 USING iv_source

                               CHANGING lt_source_fld.

 

 

  PERFORM f_call_ddic_nametab2 USING iv_dest

                               CHANGING lt_dest_fld.

 

 

  LOOP AT lt_source_fld ASSIGNING FIELD-SYMBOL(<ls_src>).

    lv_fieldname = <ls_src>-fieldname.

 

 

    ASSIGN COMPONENT  lv_fieldname  OF STRUCTURE  is_zbapimepoitem TO <lv_fval>.

    READ TABLE lt_dest_fld ASSIGNING <lv_fld> WITH KEY fieldname = <ls_src>-fieldname.

    IF sy-subrc EQ 0.

      ASSIGN COMPONENT lv_fieldname OF STRUCTURE cs_bapimepoitem TO <lv_fvald>.

      <lv_fvald> = <lv_fval>.

    ENDIF.

  ENDLOOP.

 

ENDFORM.

 

 

if we observe the above subroutines, the logic used under subroutines are same, only difference is different structures were used.

 

i used these type of performs 12 times with different structures, if i write form for each perform the code will be complex and the purpose of using subroutines is not fulfiled

 

is there any option to make all the subroutines in one form for above performs.

Column heading missing while using Fieldcatalog Merge

$
0
0

Hello All,

 

I have query for FM REUSE_ALV_FIELDCATALOG_MERGE, while  using this FM I am unable to get Column text(while displaying ALV) for one field of the structure.

Complete Scenario: I am using this FM for creating fieldcatalog automatically, for one field this FM is not able to display the column name i.e. for one field-- TLINE-TDLINE. I debugged the whole of the code but unable to find anything meaningful. Can anyone help in this or do I have to manually add the text for this field.

 

 

Regards,

GOS Attachment

$
0
0

Dear All,



Is is possible to change the filename of uploaded documents at a later time.




Best Regards,


Noufal


Import Statment doesn't importing data through Index table

$
0
0

Hi guys.

 

I am facing a problem during importing the data through index table, basically its two different program one program is export data which is working fine and export data to index table but when i trying to import this data from another program it doesn't importing,after upgrade to ecc6.

 

Here is my part of a source code of both importing and exporting program.

 

data: begin of tab4 occurs 100.
   include structure ypstructbaja.
data:end of tab4.

 

export tab4 from tab4 to database indx(stfrom wa_indx id indxkey.
free memory id  sy-uname.

///////////

importing program


data: begin of tab7 occurs 100.
   include structure ypstructbaja.
data:end of tab7.


import
              tab7 = tab7 from database  indx(stid indxkey
              to wa_indx.
tab4[] = tab7[].



I have checked the index table and data is exported to index table but not importing please help me waiting for your responce.

Thanks.

SM58: "Out of range: size 5 exceeded max size limit 5.""

$
0
0

Hi

I’m trying to send idoc for purchase orders using Basic type ORDERS05.

Initially we received error in BD87 “EDI: Syntax error in IDoc (too many repetitions of a segment)

The error was caused due to limit that segment E1EDP19 can be repeated (SAP standard = 5)

We then found “how to” note 1860347 which referred us to note 370021.

After implementing note 370021, we changed the default from 5 to 20.

We are now stuck with new error in SM58 for function module IDOC_INBOUND_ASYNCHRONOUS:

"Out of range: size 5 exceeded max size limit 5.""

 

Are there additional changes/settings that must be performed? Why would FM still pick up the setting for 5?

We are using standard SAP when generating PO iDOCs. Most PO iDOCs are processed successfully to external system. Only a few are failing.

Any help would be highly appreciated.

 

Best regards

problem in debugging?

$
0
0

Hi abap experts,

 

In SM 13 i fount the error , when i click that error it will open another screen in that when clik on error it goes to dump. so i went for se38 open the  program i put the break point and press f8 its not working so i went for debugging mode when i go to step by step by pressing f5 its going but its not going thru breakpoint its came out from degug ,can u please tell me how to dubugg?

Remove all mime folder from BSP

$
0
0

Hi experts. I have an BSP application and huge amount of MIME files inside. How I coyld remove all of them without confirmation popup (concerning transport) . Because now if I try to remove option from context menu system asks me what request to choose on each file deletion.

Thanks in advance.

Table level Flow to get BOM Vs Actual Consumption in SAP PP

$
0
0

Hi guys,

i have requirement to create custom report to get actual consumption compared to BOM.

need info to track table level flow to get this report.i m using material code date and plant

as input.

your help will be much appreciated.



Thanks,

Umakant.

Impact of TR import - Data Declarations becoming obsolete

$
0
0

Hello Experts,

 

I have declared a variable in data declarations and used that variable in the program logic.  (if i double click on the variable in the program logic, it is navigated to its declaration).

 

But, when i move/import the changes to the next system (quality), the data declarations are becoming obsolete.  if i double click on the variable in the program logic, it is NOT navigated to its declaration but it is navigating in development system.

 

Any clues on the impacted issue.

 


EWM: Function or program for changing goods received date

$
0
0

Hi,

 

 

does someone know a function, class, method or a report to change the goods received date in SAT-EWM?

 

 

I have already searched with google and in SAP-EWM-System. But without an success!

 

 

Any help would be very appreciated.

 

 

Best regards.

 

 

Alexander


User Freindly ALV Reports

$
0
0

hello all,

 

presently we are creating ALV reports using fm: REUSE_ALV_GRID_DISPLAY....

 

is there any other function module so that we can generate more user friendly ALV reports(like displaying some text in Bold, adding text for Totals etc...)

Have to get VBKB Line Item Details in userexit_save_document_prepare

$
0
0

Hello All,

 

I am creating a Sales Order, in that I have 4 Line Items. While saving, have to keep a check.

So I m enhancing the user exit  userexit_save_document_prepare.

 

But in this exit, I m getting only Header & 1 st line item details.

 

So could you pls help me in this.

 

Regards,

Bharat

Database lock related

$
0
0

Hi Experts,

                 Can you please clear me one scenario??The scenario is that if I developed one report which contains VBAK and VBAP table.My report will display sales order related information.The interesting thing is that if when I want to display a sales order no 123 which is changing somebody currently.on that time Can I display the information for that sales order in my report??And on the time of commit work can I display my report information on that sales order or not??

                              Please clear my confusion.

How to add extra two lines in accounting dcument no?

$
0
0

Hello Experts,

 

As per my requirement , when transfer posting is done via transaction - MB1B, then in back ground accounting document no is generated. I have to add extra two line items in that accounting document no. How can I proceed? I checked previous post also but no suitable suggestion found. Please advice me regarding this. 

Message "Entry is too long for the field" is displayed when input variable exceeds 30 bytes

$
0
0

11-27-2014 4-11-00 PM.png

This is a screen of classical Dynpro. I defined a variable of type "string" for input box "Subject". When the input variable exceeds 30 bytes, message "Entry is too long for the field" pops up before PAI modules. How to block the pop-up message?

Viewing all 8768 articles
Browse latest View live


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