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

Newly added fields not displaying in table maintainance generator

$
0
0

Hi Team

I have created one Z table with 50 fields. Later we have a requirement to add 10 fields in the same table.

the issue is , when we are going to SM30 it is not showing the newly added fields .

we have tried all the options as below.

-> Creation and regeneration of TMG

-> adjusting the table through SE14.

 

Nothing works for us..
Please suggest.


HOW TO SPLIT THE DATA FROM AN INTERNAL TABLE AND MOVE THAT DATA TO CORRESPONDING FIELDS OF ANOTHER WORKAREA

$
0
0

Hello all,

 

i have two internal tables as below,

 

types : begin if ty_data,

data(1000),

end of ty_data.

 

data : it_data(1000) type table of ty_data,

         wa_data like line of it_data.

 

types : begin of ty_struc,

           vendorref(35),

           suppliercode(40),

           cotyponumber(40),

           cotyorderreference(40),

          dcoforigin(40),

          countryofdestination(40),

          site(40),

          sloc(40),

          irc(40),

          supplierarticlecode(40),

         description(100),

         uom(40),

         qty(40),

         batch(40),

end of ty_struc.

 

data: it_tab type table of ty_struc,

        wa_tab like line of it_tab.

 

now i hav an excel file with all the required fields (same as ty_struc) and its values. I have uploaded the excel file in to IT_DATA. now my requirement is to split the clubbed data and move to the corresponding fields of IT_TAB.

 

any one help me.

 

regards.

Adding new check box for enhancing COOIS transaction

$
0
0

Hello Experts,

 

 

I want to add a new check box under options block in the COOIS transaction ( see attached screen shot ).  Please suggest how can I achieve that.

 

It is very urgent. Please let me how can I achieve that . I checked for exits and enhancements but none of it fits my requirement.

 

Thanks,

Balu

How to convert date into arabic date in adobe forms?

$
0
0

Hi,

I have a requirement like , in english the date is displayed as 01.01.2015.
It has to display reverse in ARABIC form.

 

Thanks and Regards.

popup menu on selected record on alv grid display

$
0
0

hi experts ,

 

i got a requirement that selected vendor details should display in popup in alv grid display

can any body have an idea?

for TMG sm30 additional functionality for sort all fields and also for 'position' search value to all fields

$
0
0

hello...

i want to knw , in sm30  for 'position' button- i will shows for  only KEY field to search value..   but  i need to add all the fields (NON-KEY fields also)  to find the value search.. is that  any  way for this...????  if , yes , than how can i do this...a

 

nd also I wanted sort non key field column wise, like when i  select a particular column and then click on sort button..   already for  sort button  i created.. but  its working for only one fields ..  i need this for  all selected column.... .    

 

thanks...

VAIBHAV.

ABAP Open Source projects

$
0
0

Because the old "SAP Code Exchange" plattform is dead since 2013, it isn't easy anymore to follow all of the great ABAP Open Source projects here on SCN and around the Internet.

 

Overview of these kind of projects as "single point of entry"

 

Project TitleDescriptionDocumentationProject Page
SAPlinkSAPlink is a project that aims to make it easier to share ABAP developments between programmers. It provides the ability to easily distribute and package custom objects.SAPlink User Documentation - ABAP Development - SCN WikiHome | SAPlink Project | Assembla
SAPlink Plug-insPlug-Ins for SAPlinkSAPlink plugin list | SAPlink Project | AssemblaHome | saplink-plugins Project | Assembla
SAPlink for ABAP Development ToolsSAPlink for ABAP in Eclipse brings ease of use to SAP Code Exchange ABAP developers.Installation Guide SAPlink for ABAP Development ToolsHome | SAPlink for ABAP in Eclipse Project | Assembla
abap2xlsxGenerate your professional Excel spreadsheet from ABAPabap2xlsx - Generate your professional Excel spreadsheet from ABAPabap2xlsx by ivanfemia
DOCXGenerate DOCX file in ABAPGenerate DOCX file in ABAP./.
zJSONThe JSON Document ClassUsage zJSON · se38/zJSON Wiki · GitHubse38/zJSON · GitHub
abap_fm_jsonJSON adapter for ABAP Function Modules.JSON Adapter for ABAP Function Modulescesar-sap/abap_fm_json · GitHub
TwibapThe ABAP Twitter APIHome · se38/twibap Wiki · GitHubse38/twibap · GitHub
Neo4aThe Neo4j ABAP ConnectorNeo4a: The Neo4j ABAP Connectorse38/Neo4a · GitHub
ZOAuthThe ABAP OAuth HandlerHome · se38/ZOAuth Wiki · GitHubse38/ZOAuth · GitHub
OAuth2Next generation authentication APIOAuth2: Next generation authentication APIivanfemia/abap2oauth2 · GitHub
CoDBapThe ABAP CouchDB APIHome · se38/CoDBap Wiki · GitHubse38/CoDBap · GitHub
moDBapThe ABAP mongo DB APIHome · se38/moDBap Wiki · GitHubse38/moDBap · GitHub
abapGitGit client for ABAPHome · larshp/abapGit Wiki · GitHublarshp/abapGit · GitHub
ZAL11AL11 replacementZAL11 : a replacement for AL11./.
ZTOADOpen SQL EditorZTOAD - Open SQL editor ./.
ZLISTCUBELISTCUBE replacementLISTCUBE replacement : a new way to display data./.
ZMOCKUP_LOADERTest data loader for ABAP unit test. Prepare in Excel, save in TXT to ZIP, upload via SMW0.Unit testing mockup loader for ABAPsbcgua/mockup_loader · GitHub

 

