Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all 8332 articles
Browse latest View live

Dump SYSTEM_CORE_DUMPED after Upgrade to EHP7

$
0
0

Hi folks,

 

I get the attached dump after upgrade to EHP7.

 

SYSTEM_CORE_DUMPED

 

Process terminated by signal 11

 

 

Any idea?

 

 

Kind regards,

Udo


Create Sales order using Purchase order with IDocs

$
0
0

Hi Experts,

 

I need to create purchase orders in one SAP system and Distribute the POs to other SAP system.With received IDocs from SAP system  I need to create Sales orders in the current system.

 

I checked the IDoc type ORDER05 is used for Creation of both Sales orders and purchase order.

 

Please let me know whether it will work directly with out any configuration changes and EDI set up.If any configuration changes required please provide them.

 

My assumption is .

 

Source system ( Outbound)

 

Message type : ORDERS

IDoc type : ORDER05

Process code : ME10

 

Destination System ( Inbound )

 

Message type : ORDERS

IDoc type : ORDER05

Process code : ORDS

 

 

Thanks & Regards

 

Raja Srikanth Guptha

Screen Enhancement for RECN transaction - Condition tab.

$
0
0

Hello,

 

I'm trying to activate the Enhancement Screen in Condition tab to  add some customer-specific fields, but the screen still hidden.

I'm folowing the instructions in SAP Note 1756452 - Customer-specific fields on condition tab but I didn't get the screen. Is there something else I have to do?

 

Can someone help me?

 

Regards,

Sandra Rocha

.

smartform problem

$
0
0

Hello experts,

 

  I developed a smartform for the transaction me23n. It's working with my user id .when creating purchase order with some other user id it's going to dump.

i am attaching the dump . please help me.

 

Category              ABAP Programming Error                                                     

Runtime Errors        POSTING_ILLEGAL_STATEMENT                                                   

ABAP Program          /1BCDWB/SAPLSF00000031                                                     

Application Component  Not assigned                                                               

Date and Time          28.03.2014 17:20:09                                                         

                                                                                                  


Category               ABAP Programming Error                                                      

Runtime Errors         POSTING_ILLEGAL_STATEMENT                                                   

ABAP Program           /1BCDWB/SAPLSF00000031                                                      

Application Component  Not assigned                                                                

Date and Time          28.03.2014 17:20:09                                                         

                                                                                                   

 

Short Text                                                                                       
    Statement "MESSAGE_A" is not allowed in this form.                                           

 

What happened?                                                                                   
    Error in the ABAP Application Program                                                        
   
    The current ABAP program "/1BCDWB/SAPLSF00000031" 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                                                                                   
    There is probably an error in the program                                                    
    "/1BCDWB/SAPLSF00000031".                                                                    
    This program is triggered in the update process. The following ABAP                          
    statements are illegal here:                                                                 
   
    - CALL SCREEN                                                                                
    - CALL DIALOG                                                                                
    - CALL TRANSACTION                                                                           
    - SET SCREEN                                                                                 
    - LEAVE TO LIST-PROCESSING                                                                   
    - SUBMIT                                                                                     
    - LEAVE SCREEN                                                                               
    - LEAVE LIST-PROCESSING                                                                      
    - LEAVE PROGRAM                                                                              
    - LEAVE TO TRANSACTION                                                                       
    - MESSAGE I/W/E (if not handeld using EXCEPTIONS ERROR_MESSAGE)                              
    - MESSAGE A                                                                                  

 

How to correct the error                                                                         
    Probably the only way to eliminate the error is to correct the program.                      
    If the error occurs in a non-modfied SAP program, you might be able to                       
    find a solution in the SAP Notes system. If you have access to the SAP                       
    Notes system, check there first using the following keywords:                                
   
    "POSTING_ILLEGAL_STATEMENT"                                                                  
    "/1BCDWB/SAPLSF00000031" bzw. /1BCDWB/LSF00000031F01                                         
    "%RAISE"                                                                                     
    If you cannot solve the problem yourself, please send the following                          
    information to SAP:                                                                          
   
    1. This description of the problem (short dump)                                              
    To do this, choose  System -> List -> Save -> Local File (unconverted)                       
    on the screen you are in now.                                                                
   
    2. A suitable system log                                                                     
    To do this, call the system log in transaction SM21. Restrict the time                       
    interval to ten minutes before the short dump and five minutes after                         
    it. In the display, choose System -> List -> Save -> Local File                              
    (unconverted).                                                                               
   
    3. If these are programs of your own, or modified SAP programs: Source                       
    code of these programs                                                                       
    To do this, choose  More Utilities -> Upload/Download -> Download in                         
    the Editor.                                                                                  
   
    4. Details regarding the conditions under which the error occurred or                        
    which actions and input caused the error.                       

Show blank Lines in OOP ALV

$
0
0

Hello Gurus,

 

     I am stuck with a very small problem. I have a internal table which might have some INITIAL LINES in it. I am using this internal table in the ALV Method. CALL METHOD o_alv->set_table_for_first_display.

 

     But, during the final display of the ALV display, all the blank lines are getting deleted automatically, which I don't want. I have modified and rechecked some fields like, l_sort-up = 'X' or Space. but, nothing solved my problem.

 

     Can you please help me with identifying the exact parameter, which will enable thr ALV to show blank lines in the final display.

