I have some problems with a generic structure-delivery.

Alles rund um die Sprache ABAP®: Funktionsbausteine, Listen, ALV
4 Beiträge • Seite 1 von 1
4 Beiträge Seite 1 von 1

I have some problems with a generic structure-delivery.

Beitrag von FattFassy (ForumUser / 3 / 0 / 0 ) »
I have some problems with a generic structure-delivery.

Exercise:
The task is it to write a ?Report? that an accomplishable ?Report? generated. The generated ?Report? hat the task all analyzed data by the customer to generate in an HTML ? Table. The ?main ? report? use Includes to read the code-fragments into an internal table.

Problem:

To call a ?Form ?(Perform), I must deliver an input ? parameter (field catalogue, and structure) but I don?t know the exact fields of the structure at the run-time.

Question:
I need an alternative to fill a structure during the operating time. (e.g. any Type?)
Goal is it to write an as generic as possible report without using of rigid definition-fragments or DDIC ? structures.

Many thanks for your help?

Best regards,

Patric Dahse
Patric Dahse
SAP-AG

gesponsert
Stellenangebote auf ABAPforum.com schalten
kostenfrei für Ausbildungsberufe und Werksstudenten


Beitrag von Azreal (Specialist / 182 / 1 / 0 ) »
Welcome to this board FattFassy!

in abap you have the possibility to create variables during runtime. The following code shows an example:

Code: Alles auswählen.

field-symbols:  <fs>    type any. 

create data dref type (p_struct). 
assign dref->* to <fs>. 
p_struct holds the name of the structure in DDIC.

otherwise you may have a look at these code examples
http://www.abapforum.com/viewtopic.php?t=877

greetz Azrael

Beitrag von Asaph (Expert / 580 / 6 / 1 ) »
Hello Patric,

examples for generic programming:

http://www.abaps.de/

-> universelle tools -> ZTABALV und ZTABACCESS - Tabellenbetrachter
->download


Gruss Andreas

Beitrag von FattFassy (ForumUser / 3 / 0 / 0 ) »
Many thanks...i have found an acceptable solution under this url.

Also Thanks on all other user which have responded of my question.
Patric Dahse
SAP-AG

Seite 1 von 1

Vergleichbare Themen

1
Antw.
1258
Views
Flat structure, deep structure and nested structure
von newone » 26.06.2018 15:53 • Verfasst in ABAP® für Anfänger
0
Antw.
1068
Views
Generic Object Services
von TitusMr » 13.03.2019 13:30 • Verfasst in Basis
0
Antw.
1258
Views
Generic Sync zwischen WAS und SAP Backend
von ludolph » 31.10.2005 14:12 • Verfasst in Web Application Server
3
Antw.
2446
Views
DDIC Structure to itab
von thilo bauer » 18.07.2005 17:44 • Verfasst in ABAP® Core
7
Antw.
4110
Views
deep structure with ASSIGN
von bjorn schmidt » 26.07.2005 16:01 • Verfasst in ABAP® Core

Über diesen Beitrag


Unterstütze die Community und teile den Beitrag für mehr Leser und Austausch

Newsletter Anmeldung

Keine Beiträge verpassen! Wöchentlich versenden wir lesenwerte Beiträge aus unserer Community.
Die letzte Ausgabe findest du hier.
Details zum Versandverfahren und zu Ihren Widerrufsmöglichkeiten findest du in unserer Datenschutzerklärung.