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

How to know the end of ABAP Program

$
0
0

Hi SAP ABAPers,

 

I am currently studying ABAP since most of enhancements of MM module in our company are through ABAP. Have been trained in COBOL programming and a former tester in COBOL-Unix-Oracle.

 

In COBOL, we can determine that the program ends in STOP RUN statement. May I ask how can I know where in the code ABAP program ends?

 

Thanks and regards,

Jeremiah


BAPI_ROUTING_CREATE displaying Error.

$
0
0

Dear Experts,

 

I am using this bapi for 'CA01' t-code.

 

But displaying Following Error.

 

Enter a unit for dimension Time for the standard value Setup.

 

Enter a unit for dimension Time for the standard value Machine

 

Enter a unit for dimension Time for the standard value Labor.

 

Enter a numeric value

 

Consistency check not successful when creating operation

 

 

Regards,

 

Venkat

BDC for SPRO Activity

$
0
0

Hi Experts,

 

Basically I am Functional Consultant but I have client requirement where I need to Call BDC thru Z-Transaction.

 

Here my requirement is to Define Shipping Data for Stock Transfers Between Storage Locations by uploading Excel File

 

SPRO Path is..

 

Materials Management > Purchasing > Purchase Order > Set up Stock Transport Order > Set Up Stock Transfer Between Storage Locations > Define Shipping Data for Stock Transfers Between Storage Locations..

 

Now here I need to insert the data..

 

But here I dont have specific T-Code for this activity..

 

I tried to Record BDC but when I run it, it dose not work for node selection for the SPRO path and it stops at IMG screen..

 

Any suggestions for that???

 

If nothing works, I have last option for this is to insert data in Database Table directly (Table - T001L)

 

Thanks & Regards,

HP

How to connect Java system with SAP system for getting the data from SAP

$
0
0

Hi,

 

We are trying to connect JCO example by giving SAP IP Address, Instance Number, Client, User Id, Password and Language in JCO file CustomDestinationDataProvider.java.

 

But, following error is coming after command run.bat in command prompt.

 

''Execution on Destination ABAP_AS failed"

 

Please suggest how to resolve this.

 

Regards

Amol Khochare

Table V_T001L_L changing status from display to editable risk

$
0
0

Hello,

 

I customized stock transport order between storage locations. Some customers and vendors created in Production system not in Development so I cannot maintain the table V_T001L_L because system checks customer and vendor codes in KNA1 or LFA1.

I want to change table status of V_T001L_L from display to edit mode then I want to update/maintain this table using SM30 in Production system. Does this solution create any risk in SAP Production?

 

Thanks

EU

does anyone know which will it be the best report for ECN to use please?

$
0
0

does anyone know which will it be the best report for ECN to use please?

how to find smart form driver program ?

$
0
0

how to find smart form driver program ?

FM SPR_KOMK_KOMP_FILL-> Why structure PISPR

$
0
0

Hi Team

 

I am trying to load pricing data using the FM  RV_CONDITION_COPY, beforeI do that, I am trying to populate the komk and komp structures and

It does work, and subsequently I am able to upload the data correctly

 

CALL FUNCTION 'SPR_KOMK_KOMP_FILL'

       EXPORTING

         PI_I_SPR                         = gst_pispr

      IMPORTING

        PE_I_KOMK                         = lst_komk

        PE_I_KOMP                         = lst_komp

      EXCEPTIONS

        ORG_STRUCTURE_NOT_COMPLETED       = 1

        OTHERS                            = 2

               .


However


Can someone help me understand what is the significance of the fields passed to  structure PI_I_SPR?

How do we decide what fields need to be passed to pispr inorder for komk and komg to be populated correctly?


I was under the assumption that we pass the pricing table  key fields, but that is not so..



How to pass Counter Field Task list - operation/activity in routing through the Bapi

$
0
0

Hi.

I am creating the Routing For a Material By using. Bapi. 'BAPI_ROUTING_CREATE'

With Three Operations. Routing Was created Fine. Manually i created One more routing for other Materials.

Please have a look on below Attached Images.

The field Counter is 1,2,3 for Three lines. But What i had Added through the Bapi. It is taking 1,1,1 . Only.


My questions. Whether is there any field Fro passing the Counter, While moving to the Bapi.

I checked in BAPI1012_OPR_C Structure Under Bapi_routing_create.

But There is no Field of Counter. May i know How Could i pass the Counter In Bapi.

Need your valuable suggestions.

Please have a look on below Attached images and Source Code.



 

call a report program in module pool

$
0
0

My code is

 

CASE SY-UCOMM.

     WHEN 'CON'.

       SUBMIT ZIM_C_SD_UPLOAD_TAB AND RETURN.

     WHEN 'REP'.

       SUBMIT ZIM_R_SD_UPLOAD_TAB AND RETURN.

 

 

 

 

    WHEN 'BACK' or 'EXIT' or 'CANCEL'.

     set screen 0.

     WHEN OTHERS.

   ENDCASE.



I have a screen

CONVERSIONS,REPORTS AND SMARTFORMS.wHEN I click on conversion it should go to conversions program.conversions is working fine the next image is coming.but when i press reports it is going directly to output ie 3rd image.Please help me with reports so that it will go to selection screen instead of directly displaying output


Untitled.jpg

