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

Error while executing graph_matrix_3d error: E026, more/few values than defined in IMS

$
0
0

Graph_Error.jpg

I am getting the above error while try to create a graph_matrix_3D
I tried to search goggle but was not been able to find anything useful.

 

Here the piece of code I am using, can anyone pleas help:

 

 

REPORT  zmkv_grapgh_test1.

 

TYPESBEGIN OF ty_graph,

         lgort TYPE char10,

         menge TYPE i,

         menge1 TYPE i,

   END OF ty_graph.

 

TYPES : BEGIN OF ty_opttable,

         options(30) TYPE c,

   END OF ty_opttable.

 

DATA: gs_graph TYPE ty_graph,

       gt_graph TYPE TABLE OF ty_graph,

       gs_opttable TYPE ty_opttable,

       gt_opttable TYPE TABLE OF ty_opttable.

 

*appending values into the options internal table

gs_opttable-options = 'P3TYPE = TO'.

APPEND gs_opttable TO gt_opttable.

gs_opttable-options = 'P2TYPE = VB'.

APPEND gs_opttable TO gt_opttable.

gs_opttable-options = 'TISIZE = 1'.

APPEND gs_opttable TO gt_opttable.

 

 

*appending values into the data internal table

gs_graph-lgort = 'SI01'.

gs_graph-menge = 30.

gs_graph-menge1 = 31.

APPEND  gs_graph TO gt_graph.

 

gs_graph-lgort = 'SI07'.

gs_graph-menge = 20.

gs_graph-menge1 = 21.

APPEND  gs_graph TO gt_graph.

 

 

gs_graph-lgort = 'WD01'.

gs_graph-menge = 40.

gs_graph-menge1 = 41.

APPEND  gs_graph TO gt_graph.

 

CALL FUNCTION 'GRAPH_MATRIX_3D'

   EXPORTING

     col1  = 'LGORT'

     col2  = 'MENGE'

     col3  = 'MENGE1'

     titl  = 'Inventory Trend'

   TABLES

     data  = gt_graph

     opts  = gt_opttable

   EXCEPTIONS

     other = 1.


Smart form line type Line Is combine with footer window line.

$
0
0

Hi,

I am facing one problem, Please have a  look on attached image.

After the Table  line, I Put footer.In this section i am having some lines. It has to appear after the table lines.

In Every page one footer window has to be fixed. so, it is having  margins.

The problem is that in some Cases  the last line of the footer line is combined with the Footer window upper margin.

U can see the problem in the attached image. Both the lines are combined and it is appearing thick color.

In this Situation. I need to Disappear the last line of the footer bottom line should be disappear then it will show as single line.

May i now how could i Solve this issue.

PR05 trip details, additional info button, fields.

$
0
0

hi experts,

 

In sap pr05 we have a provision to enter an employee number. press enter, all the trip details are shown. now select any trip and click display , the line items of trip are shown depicting the various type of costs incurred during trip such as breakfast lunch dinner airfare etc.

 

here in this screen we have the button called 'Infos', on clicking it a new pop up is displayed where you can enter business partners, document number ,reason etc. so i wanted to know where these values are found in the database. i clicked F1 and it shows me the structure name. I am not able to find the table for these fields. i have searched for these fields in most of PTRV_* tables but could find these fields. Can some one please advice where the fields can be found, Also if any bapi exists which can get me those fields.

 

Thanks.

 

Br,

shadab

Uploading Excel to application server path

$
0
0

hi Experts,

I have an internal table ,which has to be converted to excel and uploaded to an applciation server path.

I tried using GUI_DOWNLOAD and downloading the excel file into presentation server ,then uploading the same to applicaiotn server path using FM  ARCHIVFILE_CLIENT_TO_SERVER. But my program has to run in background.


As when the program is run in background job, the SAP system is completely independent and any operations related to presentation sever wont work.

So please suggest a way to convert the internla table to excel and then directly upload  to an application server path.

What is the difference between SELECT SINGLE * and SELECT UP TO 1 ROWS ?

