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

SPAU issue for Unknow adjustment mode (Question mark)

$
0
0

Hi Experts,

 

I am performing SPAU activities first time.

We are upgrading system from ECC6.0 EHP6 to ECC 6.0 EHP7. While doing SPAU activities for Question marks (Unknown Adjustment) object Back ground job triggering and it is getting canceled status.

If I check the job log showing dump error details.

 

Please see the dump issue;

Category               ABAP Programming Error

Runtime Errors         IMPORT_DECOMPRESS_FAILED

Except.                CX_SY_COMPRESSION_ERROR

ABAP Program           CL_FB_PARAMETER_DB============CP

Application Component  BC-DWB-TOO-FUB

Date and Time          04.01.2014 16:20:10

 

Short Text

     Error when decompressing during IMPORT.

 

What happened?

     Error in the ABAP Application Program

 

 

     The current ABAP program "CL_FB_PARAMETER_DB============CP" had to be

      terminated because it has

     come across a statement that unfortunately cannot be executed.

 

 

If any one have any idea , please reply to this ASAP.

 

Thanks

Sri


Enhancement Tcode FB03

$
0
0

Dear all,

 

Tcode FB03

Enter

 

Documnet -> Print Preview

 

 

 

The problem is the width of Account short text is small to display the texts as needed. I want to make this width wider.

Anybody help me. Thanks a lot.

idoc not Updating for message type ORDRCHG for PO changes

$
0
0


Hi everyone,

I am currently facing an issue of idoc not updating for message type ORDRCHG when there are any changes in the Purchase Orders in SAP ECC (RP2) system. I am sending PO from ECC to SRM system.

 

Although the schedule gets updated in the Scheduling Agreement (SA) when DELINS message type is triggered from ECC system and the same gets update on SRM system. Where as if there is any change in PO (eg PO price ammendment / deletion block / release block ) these are not getting updated on SRM system.

RFC server sapftp cannot be started - 1: Program no longer started via RFC. No return possi

$
0
0

hi folks

 

we have developed an upload program using standard function modules to upload data into sap archive link ( content sever) for employee documents , when we run the program in front end mode , it works, but in background mode we get the below error

 

RFC server sapftp cannot be started - 1: Program no longer started via RFC. No return possi



We are using the function module ARCHIV_CREATE_FILE . and then rest of the function modules.



Regards

sameer.

Table update

$
0
0

Hi Team,

 

I am very new to ABAP and i have a doubt in table update.

 

I have one table and for that table we getting entries from multiple screen. My doubt is whether 2 entries can be insereted with same TIMESTAMP or one by oneonly the entries will get insereted into that table?

 

For this table i could not find any lock object (Enque and dequeue).

 

TIA

Why material description has 'Text - Contains Errors' message on Idoc?

$
0
0

Hi guys,

 

I have modified a custom program that creates an Idoc with help of Function Module MASTER_IDOC_DISTRIBUTE. All right here. The first 2 fields of the data segments are material number and material description (MARA-MATNR and MAKT-MAKTX type fields). For some reason, when an Idoc is created and I can see it from WE05 transaction, I display the Data records and I can double-click the yellow notebook sheet that appears in the left-hand side of every record (Display Data Record for Idoc). There is an issue. The MAKTX field has a short description column with "Text - Contains Errors". But the "Field contents" column is OK, as it is the same on MAKT-MAKTX table field. Do you know what is happening with that field? Seems like data communication is OK between systems.

Thanks!

massive load

$
0
0

Gooddayexperts, I am using this codeto massiveloadtorunget the messagethat the loadwas donesuccessfully, buttoverifythe transactiondataincooisisnot updated.

This is the code.



