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

conceptual details about the enhancement spots & Enhancement framework

$
0
0

Hi ABAP Gurus,

 

 

i am knew to the enhancement concepts please tell me the enhancement spot and frames detailed with examples

 

 

Thanks & Regards,

Suresh Reddy


For the changing of EXIT_SAPLCOMK_014

$
0
0

Hi ALL,

 

    I have a problem for this FM exit 'EXIT_SAPLCOMK_014' , the FM exit have a parameter is 'Changing' that have a field call 'C_AKTYP'.

Would you tell me the role of 'C_AKTYP' ? The describe is 'activity type in application',but i don't kown its meaning in here. Whether i write

a code in here,i need consider it ?  Pls tell me,Thanks.

Basis : SAP GUI Upgrade 710 to 730

$
0
0

Dear Users,

 

I would like to get help from you guys ...what RISKs we can face if the GUI is upgraded from 640/710  to 730.

 

I need the RISKS Involved and how can we solve them...

 

I could not find BASIS Forum...please help

 

Please let me know ASAP.

 

Kind regards

Vijay

How to get Substring in ABAP

$
0
0

Hi Experts,

 

I want to get the substring from a string. Actually I have material description which is "P KRA/KPC DCB 2.5X270 SAPH 341", in this material description substring "2.5X270" is the thickness of the material. I want to get this thickness in my report. All the material descriptions have thickness in them as above. I want to get this and the description length is different for materials and the thickness will be different also like "127X40.5" etc.

 

Please help me out.

 

Regards

Sameer

Problems related to selecting some text in smartforms

$
0
0

Hi all,

i have a smartform, in which based on some condition if the condition satisfied then some text gets printed

and if the condition fails then other text gets printed. (Through FLAG , according to the program lines given below).

Now , i have added some text into it and i wants that if the BSART = Z02, then my text wouldn't gets printed.

For which i have used other conditions, and removed my text in that, and called but not getting removed text through

my  condition.Please tell me what should i do ,so that i get the desired result.

 

LOOP AT it_item INTO wa_item.

   IF ( wa_item-menge1 IS NOT INITIAL OR wa_item-netpr1 IS NOT INITIAL OR wa_item-netwr1 IS NOT INITIAL ).

     CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

       EXPORTING

         formname = sform

       IMPORTING

         fm_name  = fname.

     IF sy-subrc <> 0.

     ENDIF.

CALL FUNCTION fname

       EXPORTING

         lines    = lines

         adrc     = adrc

         sum      = sum

         dis      = dis

         freight  = freight

         name     = name

         dat      = dat

         flag1    = flag       

         OTHER1    = OTHER      

       TABLES

          IT_HEAD  = it_head

          IT_ITEM  = it_item

          IT_TEMP  = it_temp

          IT_HDESC = it_hdesc

          IT_MDESC = it_mdesc

          IT_FINAL = IT_FINAL.

     IF sy-subrc <> 0.

 

     ENDIF.

     STOP.

   ENDIF.

ENDLOOP.

how get/generate spool number for a call transaction 'tcode' output

$
0
0

how to get spool number for output generated by tcode(sm66) after CALL TRANSACTION 'SM66' (or any tcode) is executed in a z program.

 

(from there i can use this spool number to generated pdf or send it to someone through email)

use cdhdr and cdpos in ca02

$
0
0

hi expert

i want to use information of cdhdr and cdpos for each material in ca02 .

iwant to use these information for email to other people.

how can i link these values?

best regards

There is version management for sap smartfomts?

$
0
0

Hi Abap Gurus,

 

please tell me how to know the sap samartform different versions for the clients.

 

Thanks & Regards,

Suresh Reddy


need to get batch classifiation class and manufacturer code based on material ??

$
0
0

Hi All ,

 

 

I need to get Batch classification class and manufacturer code assigned for that classification class ,

 

I tried   with the below link :

http://scn.sap.com/message/4730676

 

 

im not getting any result and its throwing error as object not found .

 

Pls Suggest me .

PO_CHANGE_BAPI ERROR IN LIVE SERVER ONLY

$
0
0

Hi All,

 

 

we have developed report using the BAPI to update the PO schedule lines details

it has worked fine in test & quality servernow system is giving the following error in production

 

< REFER THE ATTACHMENT >

 

we have tested the same again no clue as it is working fine in both servers.

 

how to solve this

 

please help

 

Regards,

Preeti.pg

User Popup Message - CALL 'ThUsrInfo' ID 'OPCODE'

$
0
0

Hi experts,

 

I'm playing around with popup messages.

 

I know function TH_POPUP - everyting's working and fine.

 

Now I want to do this "part of coding" in my own program - then I can change the text of the popup a little bit.


What I am doing:

 

