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

message_type_X in CO02

$
0
0

Good afternoon SAP community,

I write to you because we are facing a problem with CO02.
We get a short dump only with certain orders.

Procedure we follow:
     -     Call transaction CO02
     -     Insert order number
     -     Hit enter
     -     * short dump *

---------------------------------

Category            ABAP Programming Error
Runtime Errors      MESSAGE_TYPE_X
ABAP Program        SAPLCOBH
Application Component  PP-SFC

Long text of error message:

Technical information about the message:
Message class....... "CO"
Number.............. 888
Variable 1.......... "Error reading order header with index"

---------------------------------

ST22 doesn't say much as you can see.
We searched through OSS Notes, there are plenty of results concerning MESSAGE_TYPE_X and CO02, but none of them fits either our release or our specific problem.

System is ECC6 EHP6 - BASIS 731 SP04 on Sybase ASE 15.7.012

GUI with we encountered error: 730 PL1 and 720 PL9
Moreover, using transaction CO03 works like a charm.

Has anyone of you ever faced this problem?

Thanks in advance, have a good day.


History in CDPOS

$
0
0

Hi all,

 

I am facing a problem :

 

I want to know, for a special VBAP (left say, p_vbeln – p_posnr) what was the last value of its material (MATNR)


I say ‘last value' because VBAP-MATNR can be changed.

 

 

When VBAP has not been deleted

     I can read VBAP and the answer is VBAP-MATNR.

 

 

If the material has been changed at least once BUT VBAP has been deleted.

I have to select CDPOS with

        Tabkey = “p_vbeln p_posnr”  /   CHGNID = ‘U’   /   FNAME = ‘MATNR’

            Then sort CDPOS by CHANGENR

            Get the last CDPOS

            My answer is CDPOS-VALUE_NEW

 

 

If the material has never been changed and if VBAP is deleted : I'm stuck ! 

  • Is there a way to retrieve the MATNR that had been put on this VBAP ?
  • Is there a way to log, in CDPOS, the value of MATNR when VBAP is deleted ?
    (And not only FNAME = 'VBAP' - CHNGID = 'D' VALUE_NEW = '' VALUE_OLD= '' which is really useless...)

 

 

Thanks for any idea….

 

JC

output types in vofm

$
0
0

Hi Friends,

                   I need to find a routine for output types which is relevant to all our customized output types.

Copying a file

$
0
0

Hi guys,

 

i have created command zcmd in SM69 to run a .BAT file for copying a file from PC one directory to another.

in SM69 i defined

Command name: ZCMD

Operating system: UNIX

Operating system command: cmd /c

 

inside Copy.bat file have command is

Copy C:\File\vendorpay.csv D:\Data\Pay.csv

 

 

Then in SM49 while executing, i have given the BAT file path in Additional Parameters C:\File\copy.bat.

It throws below error.

 

Error:

Can't exec external program (No such file or directory)                                                                                                                                                                                                        External program terminated with exit code 1

 

Please help me.

 

 

Thanks

Leena

Digital signature and WebServices request from R/3 ECC 6.0>?

$
0
0

Hi guys,

 

recently I faced an issue with digitally signing XML document generated from ECC 6.0. Below is complete scenario:

 

1. Using own logic we have to generate XML document, filled with business data from different SD documents (this point is already done, XML is saved as DOM and can be reached from repository - tr.code SWXML).

2. Digital sign of the document with a certificate, issued by trusted authority.

3. Generate SOAP envelop for WebServices request, based on this XML.

5. Pass request to 3-th party system.

 

Well, I have an experience with developing own WebService requests and responces within SAP R/3 based on function module, so the issue here is only how to generate WebService request from XML. The other issue is with digital signature. After some investigations I found something package PP-PI Development (transactions DSAL & CJ00), but I have lack of information how to customize this freamework for my own purposes described above.

 

So my questions are:

 

1. How to digitaly sign XML document?

2. How to convert document from question 1 to WebService?

 

All these from ECC 6.0, do not involve any other SAP ot 3th party products.

