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

Table COST relationship

$
0
0

Hi Gurus,

 

I'm new in queries world I'm building InfoSet for finance team where everything was going smooth to this point.

It is actually very simple one, just MAPL, PLPO, CRHD and CRCO.

 

But now I have to add also one information from COST table (field TKG008)  and I'm not able to find relation between COST and any of tables mentioned above.

 

Can you please suggest

 

Regards


GWRD: Installation + Start

$
0
0

Hi

How can I know whether GWRD is installed on a specific SAP box?

We need it to run, but it seems like it is not running, so I have no idea how to check whether it is installed as stand alone or included, and if so, how to start it.

Regards

BAPI or Function Module for ME12

$
0
0

I need a BAPI or Function Module for SAP Trans ME12.  I created a BDC for this trans but will not run in background mode works fine in foreground but I need this to run in background.  So trying a different approach by looking for a BAPI or Function module.   I need to enter Text and for Conditions PB00 need to created a new Valid From Date and Amount.  Does anyone have an example of how to accomplish this via a BAPI or know how to make the BDC work in background.

 

Thanks

Gary

ALV Hotspot Issue

$
0
0

Dear Colleagues,

 

I am having 3 columns on ALV output. My aim is that when each column values are clicked it opens the relevant transaction screen. I have tried so far two

 

 

Alternative 1: Only transaction code

 

form user_command using r_ucomm       like   sy-ucomm

                         rs_selfield   type   slis_selfield.

 

   set parameter id 'SETTLDOC' field rs_selfield-value.

  LEAVE to TRANSACTION 'EEDMSETTLDISP'.

   set parameter id 'INT_UI' field rs_selfield-value.

  LEAVE to TRANSACTION 'EEDM11'.

  set parameter id 'PROFILE' field rs_selfield-value.

  LEAVE to TRANSACTION 'EEDM02'.

 

case r_ucomm .

     when '&IC1' .

   endcase .

endform .


Alternative 2: No change happens


form user_command using r_ucomm       like   sy-ucomm

                         rs_selfield   type   slis_selfield.

 

CASE alv_fieldcat-fieldname.

    when 'SETTLDOC'.

      LEAVE to TRANSACTION 'EEDMSETTLDISP'.

    when 'INT_UI'.

  LEAVE to TRANSACTION 'EEDM11'.

  when 'PROFILE'.

  LEAVE to TRANSACTION 'EEDM02'.

 

  endcase.

 

case r_ucomm .

     when '&IC1' .

   endcase .

endform .


I would kindly ask for your ideas&support in order to reach a solution.


Thanks in advance

Regards


Eddy

Can we get F4 kind of functionality, say pick list?

$
0
0

Hello,

 

I am aware of that from ABAP code I can create a new excel file with some default data on it on user's local PC, well, but users are asking PICK LIST (similar to F4 in SAP) functionality on the created (downloaded) excel file, for example, I populated the column A label as PLANT on the 1st row, now users are asking a PICK LIST / DROP-DOWN ability on the 2nd row to select the desired plant, meaning, while am creating / downloading the excel file I need to fill/populate the LIST BOX as well in the column A in the excel

 

Pl. let us know how can achieve my requirement that adding  populating a pick list on a column on the excel?

 

Thank you

BAPI_PO_CHANGE error

$
0
0

Hi,

 

I am facing some issue in using BAPI_PO_CHANGE to change Downpayment fields, I have passed relevent values to fields in ls_bapimepoheader and change indicators in ls_bapimepoheaderx. But I am getting SYST: Date 00/00/0000 not expected error. i tried to change some other fields from BAPI it was working fine also I was able to change fields from ME22N.

 

 

CALL FUNCTION 'BAPI_PO_CHANGE'

       EXPORTING

         purchaseorder = is_ekko-ebeln

         poheader      = ls_bapimepoheader

         poheaderx     = ls_bapimepoheaderx

         no_messaging  = 'X'

       TABLES

         return        = lt_return

         poitem        = lt_bapimepoitem

         poitemx       = lt_bapimepoitemx.


Regards,

Ankitesh Khare