$
0
0

Hello ABAP experts,

Plz Someone figure this out. T

Thanks in advance,

Regards,

AB Sumanth Suma.

Excel file FILE://Q:\1.xls.xls cannot be processed

$
0
0

Hi friends,

 

I want to upload data from excel file.

I am using function module TEXT_CONVERT_XLS_TO_SAP

But i am getting error Excel file FILE://Q:\1.xls.xls cannot be processed

 

Can I use fm GUI_UPLOAD. If yes Kindly reply me with parameters.

 

 

Regards,

Narendra

bapi_acc_document_post : functionality fb65 , balance in transaction curcy

$
0
0

Hi ,

I want to post an amount thru a Fm bapi_acc_document_post to a g/l account .

It's getting posted while using account payable but first line is credit i.e; posting key 31 instead of debit i.e; posting key 40 and second line is debit instead of credit ( posting key 40 instead of 50 ) . Using account receivable returns an error 'F5 702 balance in transaction currency' .

Secondly when testing the FM thru se37 , using account receivable it says 'g/l accountno is not a reconcilliation account' .

 

Any help !!! I would like to thank you all in advance ,whoever takes the pain to solve this .

Sun

How to move transports between development systems

$
0
0


Scenario: Assume I am upgrading my ERP system to SPS21. I have two development systems DA1 & DA2. DA1 is in the production support path DA1->QA1-->PA1. DA2 is in the SAP upgrade path DA2-->QA2. To prepare for the upgrade I used system refresh techniques to copy DA1 to DA2 and QA1 to QA2. Then I applied SPS21 to both DA1 and DA2.

 

Once transports are applied to PA1 they need to be "replicated" in the upgraded systems so they can be tested again. What is the best method for getting the DA1 transports into DA2?

 

I was thinking of using the following technique

1) Use STMS to manually add the DA1 transport to DA2 - AFTER it is applied to the production system (PA2)

2) I will select the option to overwite originals when importing the DA1 transport to DA2

3) I will create a DA2 transport and merge the objects from the DA1 transport into this new transport

4) I will test the changes in DA2 and if it looks good I'll release the DA2 transport into QA2 for integration testing

 

Does this make sense? Is there a recommended way for performing this type of transport?


Re: Message RU101 in SAP

$
0
0

Hello Experts,

 

Can you please let me know under what circumstances the message RU101 gets triggered? I am using BAPI_PRODORDCONF_CREATE_TT for posting order confirmation and for successful posting getting the message RU100.

 

But I could see a message 101 also for the message ID RU. Can some one throw some light on this please?

 

Thanks in advance

 

Srinivas

Compare table data between 2 systems

$
0
0

Hi All.

I know there is a standard SAP transaction SCMP to compare table between 2 systems. But this uses RFC connection.

Is there any such way or transaction wherein we can upload the data from other system, and then compare?

Anyone faced and solved such requirement before?

Thanks in adv.

Aishi

Difference between Using and Changing in Subroutines

$
0
0

Hi All,

 

I am using a Subroutine Example in My Program. I know the basic differences between using and changing each pointing to Call by value and Call by reference respectively. I know that using Call by Value in Subroutines won't change change the values in Actual parameters whatever happens to formal parameters. I am using the following code,

 

DATA : A TYPE I,

        B TYPE I,

        C TYPE I,

        D TYPE I,

        E TYPE I,

        F TYPE I.

 

A = 3.

 

B = 4.

 

D = 5.

 

E = 7.

 

PERFORM ADD USING A B C.

 

PERFORM ADD USING D E F.

 

FORM ADD  USING    P_A TYPE I

                                  P_B TYPE I

                                 P_C TYPE I.

P_C = P_A + P_B.

 

ENDFORM.


Using this code, as per definition in Call by value whatever changes happen to Formal Parameter (P_C) , Value of Actual Parameter (C or F) shouldn't change. But the values of actual parameters ( C and F ) are changing after 'Perform' statement even if I use that in after 'Using' in Subroutine call.