I believe I will succeed to pass WebService request to target system.

 

Any ideas or points to more or less complete documentation regarding this issue will be greatly appreciated.

Thanks!

 

Regards,

Ivaylo

Sentence Try...Catch when submiting a report

$
0
0

Hello gurus,

  

I have a problem catching the errors when submiting a report inside a class.

  

Here is the method I'm using:

 

method CALL_ROUTINE.  data: ocatch   TYPE REF TO cx_root,        text   TYPE string.  TRY.   SUBMIT ZTEST AND RETURN.  CATCH CX_SY_ZERODIVIDE into ocatch.    text = ocatch->get_text( ).  CATCH cx_root INTO ocatch.    text = ocatch->get_text( ).  ENDTRY.

endmethod.

 

 

Dump is ocurring but is not getting catched by the try..endtry sentence.

 

 

If I type down the code inside the submit directly into the try...catch...endtry from the method then it works.

 

I have also tried to use a try..endtry sentence inside the ZTEST report and pass the exception to the calling method with no luck.

 

I wonder if there's any way to get the ZTEST exceptions from the calling method.

 

Thanks in advance

Regards

Configuring URL for a WebDynpro Application.

$
0
0

Hi gurus,

 

We have a specific requirement to change the URL of one of the WebDynpro applications. The current URL is HTTP and the new URL needs to be HTTPS. Could you help us how to go about changing this?

Is it really necessary to clear a variable before overwriting it?

$
0
0

Hello Experts,

 

I might be asking a dumb question but I havent really found an answer for this anywhere.

 

Is it really necessary to do this:

 

CLEAR l_material.

l_material = 'ARandomMaterial'.

 

 

I have seen the above snippet in several programs and even well experienced ABAPers write it.

 

Is the approach to consider a variable as a Slate or a Black board is correct  or is it just a mere waste of human effort in reading and writing the code?


Searchhelp for timestamp field

$
0
0

Hi,

 

I'm looking for a searchhelp that I need to assign to a selection field of type timestamp.

I prefer one single dialog screen, showing date & time together, but after each other is also fine.

(system: ECC 6.03)

 

Regards, Toine Pothuizen.

Issue in scheduled line item delivery date in VA02

$
0
0

Experts,

 

I'm facing an issue in schedules line item delivery date.

When we resend the sales order confirmation for a sales order (any type) when removed from delivery block , the latest ship date is changing but it is not getting saved. It is reverting back to old date only.

 

What is the best solution for this?

 

If any code change is required in user exit, which exit do I need to change

 

Thanks in advance,

Amrutha

Check table

$
0
0

Hi Guys,

 

I have 2 ztables. Ztab1 & Ztab2. Ztab1 has 3 primary key fields and ztab2 has 2 primary key fields. One if the primary key field is referring ztab1, so i have created as check table for that referring to ztab1.

 

Is there any condition or process, that ztab2 should have all the primary fields which are present in ztab1 to refer it as check table? please help me out. Thanks.

How to avoid dead lock error while updating ADRC table.

$
0
0

Hi,

 

 

There is one enhancement while changing vendor address which will update tables LFA1, ADR6 and ADRC.

While updating table ADRC, i'm receiving deadlock error.

 

 

DBIF_RSQL_SQL_ERROR - ORA-00060: deadlock detected while waiting for resource                

 

 

>>>>>              UPDATE adrc SET name1 = lv_name_first                                                  

                           name2 = lv_name_second                                                 

                           name3 = lv_name_third                                                  

                           mc_name1 = lv_fullname                                                 

                           flagcomm6 = lv_email_flg                                               

                           WHERE addrnumber = lv_adrnr.                                           

                                                                                             

          IF sy-subrc = 0.                                                                       

            COMMIT WORK.                                                                         

          ENDIF.

 

 

 

Any suggestion, how can I avoid this error?

 

 

Thanks

Deepthi

FBL5N performance issue

$
0
0

Hi SAP Experts,

 

Users in one of our production systems are having extremely slow performance when running tcode FBL5N.

 

