Quantcast
Channel: SCN: Message List - ABAP Development
Viewing all 10425 articles
Browse latest View live

Get field names dynamically

$
0
0

Hi Experts,

 

I have dynamically creaeted a internal table and it's work area.
My requirement is I want field names from the dynamically created work area.
And enter data into the particular field selected field.
Can anyone explain me how can I achieve it?.

 

Thanks in advance.


Re: Function Module Error

$
0
0

Specify user profile date format . user profile date format can viewed by using this path

System->user profile->own data -> defaults .

Re: Function Module Error

Re: Function Module Error

$
0
0

Hi,

 

CX_SY_DYN_CALL_ILLEGAL_TYPE

 

Cause: The type of actual parameter does not meet the requirements of the function interface.

 

Regards

Mahesh

Re: Function Module Error

$
0
0

Hi Rahul,

 

In FM, generally errors occurred  when passing the parameters of call function to Function Module.Check the Structures of parameters what you pased.This may be helpful to you.

 

Thanks&Regards

Sreepallavi

Re: RE: ABAPERS SAP SOLUTION MANAGER

Re: Get field names dynamically

$
0
0

Hi Kish,

 

I don't fully understand your question, but I can tell you how to identify the components of a dynamically defined structure:

lr_struct_desc = cl_abap_structdescr=>describe_by_data( ls_dynamic_struct  ).
lt_components = cl_abap_structdescr->get_components( ).

Regards,

Kim

ABAP developer key

$
0
0

Hi,

 

I am new to ABAP, just wondering:

 

1. Is ABAP developer key registered within SAP organization or your own company's SAP Basis team?

2. If an ABAP developer working on two different applications for two different projects, does this developer needs two different developer keys? so one for each application? or just one developer key for both applications? or this developer's whole ABAP development life time just need one developer key?

 

Any input will be greatly appreciated.


Re: Get field names dynamically

ABAP developer key

$
0
0

Hi,

 

I am new to ABAP, just wondering:

 

1. Is ABAP developer key registered within SAP organization or your own company's SAP Basis team?

2. If an ABAP developer working on two different applications for two different projects, does this developer needs two different developer keys? so one for each application? or just one developer key for both applications? or this developer's whole ABAP development life time just need one developer key?

 

Any input will be greatly appreciated.

Re: VA02-Change Sales Order Status

$
0
0

Hi,

 

check in VBUK. there are many flags for item, header etc. If the flag value is C then completely processed. Check for which flag the value is other than C.

 

thanks

Extract datasource consume a large number of memory

$
0
0

Hi, guys,

I function enhance a datasource, call a function module in exit, now extract data consume a large number of memory,

use SM66 to monitor, when call the FM, need more memory, but after the FM finish, the memory isnt released, I think it should be released. because all variables is local in my FM.

I want to know why memory isnt released and where memory is consumed

then create memory snapshot before and after call FM via /HMUSA in debug,

then, compare memory snapshot via S_MEMORY_INSPECTOR, but find nothing related to my program

anybody could tell how to solve it and how to use S_MEMORY_INSPECTOR, many tks.

 

Best regards.

Re: Not able to obtain the selected value from list box in report selection screen

$
0
0

The way you set items table is important.

 

refresh items.

   item-key = c_pos.
   item-text = text-077.
   append item to items.

   item-key = c_adj.
   item-text = text-078.
   append item to items.

 

 

call function 'VRM_SET_VALUES'
     exporting
       id              = 'P_FORMAT'
       values          = items
     exceptions
       id_illegal_name = 1
       others          = 2.

 

 

Please check if you are using caps for fieldname.

 


Re: unable to create tmg for ztable

$
0
0

Hi,

 

Just cross check all entries in Table Maintanace Dialog Generator (SE56). Eventhough you stuck with that, then try to assign Ztable name as Function Group (Instead of Function Group which you assigned)

 

Regards

Kishore B

Re: Smartform New page Issue

$
0
0

Hello,

 

Design second page like first page. Just copy the 1st page to 2nd page and give next page as 2nd page of 1st page.

 

Instead of using template use Table option in Main Window.  Don't put anything in the header section.

 

Put your template like design into table design. In your table lines only two colums .

 