Value tag XML

$
0
0

Hi dears!


I need to get values from XML tags and add them to a table z, how do I do this?

 

Please, help me, i am beginner in ABAP.


Suggested using me FIND ALL OCCURRENCES.

 

 

Regards.

How to make Time field as Mandatory in Standard Tcode of ME38 Scheduling Agreement

$
0
0

Hi Experts,

 

My requirement is to make Time field as Mandatory in Standard Tcode of ME38 Scheduling Agreement.

Kindly find the steps that I've followed with the attachment pictures.

 

Note: I've tried SPRO settings to set the Time field as Mandatory, but I didn't find the exact field.

 

1. ME38: Header->Items->Schedule Lines

I need Time as Mandatory at Schedule Lines as below.

 

ME38 1.JPG

 

2. Below is the Standard Screen for ME38 Schedule lines

 

Program         SAPMM06E

Screen number   1117

ME38 2.JPG

 

3. In Module MM06EF0C_CLEAR_QUANT_SUM, as I'm getting the Values, I've wrote the below code.

    Populating an error message when Time is empty.

 

ME38 3.JPG

 

Solution Needed:

 

As I'm populating ERROR Message, the entire screen is getting locked. Its fine upto now.

But after ENTER, how to set the screen unlock to give the TIME field as input.

 

 

Kindly let me know the solution.

 

With Regards,

Sudhir.


How to compare PDF form

$
0
0

Hi,

 

I have two servers say development & quality and I have the 'PDF form'. (t.ocde: SFP)

 

Just wanted to compare both the  PDF form.

 

Because, in one server it is working fine and other server some of the images are getting over lapped while printing.

 

 

Please help me.

Get the flat file of inbound idoc

$
0
0

Hi,

 

I would like to know if there's a way to generate a flat file that includes the information of an inbound idoc.

 

I have tried to generate it from WE02 and idoc menu option but that's not the format I want to get, I would like to have format similar to the one I have when i generate a file from outbound interface.

 

Is it possible?

 

Regards

 

Jon

Problems with roles and PNPCE logical database

$
0
0

Hello everybody,

 

This question involves LDB, ABAP and authorizations.

 

Our customer has required for us a role for users that should be able only to see EEs from EE group V.

 

Role has been created and seems to work fine.

 

Problem is for our customer EE group V are expats, so they will always have 2 Pernrs, one with EE group V and another with a different one.

 

When trying to run the print program of an HRFORM that uses LDB PNPCE, user does not have authorization for one of the two PERNRs that are linked via object CP therefore the report fails.

 

Is this "standard" behaviour? Is there any way to make this work in a different way without implementing HR authorizations BADI?

 

Thanks in advance,

 

Pablo.

Passing a string of a PARAMETER

$
0
0

Hello,

 

I am new to ABAP. I am trying to pass a string of a PARAMETER to a variable.

My problem is i do for example:

 

PARAMETERS :     s_lstnam(20) TYPE C * if i write Hello World


String = s_lstnam


String = HELLO WORLD.


It allways changes the text to CAPS, and i want it to remain the same has i write in the parameter.


Anyone knows how to solve this ?


Regards,

Miguel Barão

Disable Release Flag in PM Notification

$
0
0

Hi ABAP Guru,

 

I have requirement disable the PM Notification Flag IW51/IW52 Tcode,I found a User Exit QQMA0024 Deactivation of function codes in CUA menu.

 

But not able to implement it.How to deactivate the flag,Please help.

Function Group and Function

$
0
0

Hello experts,

 

maybe  i have "special" question. I have the function group with several functions. One function returns ( check )  error message "type XYZ is unknown". To solve this error i have to transport missing type. it is clear, but i would like to leave this function without any changes, i would like to set e.g. into inactive, but still is there check over this function.

 

Question : is any way to have functions with some "e.g. syntax error" and some function without error in one function group ? I assume that i cannot modify include L???????UXX to delete some functions.

 

 

Thanks in advance

 

Martin

what is full form of ECC

$
0
0

what is full form of ECC in ECC6.0


Getting dump while using INNERJOIN

$
0
0