LOOP AT ti_input INTO st_input.
     CLEAR:st_de_data.
     MOVE: st_input-aufnr TO st_de_data-aufnr,
           st_input-vornr TO st_de_data-vornr,
           st_input-budat TO st_de_data-budat,
           st_input-zzcant1 TO st_de_data-zzcant1,
           st_input-zzmot1 TO st_de_data-zzmot1,
           st_input-zzcant2 TO st_de_data-zzcant2,
           st_input-zzmot2 TO st_de_data-zzmot2,
           st_input-ltxa1 TO st_de_data-ltxa1.


     PERFORM bdc_dynpro USING :
           'X'   'SAPLCORU_S'    '0110',
           ' '   'BDC_OKCODE'    '=SP',
           ' '   'AFRU-AUFNR'    st_de_data-aufnr,
           ' '   'AFRU-VORNR'    st_de_data-vornr,
           ' '   'AFRU-ZZCANT1'  st_de_data-zzcant1,
           ' '   'AFRU-ZZMOT1'   st_de_data-zzmot1,
           ' '   'AFRU-ZZCANT2'  st_de_data-zzcant2,

     PERFORM bdc_dynpro USING :
           'X'   'SAPLCORU_S'    '0600',
           ' '   'BDC_OKCODE'    '=SP',
           ' '   'AFRU-BUDAT'    st_de_data-budat.

   ENDLOOP.

   s_opt-dismode = c_mod. "Hide vista transaccion
   s_opt-updmode = c_update.
   s_opt-nobinpt = 'X'.

   CALL TRANSACTION 'CO11N' USING it_bdc_tab[]
                                  OPTIONS FROM s_opt
                         MESSAGES INTO it_messtab[].



FORM bdc_dynpro  USING dynbegin name value.
   CLEAR it_bdc_tab.
   IF dynbegin = 'X'.
     MOVE: name  TO  it_bdc_tab-program,
           value TO  it_bdc_tab-dynpro,
           'X'   TO  it_bdc_tab-dynbegin.
     APPEND it_bdc_tab.
   ELSE.
     MOVE: name  TO  it_bdc_tab-fnam,
           value TO  it_bdc_tab-fval.
     CONDENSE it_bdc_tab-fval.
     APPEND it_bdc_tab.
   ENDIF.
   CLEAR it_bdc_tab.

ENDFORM.                    " BDC_DYNPRO.




Pleasecan you help meto review thecode andsee if the datais recorded.

Regards

TD Line (must be a flat structure. you cannot use internal tables strings....)

$
0
0

Hi experts,

 

Can I ask help regarding to the TD Line. I am a beginner and ABAP. Thanks in advance.


Background task problem with alv grid display

$
0
0

Hello !

 

I have a problem when executing my program in background.

 

In foreground I have no problem, my ALV appears. In the background I have a dump.

 

The current ABAP program "SAPLKKBL" had to be terminated because one of the statements could not be executed.

 

I use the function module 'REUSE_ALV_GRID_DISPLAY'

  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'     EXPORTING        i_callback_program      = gd_repid        i_callback_user_command = 'F533_USER_COMMAND'        is_layout               = gd_layout        it_fieldcat             = fieldcatalog[]        it_special_groups       = i_fgroup[]        i_save                  = 'X'        it_sort                 = gd_sort        i_buffer_active         = ' '        i_callback_pf_status_set = 'F534_SET_PF_STATUS'     TABLES        t_outtab                = mytab     EXCEPTIONS        program_error           = 1        OTHERS                  = 2.  IF sy-subrc <> 0.    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.  ENDIF.

 

I don't understand where the problem is. Please help me.

 

Thank you.

Purchase order number from Sales order

$
0
0

hi gurus,

         i wan to pull PO number from SO number.i saw the customer PO in VA03 for that SO.

what is the customer PO(in vbkd-bstnk)?.what is the PO in EKKO-ebeln?what is the diffrent between these two?

userexit or enhancement for save in co02

$
0
0

hi expert.

i want to sent condition on items and header in co02.

how can i do this?

is there any enhancement on se18?

first i use PPCO0007 but any thing happened.

thanks

communication error for distributing module view in idoc.

$
0
0

Dear,

 

I have configured the distribution model of IDOC in bd64. when I distribute it to destination logic system. it gives me error'

Communication error occurred