REPORT  ztest_user_popup.

INCLUDE tskhincl.

DATA: client LIKE sy-mandt,

          user LIKE sy-uname,

          new_message(512),

          message_len LIKE sy-index,

          loc_cut_blanks  TYPE x VALUE 0.

 

 

new_message = 'TEST'.

client = sy-mandt.

user = sy-uname

message_len = STRLEN( new_message ).

loc_cut_blanks = 0.

 

CALL 'ThUsrInfo' ID 'OPCODE' FIELD opcode_send_pop_up     "#EC CI_CCALL

       ID 'CLIENT' FIELD client

       ID 'USR' FIELD user

       ID 'MSG' FIELD new_message

       ID 'MSG_LEN' FIELD message_len

       ID 'CUT_BLANKS' FIELD loc_cut_blanks.

 

BREAK-POINT.

 

Problem is - nothing is happening! At the break-point at the end, sy-subrc = 1.

 

What am I doing wrong? Any ideas?

 

Thanks

Michael

Transport Sequencing tool

$
0
0

Hi Experts,

 

I need to develop one tool which will help in transport sequencing.

 

I need to develop one ABAP program which will take list of transports as input and will give same transport list in correct sequence as output.

 

Also if any transport is missing in the list , it will highlight the same.

 

Is it possible to write such code for transport sequencing? Has anybody done this before? It will help in avoiding RC8 errors.

 

Waiting for reply.Thanks.

 

Regards,

Sanjana

can I use the BAPI K_Costs_Plan_Interface_total for secondary cost planning?

$
0
0

Hi,

 

I would like to know if I can use the BAPI K_Costs_Plan_Interface_total for secondary cost planning.

If yes, I would need to implement the sap sample report. What are the fields sender cost center and sender activity type in the structure rku01g?

 

 

 

REPORT rkkipl1t.

* The parameters are used to fill the internal table and describe the

* planning object.

PARAMETERS: p_kokrs LIKE tka01-kokrs  MEMORY ID cac  OBLIGATORY,

            p_perab LIKE cobk-perab   DEFAULT '001'  OBLIGATORY,

            p_perbi LIKE cobk-perbi   DEFAULT '012'  OBLIGATORY,

            p_gjahr LIKE cobk-gjahr   MEMORY ID gjr  OBLIGATORY,

            p_versn LIKE cobk-versn   MEMORY ID kvt  OBLIGATORY,

            p_kostl LIKE cssl-kostl                  OBLIGATORY,

            p_kstar LIKE cskb-kstar                  OBLIGATORY,

            p_vrgng LIKE cobk-vrgng   DEFAULT 'RKP1' OBLIGATORY,

            p_kwaer RADIOBUTTON GROUP ein DEFAULT 'X',

            p_owaer RADIOBUTTON GROUP ein,

            p_twaer RADIOBUTTON GROUP ein,

            p_waers LIKE coss-twaer.

 

 

DATA: i_rku01_cur LIKE rku01_cur.

 

* internal table for function

DATA: itrku01g TYPE TABLE OF rku01g WITH HEADER LINE.

 

REFRESH itrku01g.

PERFORM fill_itrku01g.

 

* Which currency is to be used?

IF p_twaer = 'X'.

*   planning in transaction currency

  i_rku01_cur-wtg_man = p_twaer.

  i_rku01_cur-wtf_man = p_twaer.

ELSEIF p_owaer = 'X'.

*   planning in object currency

  i_rku01_cur-wog_man = p_owaer.

  i_rku01_cur-wof_man = p_owaer.

ELSE.

*   planning in controlling area currency

  i_rku01_cur-wkg_man = 'X'.

  i_rku01_cur-wkf_man = 'X'.

ENDIF.

 

 

CALL FUNCTION 'K_COSTS_PLAN_INTERFACE_TOTAL'

  EXPORTING

*    BLTXT                  = ' '

*    COMMIT                 = 'X'

*    DELTA                  = ' '

    gjahr                  = p_gjahr

    kokrs                  = p_kokrs

    messages_show          = 'X'

    perab                  = p_perab

    perbi                  = p_perbi

    update_values          = 'X'

    versn                  = p_versn

    vrgng                  = p_vrgng

*    ONLINE_VB              = ' '

    irku01_cur             = i_rku01_cur

*    TESTMODE               = ' '

*    KEEP_TWAER             = ' '

  TABLES

    irku01g                = itrku01g

EXCEPTIONS

   messages_occured       = 1

   OTHERS                 = 2

          .

IF sy-subrc = 0.

  MESSAGE s000(15).

*   Verbuchung wurde erfolgreich durchgeführt

ENDIF.

 

*---------------------------------------------------------------------*

*  FORM FILL_ITRKU01G

