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

using dynamic fieldname while updating work area

$
0
0

Hi All,

 

I am getting data from CDPOS and I have to show this on an ALV . Depending upon which field is changed we have to update that field in work area and other fields should remain same as current from actual table.

 

How can I use this .

 

I have to create the work area then append it to internal table.

 

Thanks & Regards,

Rahul


Unit of Measure Conversion

$
0
0

Hello gurus,

 

Does anyone have any idea how can we use Table T006 (Unit of measure converion) to convert UoM in Teradata using denominator and numerator?

 

Regards

Shirley

Read unknown (at design-time) table contents

$
0
0

Hello experts,

 

I would like to write a program which performs the following:

 

1. Get user input specifying the name of a table (not a problem on how to get that; my doubts starts at item 2. ...)

2. Once I have got the (random) name of the user-selected table to be able to read the given table's contents

3. And even more... I want to go through the table records and write the corresponding values on screen or even play/operate with them from the code

 

I suppose this could be achieved by using FIELD-SYMBOLS and/or Dynamic Internal Tables; however I've tried with some coding without any success, therefore I'm not sure how to start. I've seen links like http://scn.sap.com/docs/DOC-42525 but not sure I understand how to implement all of this.

 

Do you have any clues, samples, etc.? Any help will be much appreciated.

 

Thanks in advance. Best regards,

 

Bernardo

Problem with Value Request in a table control

$
0
0

Hello everyone,

 

I have a dynpro with an editable table control on it. For the column OBJID of said table control I want to implement an F4 value help using a module in PROCESS ON VALUE-REQUEST.

 

Trouble is, the possible values in that column OBJID depend on the neighboring column OTYPE (this relates to table HRP1000). So when programming the VALUE REQUEST I would need to know the content of the neighboring OTYPE field in the same row. However, the PROCESS ON VALUE-REQUEST event does not initiate a field transport between dynpro (table control) and the corresponding internal table, so in my module in the PROCESS ON VALUE-REQUEST-block I don't know the content of the OTYPE field.

 

Is there a solution to this? In a normal PAI, I would simply code a preceding FIELD OTYPE. (with no following module command), thereby manually initiating the field transport. However, in a PROCESS ON VALUE-REQUEST-block FIELD commands with no subsequent module command are forbidden.

 

Is there any way to get the current OTYPE field value of that row from the table control? I could do a GET CURSOR LINE and then read the corresponding internal table, but that will not yield an altered value that the user may have entered into the table control row in the meantime - especially when the user is creating a new row which does not yet exist in the internal table.

addition missing

$
0
0

Dear Experts,

 

which syntax is the correct one. According to Abap OOP Tutorials is Example 1 the common kind of syntax, isn' it?

 

Because I am getting this error massage with example1: PUBLIC addition of the CLASS statement is missing

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

Example 1

 

CLASS ZCL_EMPLOYEE definition.

 

* compare this section with below example 2


   public section.
    TYPES:
       BEGIN OF t_employee,
         no  TYPE i,
         name TYPE string,
      END OF t_employee.

   METHODS:
       constructor
         IMPORTING im_employee_no TYPE i
                   im_employee_name TYPE string,

      display_employee.
   protected section.
       CLASS-DATA: g_no_of_employees TYPE i.
   private section.
       DATA: g_employee TYPE t_employee.
ENDCLASS.

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

This works well with the part after DEFINITION.

 

Example 2

 

CLASS ZCL_EMPLOYEE definition

   public

   final

   create public .

 

 

   public section.

      TYPES:

       BEGIN OF t_employee,

         no  TYPE i,

         name TYPE string,

      END OF t_employee.

   METHODS:
       constructor
         IMPORTING im_employee_no TYPE i
                   im_employee_name TYPE string,

      display_employee.
   protected section.
       CLASS-DATA: g_no_of_employees TYPE i.
   private section.
       DATA: g_employee TYPE t_employee.
ENDCLASS.

 

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

 

Best Regards

Hakan

Hola, deseo adicionar campos y pestaña a la transacción VT01N, VT02N

$
0
0

Hola a todos, me han solicitado adicionar campos nuevos y una pestaña a la transacción VT01N (Crear transporte), VT02N (Modificar Transporte), sí alguien sabe cómo realizarlo por favor indicarlo.

 

Agradezco anticipadamente a la gestión.

 

Alex

OO ALV in background job

$
0
0

Hi,

I am trying to run a ALV report in background and job is canceling out with error message Control Framework: Fatal error - GUI cannot be reached

 

I am using cl_gui_alv_grid class with cl_gui_custom_container. This report runs perfectly in front end.

 

Any idea !

 

Thanks -Ezazul

FM CONVERSION_EXIT_TPLNR_INPUT in VBA

$
0
0

Hi Experts,

Regarding this thead: Where can I get functional location text , i'm facing the same issue, when extracting TPLNR (Functional Location) field from table ILOA, i get "?0100000000000000023", instead of the proper name, so, i saw that the function CONVERSION_EXIT_TPLNR_INPUT is the right way to go threw this, the difference is that im using VBA instead of ABAP programming. I have experience on extracting info from tables with RFC_READ_TABLE, but this function module is new fo me.

 

Until now i have done the following piece of code:

 

(Connection and the things before this works fine)

 

dim oTroObjeto as object

dim obJermano as object

Set oTroObjeto = sapConn.Add("CONVERSION_EXIT_TPLNR_INPUT") 'this part works

oTroObjeto.Exports("INPUT") = "?0100000000000000023" 'An example of the wrong field

 