Untitled.jpgUntitled.jpg

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
abapOpenChecksOpen source checks for SAP Code Inspector / ABAP Test CockpitHome · larshp/abapOpenChecks Wiki · GitHublarshp/abapOpenChecks · 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
RSS-Feed Provider in ABAPA class and sample program is provides to publish content from an ABAP based system as a RSS-feed. It could be used to display tickets from solution manager or status of transports from the CTS.Publishing Content  from the SAP Netweaver AS ABAP to iGoogle and other RSS Readerspeterlangner/zrss · GitHub
DSL tookitSmall toolkit for learning about DSL and string parsing techniques in ABAPA primer on implementing DSLs in ABAPhuberv/abap_dsltk · GitHub
FALVFast ALV grid ( inheriting from CL_GUI_ALV_GRID)http://abapblog.com/falvGitHub - fidley/falv: FALV - Fast ALV Grid
zGKGSGoogle Knowledge Graph Search API for ABAPGoogle Knowledge Graph Search API, schema.org and JSON-LDse38/zGKGS · GitHub
SchemAschema.org ABAP FrameworkGoogle Knowledge Graph Search API, schema.org and JSON-LDse38/SchemA · GitHub
HTMLEditorHTML Editor in ABAP based on NICEditABAPblog.com - WYSIWYG HTML Editor in ABAPABAPblog.com - WYSIWYG HTML Editor in ABAP
ABAP Active RecordActive Record concept implemented in AG5 (ABAP + SAP Gateway + SAPUI5)Installation GuideABAP Active Record on Github

 

Please feel free to modify / add your project.

upload forecast in MC88 or MC94 background

$
0
0

Hello Experts,

 

I have tried to upload forecast data using MC88 and MC94 using BDC but both are not working in background.Error No batch input data for screen SAPMMCP6 0110(for Mc94 tcode).

 

Ataul requirement is to upload forecast in MC88 or MC94 after transaction MC74 should be called for each material to transfer  the forecast to demand planning.

 

Can anyone please let me know what is the best solution to achieve this. i know it can be done via BAPI or Idoc but would like to check the best possibilities

 

Thanks In advance

best regadrs

Trupthi.

Code for getting several characters from a field in SQ02

$
0
0

Hello Exports,

Please assist me with the next code.

I'm creating a query and need to get from MARA - MATNR field only 4 characters string.

For example the value in the field : 123456789 and I need the output to be 4567.

Please suggest the full code because I'm new to ABAP.

Thank you ,

TJ

how to read values from editable column into the program?

$
0
0

Hi,

 

I have created a OOPS alv report which has an editable column.Now I have to do arithmetic operation on the values entered in editable column.How can I read value into program for making arithmetical operations?

UPload tab delimited file to database tables using bapi and bdc method.

$
0
0

Hi.

I just need a simple code to upload files to data base tables using bdc and bapi(both methods) and need to display no of records,success records and error records

I have tried using bdc but no correct output.Please help.

fields are

 

TYPES: BEGIN OF GTY_SALES,

    KUNNR TYPE KUNNR,

         BUKRS TYPE BUKRS_VF,

         vkorg TYPE vkorg,

         vtweg TYPE vtweg,

         spart TYPE spart,

         ktokd TYPE ktokd,

         ANRED TYPE KNA1-ANRED,

         name1 TYPE kna1-name1,

         sortl TYPE kna1-sortl,

         PSTLZ TYPE KNA1-PSTLZ,

         ORT01 TYPE KNA1-ORT01,

         LAND1 TYPE KNA1-LAND1,

         akont TYPE knb1-akont,

         BZIRK TYPE KNVV-BZIRK,

 




Unable to interpret "1,000.00" as a number..

$
0
0

Hi

 

I USe function moudle  C14W_NUMBER_CHAR_CONVERSION., for character conversion from variable to string...

In runtime debugging when string is changed from 1,000.00000 to 1000.00000(without comma) smartform ggets executed.but when there is a comma it dumps reading unable to interpret 1,000.00000 as  a number.

 

Data type is defined as "P".

 

Kindly Help.

 

Thanks and regards

Shashikala

how to enable Menu Bar in the scroll down in IW37 transaction

$
0
0

Hi Experts,

 

 

 

In IW37n transaction, when i select the order and in the menu bar , GOTO scheduling view , the following screen appear. User is unable to change since only display is enabled and rest are disabled.

Capture.JPG

 

 

 

Please help me on how to resolve the issue.

Renaming a custom field

$
0
0

Hi,

 

We have a requirement to re-name one of the fields of existing custom table. When we try to rename the field and do adjustment using SE14, all the contents stored in that field are erased. what is the best practice to cater to a requirement like this ?

 

Thanks,

AM

Problem in Alv Report when setting filter option on grid when displayed.. the grid(display) gets empty

$
0
0

Hi to all

 

I have an issue regarding ALV report :

 

I have developed an ALV report and it is showing report output correctly as required.

 

when I further filter it on a particular field using SET FILTER OPTION , the display(grid)  is getting empty..

 

Why this happens so.

 

BUT for the same field in a standard ALV report , i have set all the required parameters.

 

Please advice.

 

 

Thanks & Regards

R.chaitanya krishna

Archive a Z SmartForm without using a message type in NACE

$
0
0

Hi experts,

 

I'am facing this issue :

 

I have an ALV Report which displays sales orders, the user can select one or many lines and choice to print a certain specific document. For the moment the ALV calls directly the SmartForm and generates the document.

 

We need to archive the printed document and associate it to the sales order archive.

 

As I know this is possible using the NACE and OAC2 and OAC3.

 

Is there any solution to archive this Z SmartForm without using a message type in NACE ?

 

Thanks.

 

BR,

 

Mohammed Amine.

Viewing all 8332 articles
Browse latest View live


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