*---------------------------------------------------------------------*

FORM fill_itrku01g.

* fill internal table for function

  CLEAR itrku01g.

  itrku01g-kostl    = p_kostl.              "for CCA planning

  itrku01g-kstar    = p_kstar.              "must be filled

  itrku01g-wtgbtr   = 12000.                "value when planning

  itrku01g-wkgbtr   = 12000.                "value when planning

  itrku01g-wogbtr   = 12000.                "value when planning

  itrku01g-twaer    = p_waers.              "transaction currency

  itrku01g-fcwkg    = '1'.           "distribution key must be filled

  itrku01g-fcwkf    = '1'.                  "must be filled

  itrku01g-fcwkv    = '1'.                  "must be filled

  itrku01g-fcmeg    = '1'.                  "must be filled

  itrku01g-fcmef    = '1'.                  "must be filled

  itrku01g-fcmev    = '1'.                  "must be filled

  APPEND itrku01g.

 

ENDFORM. "FILL_ITRKU01G.

 

Thanks.

how to display a image in module pool program

$
0
0

CALLFUNCTION'DP_CREATE_URL'

       EXPORTING

         type     = 'IMAGE'

         subtype  = cndp_sap_tab_unknown

         size     = pic_size

         lifetime = cndp_lifetime_transaction

       TABLES

         data     = pic_data

       CHANGING

         url      = url

       EXCEPTIONS

         OTHERS   = 1.

   ENDIF.

   CALLMETHOD

     picture_control_1->load_picture_from_url

     EXPORTING

       url =  '/tmp/Images/vehicle1.bmp'.

 

I used the above code.but the images are not getting displayed .then how i need to fetch the image which has been stored in sap server

Documents, blogs, discussions - copying other people's work.

$
0
0

There's been a spate recently of documents, blogs and answers in discussions that are copy/pastes of other people's work. Please be reminded that this is absolutely not permitted, and if you do plagiarise someone else's work, you risk loosing points or even having your account deleted. Also, avoid posting just links. If someone posts a question that ends up with all responses being links, it indicates that they should have searched for themselves. Posting a link in support of your answer is perfectly acceptable of course.


Create a dynamic checkbox in a screen with data from internal table

$
0
0

I have a scenario of creating a dynamic checkbox in a screen in module programming.

where the number of checkboxes to be created comes from a internal table like

 

Language
Description
EEnglish
S

Spanish

DGerman
FFrench

 

So my screen should look like

 

<chkbox> English <chkbox> Spanish <chkbox> German <chkbox> French

 

additionally I would need a checkbox as <chkbox> Select All which would disable all the created chkboxes above.

disable columns in table control based on condition

$
0
0

Hello Gurus,

 

     I am having a table control in my module pool program.Out of 25 columns , I am having 12 columns on months wise like (jan, feb, march....).Now my concern is based on current month I want to enable the column of month rest all months will be in disable mode.So that the user can enter his/her time of work.Could you please tell me any way.I tired to read tc-cols and stored in col with index but its not working I wrote this code for first month without any condition

READ TABLE tC-COLS INTO col INDEX 22.

   col-SCREEN-INPUT = 0.

   MODIFY tC-COLS FROM col INDEX 22.

but its not working.I wrote this code in PBO as well as i tried in PAI as wellstill my columns is in enable mode.Also when user clicks on button then only the table control required fields should start working like months enable/disable process.for eg. I am having 2 button one is Create and other is Search on both these buttons after click the condition for enable/disable months should work.

 

 

Thanks

Gaurav

DB02 transaction

$
0
0

Hello Experts,

 

Developing program for DB02 transaction. I need to display data for "Tablespace_name", "Total size" and "Free Space".

 

Looked into DB02 transaction report and they are using tables "dba_data_files" and "dba_free_space".

 

But i dont find these tables. Please do let me know how to fetch data for the above mentioned fields from the table.

 

regards,

Gururaj.

Recording parameter in SHDB

$
0
0

Hi.

What does it mean parameter Not a Batch Input Session in the Create recording

modal screen of SHDB transaction?

How does it influence on recording?

Errror in Implict Enhancement(INCLUE REPORT ''ENHANCEMENT NAME=========E '' NOT FOUND.)

$
0
0

I have problem in implicit enhancement.

while i am activating SAPMV45A , its not showing error, if i do Check in SAPMV45A its showing error like

INCLUE REPORT ''ENHANCEMENT NAME=========E '' NOT FOUND.

 

before getting this error, what i done is.

one implicit enhancement was already existing, in tht they have implemented three ehnancement

there i have created one more enhancment,then i have checked its show me error, so i have deleted tht fourth one

which i have created. after tht its showing error.

Viewing all 8332 articles
Browse latest View live


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