Thanks,

 

Abhijit


Scheduling problems with BAPI_PLANNEDORDER_CREATE

$
0
0

Hi guys,

 

i have a problem with BAPI_PLANNEDORDER_CREATE. Its the same result if a create a planned order with or without planing scenario but in my special case i create a planned order for a planning scenario.

 

I pass all required data to header data and set det_schedule = 'X'.

 

After commit work, the order was created and scheduled without problems.

 

BUT 

in table createdcomponentsdata there are the components of the planned order and their requirement dates(BDTER) for example:

 

Material 4711 - BDTER 18.03.2013

 

In table capacitydata1 i can see the scheduled capacity and the activity(VORNR) where the materials are assigned. example:

 

VORNR 0010 - Date 21.03.2013 (the components are assigned to this activity)

 

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

When i go to MS13(equal to MD13 for planing scenario), the components are scheduled correct to 21.03.2013.

When i have a look to the table MDSM where the requirements for planing situations are saved, i can see the requirement date for this component is on 21.03.2013.

 

I made another try:

When i create the planned order manuel via MD11 or MS11 without scheduling in the first step, the component requirement date is set to 18.03.2013 like its shown in table createdcomponentsdata which i get back from bapi.

 

When i schedule the order in a second step, the requirement date is set to 21.03.2013.

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

 

It seems to me, that in the BAPI, the components will be created in a first step, and the scheduling is processed in a further step, but the components in table createdcomponentsdata is not updated correctly.

 

Does anyone recognized the same problem???

 

Is it in every case the requirement date before scheduling which is given in createdcomponentsdata?????

 

thanks in advance

 

best regards,

Dennis

BRF+ Expression (Decision Table) and Function ID?

$
0
0

Hi

My requirement is i want to copy the a application and that is done successfully by the below code.

  lo_application->if_fdt_application_objects~copy( EXPORTING iv_discard_inv_usage = abap_true
                                                      IMPORTING eo_copy = lo_copy
                                                                ets_copy = ts_copy ).

 

After copying I want to fill the decision table by my own data for that need expression and function key

 

     lo_factory = cl_fdt_factory=>if_fdt_factory~get_instance( Application ID).   " Application Id can get as MV_ID
     lo_function ?= lo_factory->get_function( iv_id = Function ID).                    "Dont know how to get
     lo_decision_table ?= lo_factory->get_expression(  Expression ID  ).          "Dont know how to get

 

    ...... fill data and activate.

  

As ts_copy is returning many keys i am not able to find which is function and expression key .  Is my approach completely wrong

or there is other way round for it . Please suggest .

STANDARD SAP SCRIPT FOR RETURN ORDER

$
0
0

Hi All,

The standard form using return order in MIGO is WESCHEINVERS3.

My requirement is to modify the standard script as follows,

 

1. the Ship to address should be printed Which is same as the vendor's address(Vendor number & name is already in standard, which is taken from structure)

 

How to fetch the vendor address? which table & field should be used? Is it possible to use select query in Script itself?

As it is standard, I cannot make any changes in standard program SAPM07DR.

Re: BRF+ Expression (Decision Table) and Function ID?

$
0
0

Hi,

 

The steps to create a copy of an an application class is as follows:

 

1. Create Client-Independent Application Class(BRFAPL01).

 

2. Copy Implementing Classes(FKKBRFCIMP) -- you are missing this!

 

3. Copy Application Class(FMCABRFTRANS).

 

Probably you need the implementing class also for additional functionality.

 

 

I hope this will solve your query.

 

Also, for more details you can refer the below link:

 

http://155.56.92.22/wiki/pages/viewpage.action?pageId=318442164

 

 

 

Regards,

Gourav

 

Message was edited by: Gourav Kumar Jena

SKIP INITIAL SCREEN OF HUPAST TRANSACTION

$
0
0

Hi All,

 

I need to call the transaction HUPAST and skip the first screen by setting the packing station as DELIVERY01.

But i am unable to set value in field packing station using SPA parameter because of non availability of parameter id in the technical information(F1 Help) of the field packing station of HUPAST transaction.

 

Please help me in solving the issue.

 

Thanks,

Rajkamal

Viewing all 10425 articles
Browse latest View live


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