Thanks for the help in advance.

Raw data serialization to be used in RFC

$
0
0

Hi there.

As data growth is constantly increasing handling such amount of data requires more and more time. Most logical way of solving this issue is to handle data in parallel. Currently for parallel processing ABAP offers only one way - RFC enabled functional modules. This approach is quite old and mostly known. But ... there are some limitations exist in RFC FM's. One of it : it doesn't allow to pass references. Usually it's not a problem, but in my case tool is working with multiple data structures, that usually stored as ref to data.

It's impossible to pass such data directly in RFC FM, so here is the trick:

  1. Assign variable with ref to data to field symbol
  2. Export this field symbol to buffer as XString
  3. Pass xstring to RFC FM
  4. Perform backward transformation

 

There are two small tricks with import/export: first one is that you have to explicitly name objects that you export, and during import use same names. Even if data buffer contains data for exactly one object. Other thing is the compression : in this small test without compression data buffer have length 190 bytes, and with compression just 95.

Documentation says that this export routine could fail in case of out of memory, but current limits are not described.

 

Here is the simple example how it works:

REPORT Z_BINARY_TRANSFORM.
data: lr_data type ref to data,      lt_test type table of string,      wa_string type string,      x_buffer  type xstring.
FIELD-SYMBOLS: <fs1> type any,               <fs2> type any.
INITIALIZATION.
** Fill source table with test data
DO 5 TIMES.  wa_string = sy-index.  CONDENSE wa_string.  CONCATENATE 'test' wa_string  into wa_string SEPARATED BY '_'.  append wa_string to lt_test.
ENDDO.
create data lr_data like lt_test.
assign lt_test to <fs1>.
assign lr_data->* to <fs2>.<fs2> = <fs1>.
export rep_tab = <fs2> to data buffer x_buffer compression on.
PERFORM abc using x_buffer.
form abc  using in_buffer type xstring.  data: lr_data2 type ref to data,        lt_test2 type table of string.  field-symbols: <fs3> type standard table,                 <fs4> type any.  create data lr_data2 type table of string.  assign lr_data2->* to <fs3>.
*  append 'test' to <fs3>.  import rep_tab = <fs3> from data buffer in_buffer.  " Import must be performed on the same variable name that was used for export
****  Output supplied table  LOOP AT <fs3> ASSIGNING <fs4>.    write: <fs4>.    NEW-LINE.  ENDLOOP.
ENDFORM.

Issue with fm LANGTEXT_ONLY

$
0
0

Dear Experts,

 

I am using this subject FM to call the text editor in my program. My problem is that when I changed the contents of the long text editor the changes weren't updated. Any ideas?

 

Even the longtext screen does not bring, already available contents from the standard SAP object where this longtext was saved.

 

Can someone help

 

Thank you

Rakhee Prabhu

The IN operator with "IT_TAB1-EQUNR" is followed neither by an internal table nor by a value list.

$
0
0

Hello,

 

Follwong error is coming when i am checking my programme, please help me out.

 

 

REPORT  Z_MMBE.

 

tables: equi, eqbs.

 

types: begin of st_tab1,

   EQUNR type EQUNR,

   MATNR type MATNR,

   end of st_tab1.

 

types: BEGIN OF st_tab2,

   EQUNR type EQUNR,

   B_WERK type WERKS_D,

   LGORT_D type LGORT_D,

   end of st_tab2.

 

   data:

         it_tab1 type STANDARD TABLE OF st_tab1,

         wa_tab1 type st_tab1,

         it_tab2 TYPE STANDARD TABLE OF st_tab2,

         wa_tab2 TYPE st_tab2.

 

   SELECTION-SCREEN begin of BLOCK b1 with FRAME TITLE text-001.

     SELECT-OPTIONS: s_matnr for equi-matnr,

                     s_werks for eqbs-b_werk.

       PARAMETER:   p_lgort type LGORT_D.

 

  SELECTION-SCREEN end of BLOCK b1.

 

  START-OF-SELECTION.

 

  INCLUDE Z_MMBE_GETDATA1F01.

 

  perform getdata1.

 

  end-of-SELECTION.



*************************(perform getdata1 is below)


FORM GETDATA1 .

 

   select equnr matnr

     from equi into table it_tab1

     where matnr = s_matnr.

 

     select equnr b_werk b_lager

       from eqbs into table it_tab2

       FOR ALL ENTRIES IN it_tab1

       where equnr IN it_tab1-equnr

       and b_werk IN s_werks

       and b_lager = p_lgort.

 

ENDFORM.  




How to find sy-tcode while running a program in background

$
0
0

How to find sy-tcode while running a program in background

field length not reflected in SM30

$
0
0

hello all,

 

for a Z table i have changed the domain ,like i increased the field length from CHAR 4 to CHAR 20,

 

but the same is not reflected in SM30(table maintenance generator),when i tried to enter a new value through SM30 for that particular field

 