There is a INNER JOIN like below is giving dump, here viafvc and caufv are views that combines two tables each,

The input range table r_objid in where clause having 1998 records, rest of all blank

If the number of records  in r_objid is 1884, its not giving dump.

 

 

SELECT viafvc~aufpl                  " Routing number of operations

         viafvc~aplzl                  " General counter

         viafvc~plnkn                  " Number of the task list node

         viafvc~plnal                  " Group Counter

         viafvc~plnty                  " Task List Type

         viafvc~plnnr                  " Key for Task List Group

         viafvc~zaehl                  " Internal counter

         viafvc~vornr                  " Operation/Activity Number

         viafvc~steus                  " Control Key                    "insert CAGK9A05M3

         viafvc~arbid                  " Object ID of the resource

         viafvc~ltxa1                  " Operation short text

         viafvc~zerma                  " Type of standard value calculation

         viafvc~aplfl                  " Sequence

         viafvc~objnr                  " Object number

         viafvc~bedid                  " ID of the capacity req record

         viafvc~bedzl                  " Internal counter

         viafvc~meinh                  " Unit of measure

         viafvc~mgvrg                  " Operation Quantity

         viafvc~lmnga                  " Total Yield Confirmed

         viafvc~xmnga                  " Total scrap quantity confirmed

         viafvc~fsavd                  " Earliest start date

         viafvc~fsavz                  " Earliest start time

         viafvc~fsedd                  " Earliest finish

         viafvc~ssavd                  " Latest start

         viafvc~ssedd                  " Latest finish

         caufv~aufnr                   " Order Number

         caufv~objnr                   " Object number

         caufv~gltrp                   " Basic finish date

         caufv~gstrp                   " Basic Start Date

         caufv~rsnum                   " Reservation number

         caufv~aufld                   " Date of BOM Explosion

         caufv~dispo                   " MRP controller

         afpo~plnum                    " Planned order no   "I_CAGK9B028J

         afpo~kbnkz                    " kanban indicator   "I_CAGK9B028J

         afpo~matnr                    " Material number

         afpo~verid                    " Production version

         afpo~berid                    " MRP Area

    INTO TABLE i_prod

    FROM viafvc AS viafvc INNER JOIN caufv AS caufv

      ON caufv~aufpl EQ viafvc~aufpl

     AND caufv~werks EQ p_werks

   INNER JOIN afpo AS afpo

      ON afpo~aufnr EQ caufv~aufnr

   WHERE viafvc~arbid IN r_objid

     AND viafvc~fsavd LE p_dats

*     AND viafvc~loekz NE c_x          " CAGK985681

     AND viafvc~loekz EQ space         " CAGK985681

     AND afpo~matnr   IN s_matnr

     AND caufv~dispo  IN s_dispo

     AND caufv~fevor  IN s_fevor

     AND caufv~aufnr  IN s_aufnr

     AND afpo~berid   IN s_berid.

 

Dump description :

 

Category               ABAP Programming Error

Runtime Errors         DBIF_RSQL_INVALID_RSQL

Except.                CX_SY_OPEN_SQL_DB

ABAP Program          

Application Component  Not Assigned

Date and Time          11/25/2015 06:13:05

 

Error in module RSQL of the database interface

 

 

 

 

 

 

happened?

Error in the ABAP Application Program

 

 

The

current ABAP program "XXXXXXXXXX" had to be terminated

because it has

come across a statement that unfortunately cannot be executed.

 

 

 

 

 

 

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.

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.

 

 

 

 

 

 

or analysis

An exception occurred that is explained in detail below.

The exception, which is assigned to class 'CX_SY_OPEN_SQL_DB', was no

  in

procedure "GET_SCHE_QTY_FOR_PROD" "(FORM)", nor was it propagated by

  clause.

Since the caller of the procedure could not have anticipated that the

exception would occur, the current program is terminated.

The reason for the exception is:

The SQL statement generated from the SAP Open SQL statement violates

restriction imposed by the underlying database system of the ABAP

system.

 

 

Possible error causes:

  o The maximum size of an SQL statement was exceeded.

  o The statement contains too many input variables.

  o The input data requires more space than is available.

  o ...

 

 