Please feel free to modify / add your project.

function module reg.

$
0
0

In " reuse_alv_grid_display" wch field is responsible for print preview and converting to text file? Can u plz say briefly?  Its urgent plz


Looping while saving error

$
0
0

Dear All,

I am uploading excel to vk11 but while uploading there are some materials which are not defined in sales organization.And due to that,my program gets over if the material is not defined and it comes out of loop ignoring other data after that material number.

But my functional wants that,if the material is not defined,then it should be saved somewhere as error and my program checks another material for upload. Once the whole file gets uploaded,the error should display the number of materials and material number on screen.

Please help me out as how can I define logic for it.

 

Thanks.

Modify / Insert/ Delete a Infotype using Class / Methods

$
0
0

Hi Experts

 

We need to update several infotypes and we tried it with FM HR_INFOTYPE_OPERSTION. But this FM is not working properly and its not released for customers. So we have to do it via the Classes. We found many Classes, but no one has a example within SAP and all the threads I found are not really helpful for me.

So can somebody give me a good example to do a action on a infotype with Classes? I tried it with if_hrpa_plain_infotype_access and cl_hrpa_infotype_ nnnn, both are not working. An error occures releated to grpval CP. CP is not used in this system.

I tried it with cl_hrpa_infotype_container and this is also not working. I have to change the keys, and the method modify_primary_record throws a dump when I want to change the begda.

 

It would be really great if somebody can give me a helping hand.

 

Many Thanks

 

Marco

No value from FM output

$
0
0

Dear Gurus,

 

 

 

 

I am having a calculation(dtmng) on the program where multipliers are table field value and function output field(prof_value)

 

 

 

 

 

 

extract from coding

 

Data: dtmng type p.

 

 

 

 

 

CALL FUNCTION 'ISU_EEDM_READ_PROFILE_VALUES'

 

.......

 

 

 

IMPORTING

 

     YT_VALUE              = lt_values[]

 

 

 

 

 

dtmng = lt_values-prof_value * ls_EEDMSETTLUF-usefactor.

 

 

 

 

 

 

the problem is result(dtmng) zero although it should be according to debug

 

 

 

 

 

Although I test the FM which returns right value, lt_values-prof_value  in z program brings not a value(only zero)

 

 

 

 

 

Any commend or idea would be appreciated.

 

 

 

Kind Regards

 

 

Eddy

ABAP 7.4: SHIFT, places calculated

$
0
0

Hi,

 

I want to re-design the following coding sequence:

 

      CREATE DATA ltype TYPE LINE OF (tabname).
       ASSIGN ltype->* TO FIELD-SYMBOL(<ltype>).
       typedescr = cl_abap_typedescr=>describe_by_data( <ltype> ).
       tabname = typedescr->absolute_name.
       SHIFT tabname:
         LEFT UP TO '=',
         LEFT BY 1 PLACES.


tabname contains i. e.  '/TYPE=MARA', I need the table name MARA. The double-shift bothers me. I'd like to do something like this:


tabname = shift_left( shift_left( val = tabname places = find( val = typedescr->absolute_name sub = '=' ) ) places = 2 ).