I have already asked them to run the report with smaller data/selection criteria (e.g. limiting posting dates, company codes, etc) but the program still times out. 

 

I also have asked them to run it in background. The job finishes but it takes a very, very long time to complete (even when using smaller data/selection criteria).

 

Is there anything that I should check still in the system? What could be the reason for the very slow performance of this transaction?

 

The system is using ECC 6.0, Oracle 10.2 on AIX 5.3.

 

Thank you in advance for your help.

 

Regards,

Kris

 

Edited by: Kristofferson Caldoza on Oct 4, 2011 7:49 PM

Mapping fields in VBAK and VBRK

$
0
0

Dear All,

 

I have a requirement to display Sales Document Type (VBAK-AUART)  in Search Screen as select option low, and pass the value to select statement from VBRK table where FKART = select_option.

 

The summary is to map  VBRK-FKART with VBAK-AUART. Have anyone worked on this issue?

 

Regards,

Soumen.

FBL3N, FBL5N performance issue following an ERP6 Unicode upgrade

$
0
0

Hi

 

We're facing critical performance issues with transactions FBL3N and FBL5N following an ERP6 Unicode / Oracle 10 upgrade from R/3 4.6C / Oracle 9

 

Both transaction had always been very database intensive but things are getting worse with the new version even though we've  sized the hardware accordingly.

 

Any help would be greatly appreciated

 

Thank you


Trigger error message in SRM Backend PO

$
0
0

Hi, experts.

 

We are in SRM702 version.  When user clicks on "Create a PO" button in RFx response, I should validate data and trigger an error message to SRM screen if it's necessary. So here is my question: is there a BADI to achieve this requirement? I have already tried BBP_DOC_CHECK_BADI and /SAPSRM/IF_BADI_SOA_MAPPING but it doesn't seems to work as I need.

 

 

Thanks in advance.

values not populating thru Matchcode Object

$
0
0

Hi All,

 

I have created a new search help for MB51, which is appended in standard search help MCH1.

 

When press F4, the values are correctly displayed. But when we select any one of the displayed values, then the values are flowing on to Screen.

 

Please help me to understand and rectify the issue.

 

Thanks in advance.

 

Regards,

Priya

Can't return multiple values (OO)

$
0
0

Hello experts,

 

I’m a newbie in ABAP OO and need a suggestion from you experts. I’m trying to populate values on the selection screen from a custom (config) table. I need to do it on INITIALIZATION event so that when screen loads then user can see them.  To accomplish it I wrote a CLASS-METHOD: get_details.

    CLASS-METHODS: get_details IMPORTING im_file   TYPE string
im_vkorg 
TYPE vkorg
im_vtweg 
TYPE vtweg
im_spart 
TYPE spart
im_ktokd 
TYPE tt_ktokd
im_kunnr 
TYPE tt_kunnr
im_date  
TYPE tt_date
im_time  
TYPE tt_time
im_test  
TYPE c,

This way I get all the variables (parameters) and tables (select-options) I need to populate.  My question is can I write a CLASS-METHOD with EXPORTING parameters? The intend is to export all the values/tables back in one-shot. Currently I’m using few RETURN methods but they only return one variable/table at a time.

                return_file RETURNING VALUE(r_file)   TYPE string,
return_org  RETURNING
VALUE(r_vkorgTYPE vkorg.

     

Please advise how to return all of them like I IMPORTED them above (in get_details method)

 

Many thanks in advance.

Write on Oracle table the result of a select

$
0
0

Hi all,

I need to write more than one row on a Oracle table connected via DBCO, something like this...

 

Insert into ORACLE.TABLE Select * from SAPTABLE where SAPFILED = X

 

Is it possible to follow this way?

 

Thank you

Get Material and batch of a specific classification

$
0
0

Hi all,

 

I'm creating a delta extractor for Material and related batch and plant.

 

When I modify a classification from MSC2N transaction on CDHDR/CDPOS I can't find information about Material/Batch/Plant modified, but I need to find it, is there any BAPI/FM/Tables that can help me?

 

Thank you

Viewing all 8332 articles
Browse latest View live


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