Kindly help me understand this.


Thanks & Regards,


Jai.

Setting up an additional Client in SAP HR production server to archive and edit the historical HR data.

$
0
0

Brief background of the Project and current requirement.

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

 

We used to have all the SAP HR data for all the active and inactive employees in SAP 4.6C system with OM data maintained in Position to Position reporting model (Multiple Managers in a given org unit ) instead of Chief Position ( Unique Manager in any given Org Unit ) model. This SAP system is very old and so many mergers and de-mergers were happened in the past.  So, instead of going for a system upgrade, we have Re-Implemented  a new SAP ECC system to have the clean/active configuration and ignored tonnes of old / obsolete PA/OM configuration data. We have migrated current/active Org data and latest PA data ( Top of Stack ) valid as of the go-live date. Also, we have taken care of converting the existing 'Position to Position' structured org data into 'Chief Position Model' org data, before loading into new SAP ECC system.

 

 

We initially planned to archive the historical SAP HR data in the old system into a database and provide some basic historical reporting. But, business would like to have the data retrofit capability as well on the historical data. Since SAP data is tightly integrated, we have to keep the historical data also in an SAP system to allow the data updates. So, now we are thinking about upgrading the old SAP HR box Vs setting up an entirely new client in the new SAP landscape ( both Dev, QA and Production servers ) and load the historical data into this new client. We do understand that there is considerable risk in having multiple clients in production system. As per SAP note 31557, we can have multiple clients in production system, but with few limitations.

 

 

  Below are the key challenges that we are analyzing before deciding on setting up parallel / new client in the new SAP HR system.

 

 

  1. In the new SAP system, OM data was loaded with 'Chief Position' model. But the data in the new client should be loaded as 'Position to Position' model. We are not pretty sure whether the standard SAP transaction in ECC will support the OM data in Position to Position model.

  2. The current client in the new system will have only current/active configuration data. But the new client is going to have both active and inactive/historical configuration data.

  3. If any of the transactions are using client independent tables, that might have an impact due to have multiple clients in the system.

  4. Normally, all the configuration table are client dependent. If any of the configuration / custom tables are client independent, we will have an impact.

  5. Are there any know SAP transactions that will make the updates in client independent tables ?

 

Did any of you have ever experienced or implemented multiple clients in the production system ( especially, one client with org data in 'Chief Position' model and another client with 'Position to Position' model ) and allowing the updates in both the clients ? If so, could you please share the pros and cons of the same and the challenges that were faced ?

 

  Appreciate your inputs in this regard. Thanks.

Data Type Convert

$
0
0

Hi All,

 

How to convert  1.2500000000000000E+03 value to P value.

 

Rgds

PP

Re: code for the selections in the tables

$
0
0

Hello Gurus,

 

I have a question regarding the code to be written for the selections in tables. I am a beginner in ABAP,

I am unable to figure out how to write these steps. Please let me know your valuable suggestions.

Thanks in advance.

 

To get Asset GL account the field will be T095- KTANSW

 

For the asset look in the table ANLA - ANL1, the account determination field ( ANLA- KTOGR). Get the

account determination field  and use it in the table T095 The char of accounts should be set to 1006

The account determination should be set equal to the value from the asset master. The field

T095- KTANSW  is used to populate the GL account.

 

 

 

 

data : L_S_DTFIAA_11 Like DTFIAA_11

 

 

READ  TABLE ANLA

      WITH key  MANDT = L_S_DTFIAA_11- MANDT

                bukrs  = L_S_DTFIAA_11 - Bukrs

                       BINARY SEARCH.

 

 

    IF SY-SUBRC = 0

        When chart of accounts = 1006

           USE ANLA-ktogr IN t095 

          MOVE T095- KATNSW into L_S_DTFIAA - ZZANL1

Error in BAPI BAPI_ALM_ORDER_MAINTAIN

$
0
0

Dear All,

 

 

  I am using bapi BAPI_ALM_ORDER_MAINTAIN to update work order.

 