If oTroObjeto.Call = False Then 'Here i have the error

    MsgBox oTroObjeto.exception

Else

     Set obJermano = oTroObjeto.Imports("OUTPUT") 'the variable to save the name... i think.

End If

 

Any parameter i am missing?, some set up?

I got "SYSTEM FAILURE" error.

 

Any guidance or enlight would be higly appreciated!

 

Many thanks in advance!

 

Angel


Open PDF file from FTP Server

$
0
0

Hello,

 

How can I open  PDF File from FTP Server with ABAP code ?

 

Best Regards

 

Tanju

how to trigger the outbound idoc from inbound idoc?

$
0
0

i had a requirement when ever an inbound idoc comes into our system, an outbound idoc should be trigger with that changes. is it possible?

 

if possible how?

Table T370K shows more fields that actually has

$
0
0

Hello gurus, I have a requerement, my functional guy needs a report, in this report, we need show the field: T370K -EARTX When I go to SE16 and to show T370K data:

table1.PNG

As you can see, we only have 2 fields, MANDT and EQART.

 

When I do clic on show data I can see the field EARTX.... WHY? I need this field, but when I try to make an ABAP query I get an error:

the field EARTX. does not exist in T370K  Table.

table1.PNG

 

Could anyone please help me???? This is very strange

How to export to excel a Control table and how can set a sum button?

$
0
0

Hello, I have 2 control tables like shows image below:

control table.PNG

I want to have 2 button to export to excel, one for each grid, and I want to have to a button to make a sum of quantities.

 

Is this possible? in ALV this is  we have these options and more, but in module pool no, how can I do this?

Regards

Update product hierarchy in Material master

$
0
0


Hi Gurus,

 

I want to update the product hierarchy in basic data view of material mast with some new product hierarchy.

 

Business requirment: My client is changing the prduct hierarchy values EG : currently it is 010010000100000001

                                                                                                                   new value may be : 020020000200000002.

 

The lenght of the levels will remain same : 02 03 05 08.

only the value will be changing.

 

I am serching any BAPI or FM which will update the material  master PRDHA. I tried using 'BAPI_MATERIAL_SAVEDATA'

i am passing the values as

HEADDATA like BAPIMATHEAD

 

MATERIAL = '000000000000200000'
BASIC_VIEW = 'X'.

 

CLIENTDATA like BAPI_MARA

PROD_HIER = '020090004600000118 '

 

CLIENTDATAX like BAPI_MARAX

 

PROD_HIER = 'X'.

 

and then caling BAPI_TRANSACTION_COMMIT.

Am i missing something here??

 

it is not updating the values with 020090004600000118.

 

when i went to MM02 i found that product hierarchy field is not in edit mode..i m now not understanding how to update the old PRHDA of MARA with new PRHDA value? please help..

BADI/Userexit needed for creation of invoice reference to automatic invoice created during PGI using the transaction code VL02N

$
0
0

Hi All,

 

I have a requirement to create the invoice reference to automatic invoice created during PGI using the transaction code VL02N.

Please help me to provide the BADI/userexit to get the automatic invoice created during the PGI so that i can put the code for creation of invoice reference to automatic invoice created in background as per outbound delivery entered in VL02N.

 

I had put the code in BADI's method : BADI: LE_SHP_DELIVERY_PROC even in BADI: LE_SHP_GOODSMOVEMENT but not getting the invoice number reference to VBFA-VBELV and VBFA-VBELN . Means no entry created in BKPF.

 

I have also put the code in user exit: MV50AFZ1 but same issue no entry generated in BKPF reference to delivery number entered in VL02N and click on PGI.

 

Please suggest .

 

Thanks in Advance.

 

Regards,

Jatin

selection screen issue

$
0
0

hi gurus ,

 

in selection screen i have 3 parameters  .

like

parameter a .

parameter b.

parameter c .

 

if select parameter a  by using f4 help .

remaining

parameter b and

parameter c .

 

will fill data .


Custom table works in development env but not in staging

$
0
0

Hello Experts,

 

I've a custom table ZOTB_UPLIFT_HDR, which has no issue in development system as shown below.

 

However, when I get this table migrated into staging then transport was migrated with the following errors and also I've observed that instead of Active status is New.

 

Also here are the error I see under the transport.

 

It looks to me that it complains that table is not activated, which is not the case.

 

Can somebody see what mistake I'm making and how to rectify it?

 

Many thanks in advance.

Formated Excel attachment through Mail

$
0
0

Hi SAP Gurus,

 

My requirement is as follows,

 

I need to send formatted excel as attachment.

I have gone through many posts and found it is possible by using IF_IXML_ELEMENT


The program is working fine however I am facing issue in formatting a particular cell in the sheet.

 

Requirement screen shot is attached below,

(I want to color the particular cell as red abd wrap it)

 

Code Attached:

 

Regards,

Pavan.

RBDMIDOC and change pointer

$
0
0

Hello,

 

I want to know if the program RBDMIDOC could run automatically instead of schedule a JOB.

 

Thank,

Lucila.

RBDMIDOC and change pointer

$
0
0

Hello,

 

I want to know if the program RBDMIDOC could run automatically instead of schedule a JOB.

 

Thank,

Lucila.

SAP CRM technical study material

$
0
0

Hi all,

 

I am new to CRM. Wanted to learn things technically.

Can anyone send me CR580 material

Also please send pdf of any other material related to CRM.

my id : hemasudhad@gmail.com

 

Regards,

Hemasudha

Viewing all 8332 articles
Browse latest View live


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