(wich means: find the '=' in absolute_name, shift to this char, shift 2 places more, the result is the table's name, i. e. MARA).


What I am doing wrong?

Function Module in SQ02 Queries with additional fields.

$
0
0

Hello Experts,

 

 

First please be gentle with coding explanation, I am not Abap. I'm trying to call a function from infoset, the function output it's a table (I wrote the code into the coding space for an additional field). I don't know how to print this results in the ALV report.

 

My source code is:

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

 

DATA: OR_EDELNR TYPE MDPS-DEL12.

DATA: OR_EMATNR TYPE MT61D-MATNR.

DATA: OR_EWERKS TYPE MT61D-WERKS.

data: begin of mdrqx occurs 50.

         include structure mdrq.

data: end of mdrqx.

OR_EDELNR = PLAF-PLNUM.

OR_EWERKS = PLAF-PLWRK.

OR_EMATNR = PLAF-MATNR.

CALL FUNCTION  'MD_PEGGING_NODIALOG'

   EXPORTING

     EDELKZ = 'AE'

     EDELNR = OR_EDELNR

     EMATNR = OR_EMATNR

     EWERKS = OR_EWERKS

   TABLES

     IMDRQX = mdrqx

   EXCEPTIONS

     error                 = 1

     no_requirements_found = 2

     order_not_found       = 3

     others                = 4.

 

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

 

I've been trying to loop the table with different statements like

write:/ mdrqx-matnr.

 

However the structure MDRQX has more that one line, and the results in the ALV is printing just the final line.

 

Thanks for your helping



BAPI_SALESORDER_CREATEFROMDAT2 ship-point gets initial value

$
0
0

Hello experts,

 

I'm using FM  BAPI_SALESORDER_CREATEFROMDAT2 to create a sales order. My problem is that although i fill  order_items_in and  order_items_inx with ship_point after the creation of SO, ship-point is set to spro default values. After some debugging i found out that value is changed on SD_SALES_ITEM_MAINTAIN in a form which is triggered because vbap-uepos is initial which makes no sence. Is there any Note that i can implement or a field to be filled to solve my problem ?

 

Regards

Generate custom project report from SAP

$
0
0

Hi Experts,


Could anyone kindly  suggest how to approach this requirement?


The requirement is to create a multiple page Project report (Header, Table of contents, Body, footer, tables, pictures) from SAP and output should be generated in MS Word (to be saved on desktop). This Project report will be triggered and generated from a custom transaction, and the data to be populated in the document will be determined through custom logic and selected from already saved standard (SO10) text. The sections/chapters in the report is dynamic, hence the numbering of the sections (also tables, pictures etc. within the sections) appearing on the report should be dynamic. After generating and saving, this Word document should be editable on desktop by opening the document (similar to any MS word document) and all MS word features should be available in the saved document.


Thanks in Advance.


Regards.


Create transaction for report.

$
0
0

Dear Gurus,

 

I have this interesting topic. Could anyone help me.Firstly , I am not an ABAPer , I am a Business Analyst so please don't answer something so "ABAP".

 

Ok this is my case : We built a "report" in SAP , that only take out the data from some tables, and as you know you cannot input or edit anything in this report.

 

But now our business want to edit directly in this report and next time when they run this report with the same indicators, system will show all the information ( the information from tables and information that they edit).I am thinking that we can assign a number to this report so when they run the report and after edit they can save with a number .Next time they only need to input that number.

 

 

Could anyone advise me if we can do that and if yes how can we ? and if not , could you show me some other ways ?

 

Thanks and Best Regards,

Huong

Whatsapp Group Message from SAP

$
0
0

Hello Gurus,

 

Currently we are working on SAP ECC 6.0. Our Management has asked me to explore the possibility of automatically sending the day end business figures on the whatsapp group of the CEOs directly from SAP. Is that possible in SAP and if yes then what do I need to do to make it feasible?What interface I need to build and what all things I would require in terms of software and development kits?

I know I have clubbed too many questions in one post and answering all of them will be difficult for you but the truth is I have no clue as to where to start the exploration from. So any help would be appreciated.

Archive smartform/adobe form output from spool to opentext server

$
0
0

Hi all,

 

I have a requirement to save the PDF file output from smartform/adobe form from spool to opentext archive server.

I have already gone through all the SCN threads related to archiving. From there I got to know I have to use below three FM:

1. ARCHIV_METAINFO_GET

2. ARCHIVOBJECT_CREATE_FILE

3. ARCHIV_CONNECTION_INSERT

 

Please guide me through the use of each FM. I am able to read the spool in PDF format but not getting how to use these FM.

 

Thanks,

Sneha

Enhanced variant configuration tool - Coding thoughts

$
0
0

This is a follow up to the article Enhanced variant configuration tool

In this blog some developement specific points are shown which ensure that the characteristic configuration is evaluated properly. This are the first thoughts and if you have some improvement ideas, do not hesitate to mention them.

 

characteristicselection criteriavalue expression
TrayTypeLength > 200 or Width > 50 or Heigth > 20BIG
TrayTypeLength < 100 and Width < 20 and Heigth < 10SMALL
TrayTypeDEFAULTMEDIUM
ChocolateTypeDEFAULTFirstWord(MaterialCode)
ChocolateTypeMaterialCode = "chocolate mix"materialCode
WEIGHTTrayType = 'BIG'ROUND(Length * Width * Height*2, 2, 'X') + 20
WEIGHTTrayType = 'SMALL'ROUND(Length * Width * Height*2, 2, 'X') + 10

 

1.  object dependency with variant function

Each characteristic which should be calculated gets a variant function assigned in the object dependencies. This is linked to one function module. To avoid the need for separate function module for each characteristic some "help characteristics" can be very useful.

 

FUNCTION Z_EvaluateTrayType

(Length = $ROOT.Length,

Width= $ROOT.Width,

Height = $ROOT.Height,

TARGET_CHARACTERISTIC = 'TrayType'

FUNCTION_RESULT = SELF.TrayType)


TARGET_CHARACTERISTIC and FUNCTION_RESULT are two additional characteristics to get the interface between variant function and function module more generic. Well this is a bit tricky and I am still searching for a better solution - do you have one? - but its working.

 

Target_Characteristic is defined as input variable and Function_result the only output variable which will get the value of function result.

 

Now you can for example calculate the TrayType, Volume, Weight, Groundfloor with the same function module by setting the TARGET_CHARACTERISTIC to the desired value as they use all the same input characteristics.

 

2. replacement of characteristics in formulas

 

To evaluate the selection criteria and the value expression a more or less complex parser is needed. I found in ABAP only the eval_formula, which does fit quite good for arithmetical expressions but not for text expressions, have you got any hints for me?

 

Finally I settled with REGEX replacement but I am still thinking about switching to a conventional top down or bottom up parser. What do you think? 

 

3. replacement of sub characteristics

Subcharacteristics, like used when calculating the WEIGHT characteristic are done by using recursive function calls.

 

4. handling of brackets and boolean expressions

Brackets in numerical expressions are coverd quite good through the SAP standard method EVAL_FORMULA. This method provides also some standard functions as rounding to integers, square functions and so on. 

The function EVAL_FORMULA can also process boolean expressions, well text comparisions have first be transfered by pure code to a number value (0 or 1)

Numeric functions like Length > 200 or Width > 50 or Heigth > 20 (Length, Width, Height) are characteristics which are replaced with their numerical value can be entirely passed to EVAL_FORMULA.


5. user defined functions

User defined functions like FirstWord(MaterialCode) or for example a oracle like decode function have to be coded in ABAP. To spot formulas in the expressions I used onces more regular expressions.

A bit tricky is the combination of user defined functions with characteristics. I read somewhere about the definition of user defined functions together with EVAL_FORMULA, anybody has good experience with them and want to share it?



6. SAP standard functions

Functions, like substring, round are already available in ABAP. Nevertheless some mapping from the expressions to the ABAP function call has to be done.


All together a lot of coding is necessary. But it should only be necessary once and the big advantage of the solution is that for later configuration changes no further programming effort is needed and thus leads to a efficient and time-consuming configurable system -> i hope so :-)


Any feedback, especially to the questions is welcome.


Andreas

Customize File Naming and Directory in ENGR

$
0
0

Dear forumers,

 

In ABAP development, how may I customize the file naming and directory for the transaction ENGR (INTRASTAT)?

 

Otherwise, can this be achieved by config?

 

(As an example, there needs to be a specific naming rule and a default folder location for "File Name for Output" in the selection screen -- containing transaction, company code, local date, local time.)

 

Appreciate any of your inputs.

 

Many thanks.

Viewing all 8332 articles
Browse latest View live