I am getting following error:

"Operation number 0010 for component 60266517 cannot be changed in the BAPI" error number : 302 in lt_return.

 

 

60266517 is material number.

 

Following is the code :

 

CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN'

                   
TABLES
                      it_methods     
= lt_methods
                      IT_COMPONENT   
= lt_comp_del_fin
                      IT_COMPONENT_UP
= lt_component_up_chg
                     
return          = lt_return.

 

Please guide on this.

 

Thanks,

Arpita


TOA_DARA fields empty when Archiving SD invoices

$
0
0

Hi gurus,

 

We have a problem when archiving SD invoices. In some cases, when archiving, are ocurring errors that shows on SM58.

 

The error is always:

<<

ARCHIV_CREATE_TABLE            SAP_AL_OUT                       21.06.2011 18:22:23 SAP ArchiveLink: tipo objeto no asign.a ningún arc hivo (Customizing)

>>

And it's generated when saving the invoice from transaction VF01

 

We thought the problem could be that the object type was not maintained on the system but that's not the case, the problem is that the type is coming empty.

 

Watching inside the error, these fields are empty:

AR_OBJECT (should be SDINVOICE)

SAP_OBJECT (should be VBRK)

OBJECT_ID (should have the invoice number)

 

We were thinking about this TOA_DARA structure determination, but we could not see where it's been generating.

 

 

Do you know how is it possible that "sometimes" these fields go empty when processing sd invoices messages?

 

Thanks in advance

 

To Append Custom Status Messages to IDOC

$
0
0

Hi

I have to update some custom messages to Status record in IDOC.

I am making use of the EXIT_SAPLV55K_020  but this particular exit has only IDOC_CONTROL as a Changing parameter and also

IDOC_DATA in the Tables field. I have also predefined exception DO_NOT_PROCESS_IDOC. Now when my code that is written in the include ZXTRKU09 for the EXIT_SAPLV55K_020   is fired the business logic that is written works.

My problem is that i need to update some predefined custom messages to Status records when we check the same with the tcode WE02.Also as per my requirement i need to raise the exception also . I have given the following code

 

  MESSAGE e170(Message Class) WITH idoc_control-idoctp RAISING do_not_process_idoc.

 

The moment when it sees this statement it raises the above exception but i also needs the custom messages to be appended to the status records.

 

can any one please help me sort it out.

 

Regards

K.Nadesh Kumar

How to print material text in Arabic & Enlish both in smartform

$
0
0

Hello Experts, I am facing issue to print material text in Arabic in Smartforms. We have a requirement to print material text in English and Arabic both. I have maintained text in Material master in both languages, but now I don't know how to proceed further. can anyone help me in this matter ? My SAP Logon Language is EN and smartform created in language EN. What are primary requirements in our SAP server or in my PC. do we need to install Arabic font in both of these ? Regards, Archana

adding days to 360 days calendar year

$
0
0

hi ,

 

i got an issue that adding 90 days to the calendar year of 360 days.

so can any body know which function module to use to sort out this issue.

i have tried FIAPPL_ADD_DAYS_TO_DATE but this is not for calendar year 360 days

please help me.......... 

Manual condition type when entered through BAPI comes twice.

$
0
0

Hi,

I created a Sales order through BAPI,ZFNN is my condition type which i entred price through BAPI.

Only problem is that condition type appears twice in Sales Order.But the value did not come twice.

I wanted the condition type to sit on the condition type it self,rather than adding one more condition type.13.jpg

The major problem is possibility that i can change the price of condition type through BAPI.

Please find the below screen shot.I have made change of price through BAPI_SALESORDER_CHANGE.

Because of this it creates a big impact to my Net Value and Tax.It should be 100000,upon which ZVAT is to be calculated,becuse of reverse pricing mechanism it should be 5213.Then the net value should 94787.My question why should a separate condition line item is created (added) in sales order,when there is a change in price. Because of this i am getting the error.

14.jpg

Viewing all 8332 articles
Browse latest View live


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