Error when opening an RFC connection (CPIC-CALL: 'ThSAPOCMINIT' : cmRc=27 thRc=2

'

 

777.png

 

distribution model:

888.png

what could be the reason cause the error? if you need further details, I could provide them. thanks!

 

Best Regards

T.P

Function Module DATE_CONVERT_TO_FACTORYDATE

$
0
0

Hello Friends,

 

Happy New Year 2014 to everyone..

 

Today i was executing one of the custom program which is used FM DATE_CONVERT_TO_FACTORYDATE to determine the factory calender date based on the date given in the exporting parameter.

 

Unfortunately for date value was blank for few cases and FM is raising exception DATE_INVALID. But the system is not returning any system message ID, message type and Message number which in term the message statement

 

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

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


is raising ABAP dump.


Short text

    Message type " " is unknown.

 

Error analysis

    Only message types A, E, I, W, S, and X are allowed.

 

Please let me know if anyone case across this kind of issue.

 

Regards,

Saravanan Madhappan

Track changes to table data

$
0
0

Hi,

I'm trying to make a program that track changes done to a table in a day and then perform some actions accordingly.

We've evaluated several methods of tracking changes to the table's records (e.g. DBTABLOG, CD, ...) and the Change Documents facility was chosen.

 

Now I've seen that to create a Change Document you have to use transaction SCDO and add every table of interest to one CD. Then, to enable logging to tables CDHDR and CDPOS, you have to enable the "Change Document" flag (via SE11) for every Data Element used in the table's structure definition that one wants to log. I have to track three custom tables.

 

The issue I'm facing is that I cannot enable the "Change Document" flag for standard Data Elements (e.g. BEGDA, ENDDA). Two of the custom tables doesn't have any Includes, so I'm thinking of replacing each data element with a custom equivalent (e.g. Z_BEGDA, Z_ENDDA). The last table is an HRP* custom table and has standard includes (HRIKEY).

 

Before going on and even considering replacing that include's structure with a custom one, I'm wondering:

- Are Change Documents the right way to track changes to table data?

- Is there a way not to replace the standard Include/Data Elements in order to enable logging?

 

Thank you,

Pietro

split from a field into another 2 fields

$
0
0

hi forum,

say i have 1 field contains of 30 char.

now i need to split it into 2 fields with each 15 char.

when separate into 2 field, the word should not be broken.

say i have sentence like this "what a wonderful day". when split, field1 is "what a" whereas field2 is "wonderful day".

how to check the sentence with consideration of space as well so that can preserve the whole word when split.

 

thanks alot



BAPI/FM to Change CATS Time-sheet status from 10 to 20

$
0
0

Hi All

 

I am trying to change the status for time sheet from 10 ( In process) to 20 ( Released) through program.

Is there any way that we can change the status of the CATSDB table?

I tried using the Function Module BAPI_CATIMESHEETMGR_CHANGE but it changes the status from 10 to 30 (Approved) and skips the Released status.

Any useful inputs will be appreciated.

 

 

Regards,

Rajesh

How to add a pdf image into Adobe Form

$
0
0

Hello Members,

 

Happy New Year to All of you.

 

My requirement is to add a quality certificate's (Transaction QC53 is for specific certificate record) image into adobe form. I need to display some records into first page and then need to  attach or add the certificate image into 2nd page.

 

Please let me if somebody had already faced this kind of issue and got solution.

 

Thanks in advance for your help.

 

Abhijit

how to debug why input field in VL02N is disabled

$
0
0

Hello all

How can i debug a field in VL02n is disabled

in this case

batch field in vl02N is disabled and it shouldnot

 

how can i debug and find?

 

its lips-charg field under screen 1102

i found till that point

 

can it be substitution

but how to debug it ?

how to replace special characters in string

$
0
0

Hi all.

 

I am having a problem that I am trying to replace special characters

in a string with hash. in 4.5 there is no function module to resolve this issue,

I have checked.

 

We do not know the complete set of special characters., even if we did,

I want a flexible way to replace the special characters in a string..

 

I tried one approach, to find special characters in string and

use offset to replace them with hash. but 4.5 does NOT allow

use of variable offset, only constant.

 

here is the code :

do total_length times.

   lw_position = sy-index - 1.

   concatenate 't_bkpf-xblnr+' lw_position '(1)'

               into lc_special_char.

   if lc_special_char na c_valid_chars.

     lw_special_char = lc_special_char.

     replace lw_special_char into lc_special_char

                           with lv_space.

   endif.

enddo.

 

Any solutions?

 

Thanks,

Regards,

Nirav

CONVT_NO_NUMBER - Runtime error

$
0
0

Hello Experts,

 

I am modifying an SAP standard script in which I called a subroutine pool program.

 

To the program, I am passing an amount value to perform some calculations. When I try to execute the form, I got a runtime error saying as below.

 

Runtime Errors         CONVT_NO_NUMBER

Unable to interpret " 249,900.00-" as a number.

 

The value passed is from the table RF140-WRSHB.

 

Any inputs on how to resolve this issue will be highly appreciated.

 

Thanks.

Sandy

Viewing all 8332 articles
Browse latest View live


Latest Images

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