You can generally find details in the system log (SM21) and in the

developer trace of the relevant work process (ST11).

In the case of an error, current restrictions are frequently displaye

in the developer trace.

 

 

 

 

 

 

to correct the error

Please check the entries in the system log (Transaction SM21).

Internal call code.........: "[RSQL/OPEN/VIAFVC ]"

The SAP Open SQL statement concerned must be divided into several

smaller units.

If the problem occurred due to the use of an excessively large table

in an IN itab construct, you can use FOR ALL ENTRIES instead.

When you use this addition, the statement is split into smaller units

according to the restrictions of the database system used.

 

 

 

 

If the error occures in a non-modified SAP program, you may be able to

find an interim solution in an SAP Note.

If you have access to SAP Notes, carry out a search with the following

keywords:

 

 

"DBIF_RSQL_INVALID_RSQL" "CX_SY_OPEN_SQL_DB"

"XXXXXX" or "XXXXXXXX"

"GET_SCHE_QTY_FOR_PROD"

(Unconverted)".

 

 

2. Corresponding system log

 

 

   Display the system log by calling transaction SM21.

   Restrict the time interval to 10 minutes before and five minutes

after the short dump. Then choose "System->List->Save->Local File

(Unconverted)".

 

 

3. If the problem occurs in a problem of your own or a modified SAP

program: The source code of the program

   In the editor, choose "Utilities->More

Utilities->Upload/Download->Download".

 

 

4. Details about the conditions under which the error occurred or which

actions and input led to the error.

 

 

The exception must either be prevented, caught within proedure

"GET_SCHE_QTY_FOR_PROD" "(FORM)", or its possible occurrence must be declared

in the

RAISING clause of the procedure.

To prevent the exception, note the following:

 

 

 

 

 

 

 

 

 

 

If the error occures in a non-modified SAP program, you may be able to

find an interim solution in an SAP Note.

If you have access to SAP Notes, carry out a search with the following

keywords:

 

 

"DBIF_RSQL_INVALID_RSQL" "CX_SY_OPEN_SQL_DB"

"XXXXXXX" or "XXXXXXX"

"GET_SCHE_QTY_FOR_PROD"

 

 

If you cannot solve the problem yourself and want to send an error

notification to SAP, include the following information:

 

 

1. The description of the current problem (short dump)

 

 

    To save the description, choose "System->List->Save->Local File

Assembly Indicator in BOM Level

$
0
0

hi,

 

can any one let me known any function module to get the list of all materials at BOM

i,e if i give a material number i should get all the material including the assembly for materials.

or let me known where the assembly indicator will stored at table level

 

i have seen CS_BOM_EXPL_MAT_V2 function module which give all levels of the materials and gives the assembled

material also but

 

My requirement is for given date range, plant and material i should get materials including assemblies with the total quantity used  in that  given date range.

 

Regards,

R K.

 

Edited by: R K on Aug 12, 2010 2:17 PM

bom assembly indicator

$
0
0

Hello, could you explain what is the assembly indicator? i Have explode the level by level my bom(cs11) and i have some items with the tick on the assembly indicator and some don t have. thks

Facing Issue while conditional data in sales order:-Operation with condition type F not allowed

$
0
0

Dear all,

 

We are using bapi BAPI_SALESORDER_CHANGE and we require to change conditional data .

when we are trying to chnage for HD00 condition type it's throws error like "Operation with condition type F not allowed "

Other than HD00 we are able to change .

 

Please let us know solution .

 

Thanks

Surekha

BAPI or Function Module for ME12

$
0
0

I need a BAPI or Function Module for SAP Trans ME12.  I created a BDC for this trans but will not run in background mode works fine in foreground but I need this to run in background.  So trying a different approach by looking for a BAPI or Function module.   I need to enter Text and for Conditions PB00 need to created a new Valid From Date and Amount.  Does anyone have an example of how to accomplish this via a BAPI or know how to make the BDC work in background.

 

Thanks

Gary

Viewing all 8332 articles
Browse latest View live


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