the field length is still 4 ,it did not changed to 20...

 

why so..

 

 

thankq......

doubt on bapi

$
0
0

Hi experts,

 

I have small doubt on bapi why dont we give exception in bapi.

what is the main reason why shd we leave exception ideal. Please explain me.

write statement from alv in user command

$
0
0

Hi ,

 

I am using write statement in the user command for ALV as  below .I am find the ALV after the write statement .How can I avoid the ALV after the write statement .Also when I click back from the write statement screen ,it is going back to selection screen instead of first ALV .I have tried using LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0 before and after the write statement but this issue is still existing .How to fix this .

FORM user_command USING ucomm TYPE sy-ucomm selfield TYPE slis_selfield.

 

  CASE ucomm.

*

    WHEN 'ONLI'.

 

   WRITE : 'Test' .

BAPI_INSPOPER_RECORDRESULTS

$
0
0

Hiii Experts ,

 

I have been asked to use this bapi and update quantities in inspection lot level. Have to use table char_results, but i am not sure where to pass the quantity filed.

 

Any thoughts?

Flat file having multiple header lines , how to separate the same and pushit into my intrnal table

$
0
0


Hi Guys,

 

                I got an issue , My flat file having multiple header lines

 

TPS27RPR  MOME                                      THRIFT (SAVING) PLAN SYSTEM                                           Page    2

09:54 05 JAN 2014                          List of Contributors w/Company Contributions                           Phase DAY Unit TRE

Company No: xxxxxxxx - xxxxxxxxxxxxx.

____________________________________________________________________________________________________________________________________

                                                                        Employee/       Employee/

Employee Full Name/                                                       Company         Company                        Allocation

Number  ID Number                           PS  PN  End Date        Contribution          Profit        Total Balance   Percentage

____________________________________________________________________________________________________________________________________

 

some lines of data and again

 

TPS27RPR  MOME                                      THRIFT (SAVING) PLAN SYSTEM                                           Page    2

09:54 05 JAN 2014                          List of Contributors w/Company Contributions                           Phase DAY Unit TRE

Company No: xxxxxxxx - xxxxxxxxxxxxx.

____________________________________________________________________________________________________________________________________

                                                                        Employee/       Employee/

Employee Full Name/                                                       Company         Company                        Allocation

Number  ID Number                           PS  PN  End Date        Contribution          Profit        Total Balance   Percentage

____________________________________________________________________________________________________________________________________

 

in this case how could I separate the header lines from the flat file and update the details to my internal table.

 

 

kindly help me on this issue.

 

 

 

Thanks and regards,

M.S.Amirtharajvijay.

Sum in internal table issue

$
0
0

Dear Experts,

 

I have a Qty field which needs to be summed up when material no, po no and size are same in my internal table

 

Eg: PO no     Mat no     Size      Qty

      111          001          L          10

      111          001          L          20

 

needs to be shown as

      111          001          L          30

 

I have tried using the collect statement in several ways but unfortunately ddnt work out. Any suggestions?


how to update custom field value in standard database table.

$
0
0

hi,

i want to Add a custom field to MARA and capture the field in me51n and On Updating the field. i added the custom field in mara.in me51n that custom field is coming. if i enter any value in that field that want to stored in the standard table. in which way it is possible. i searched in google. but i got code to store that field value in ztable oly. i want to store that field value in standard table.

Native SQL Program and ALV Layout

$
0
0

Dear all

I created a program using from tCode = SE38

I am using Native SQL.

 

Here is my code:

DATA: BEGIN OF GetData OCCURS 0,
AUFNR
Type COAS-AUFNR,
AUART    
Type COAS-AUART,
END OF GetData.

 

EXEC SQL PERFORMING loop_output.
SELECT AUFNR, AUART
INTO STRUCTURE :GetData

FROM Mytable
Where (MANDT = 450)
ENDEXEC.

FORM loop_output.

WRITE: / GetData-AUFNR,
GetData
- AUART.

  1. ENDFORM.

Everything is working very well.

 

Now I want to add this report to ALV layout, how can I do this?

 

Thanks,

HCM Process and forms error

$
0
0

Dears,

 

 

I tried to enhance Infotype 0001 adding some fields and it works correctly on tcode pa30 but I hit an error in all my processes that changes in infotype 0001

 

The error appears when check the form as attached.


 

How can I solve the error

 

Thank you for your help


Salah Afia

custom fields is not updating in database tables

$
0
0

i have created a custom field in makt table for using in mm01, mm02, mm03 transaction.

using following steps

1. append structure in makt

2. spro transaction

 

atlast, in mm01 transaction the value for custom field is updating and finally the material is created. but it is not updated in database table.

 

why?? waiting for the reply...

 

regards ,

 

Dhivya N

Fill customer field in RBKP and BKPF from MIRO

$
0
0

Hello.

 

We have implemented a customer field in MIRO and want to transfer the entry into RBKP AND also into BKPF append.

We have the field in RBKP but don't know how to hand over to BKPF. Does anyone know how to act?

 

Best Regards

 

Gerhard

Viewing all 8332 articles
Browse latest View live


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