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

Table maintanance generator problem before saving(Event 01)

$
0
0

Hi Experts,

 

I have created one custom table with 5 fields

 

Field1  = Approval no ( Key Field and Editable )-->Auto Populated

Field 2 = Vesrion No ( Non Key filed and Output Only)

Filed 3=  description( Editable Filed)

Filed 4  = Created by(Auto poplated)

Filed 5 = Created_date(Autopopulate).

 

I have Create TMG for the table and am able to populate field4 field5 using create_entries event01.

 

My table having 3 records let us assume.

 

Field1        field2            field3              field4              field5

 

10001        01                  test               xxxx             12/09/14

 

10001        02                  test               xxxx             12/09/14

 

When i try to create same entry 10001 how to maintain vesrion(Field2)  number(Auto Populated). ?

 

I am trying to create using before save event how to compare TOTAL and EXTRACT tables?

 

Please find the code which I wrote its not working...

 

Please correct the below code.

 

LOOP AT total.

   wa_data1 = <vim_total_struc>.

   lv_index1 = sy-tabix.

   READ TABLE extract with KEY total.

   IF sy-subrc eq 0.

       lv_index2 = sy-tabix.

       wa_data2 = <vim_extract_struc>.

       if  wa_data1-version is INITIAL.

         wa_data1-version = 1.

       else.

          wa_data1-version = wa_data1-version + 1.

       endif.

       wa_data2-version = wa_data1-version.

       <vim_extract_struc> = wa_data2.

       <vim_total_struc> =  wa_data1.

       MODIFY extract INDEX lv_index2.

       MODIFY total index lv_index1.

   ENDIF.


Enhancement in OBD2 T-code

$
0
0

Hiee Guru's,

 

I have created a screen, custom field and attached it into xd01 with the help of badi.

 

I have another issue i.e. I wish to add that custom field in obd2 t-code.

 

I have found that for tcode obd2 badi BADI_LAYER and VIM_AE_BADI are available.

 

I have attached screen shots of scenario for your reference.

 

Thank you,

Darshan.

Getting Notification Number efficiently on a particular date

$
0
0

Hi All,

 

I tried all possible ways about retrieving the Notification number from any of the trasparent table which are created on a particular date, But i am not getting the values efficiently, its taking a long time ; i did it with QMEL. Since there are no priomary key; I am just wondering how can we get the notification efficiently ?

 

Thanks in advance.

 

Regards,

M A Siddiqui

modify or use custom status in report program

$
0
0

Hello,

 

how can i modify the standard gui status or use a custom status in a report program. i've already tried:

 

INITIALIZATION.

     SET PF-STATUS 'ZGUI'.


it work, but i dont where to put the case sy-ucomm as show below:


CASE sy-ucomm.

       when 'BACK'.

         leave to screen 0.

       WHEN '&CON'.

                 leave to screen 0.

ENDCASE.



i only need one custom button and the rest is just like standard toolbar... help please

IW 21 and acess rights

$
0
0

Mates,

 

I have a question. As of now we are using tcodes iw21,22,23 to create,edit and view notifications of PM.

 

Current scenario is that  User who creates a notification via IW21  will only have th right to see it later via IW 23 and he will not be able to edit further even if needed.i.e he can use iw21 or 23 and create or display.

 

But i have a requirement like the user who create the notification need to edit his notification (i.e execute IW22)

untill the notification reaches a specific status...

 

how can this be done..can any help with the steps.

 

 

Regards

Bh

"Individual check for creating the object WBS Element A002--141 required." In BAPI_BUS2054_CREATE_MULTI

$
0
0

Hello experts,

I have a requirement to create WBS element using BAPI  BAPI_BUS2054_CREATE_MULTI.But while doing so I am getting this error Individual check for creating the object WBS Element A002--141 required.Can anyone please help me resolve it.

 

Below is the code that I am using.

 

loop at it_proj into wa_proj.

           wa_BAPI_TE_WBS_ELEMENT-WBS_ELEMENT    = wa_wbs-WBS_ELEMENT.


           GT_EXTENSION_IN-STRUCTURE = 'BAPI_TE_WBS_ELEMENT'.


*          GT_EXTENSION_IN-VALUEPART1 = wa_BAPI_TE_WBS_ELEMENT-zzfund.


           GT_EXTENSION_IN-valuepart1 = wa_proj-zzfund.


           GT_EXTENSION_IN-valuepart2 = wa_proj-zzgrant_nbr.


           APPEND GT_EXTENSION_IN.


         ENDLOOP.

 

         CALL FUNCTION 'BAPI_PS_INITIALIZATION'.

 

         CLEAR gt_return[].


         CALL FUNCTION 'BAPI_BUS2054_CREATE_MULTI'

           EXPORTING

             I_PROJECT_DEFINITION = gv_project

           TABLES

             IT_WBS_ELEMENT       = gt_wbs_element_bapi

             ET_RETURN            = gt_return

             EXTENSIONIN          = gt_extension_in

*           EXTENSIONOUT         =

           .

 

Suggestions will be much appreciated and points will be rewarded.

 

Regards,

Bijoya

 

 

Which exit for MIGO Subcontracting

$
0
0

Dear Abaper,

 

We were using MB1B t-code for doing subcontracting with reference to PO. We had used a BADI for that.

 

Now, we have upgraded our system to EHP6.

 

In EHP6 MB1B is obsolete. And as per SAP we have to use MIGO.

 

In MIGO we cannot do subcontracting with reference to PO.

 

In the transaction MIGO this PO reference functionality is not implemented for movement type 541.

 

There are so many exits available in MIGO,

 

please tell me which exit to use to do the subcontracting with Movement type 541 for MIGO Transaction.

 

Thanks and Regards,

Arati. 

Creating WBS element with the Bapi BAPI_BUS2054_CREATE_MULTI

$
0
0

Hi

 

I need to create WBS elements programmatically. For this I am using the BAPI BAPI_BUS2054_CREATE_MULTI

The fiield tht I am passing are

  wa_wbs_element-wbs_up            = 'P-02-0002-9-011'.

       wa_wbs_element-wbs_element       = 'P-02-0002-9-012'.

       wa_wbs_element-description       = 'TI'.

       wa_wbs_element-proj_type         = 'Z1'.

       wa_wbs_element-responsible_no    = '12'.

       wa_wbs_element-applicant_no      =  '13'

 

append wa_wbs_element to it_wb_element.

call function 'BAPI_PS_INITIALIZATION'.

call function 'BAPI_BUS2054_CREATE_MULTI'

  exporting

    i_project_definition       = 'P-02-0002'

  tables

    it_wbs_element             =  it_wb_element

     et_return                 =  it_ret.

  •   EXTENSIONIN                =

  •   EXTENSIONOUT               =.

 

call function 'BAPI_PS_PRECOMMIT'

tables

et_return = it_ret.

 

 

call function 'BAPI_TRANSACTION_COMMIT'

exporting

wait = 'X'

importing

return = wa_ret.

 

Here  Just before PS_Precommit  I get a msg In the return Paramater of  BAPI  'BAPI_BUS2054_CREATE_MULTI'

'Individual check for creating The WBS Element 'P-02-0002-9-012'. is required..Any Help.. wht is missing ..

 

thanks


BAPI or FM to update IBAN and email of a customer

$
0
0

Hi,

 

     I am creating a RFC function module where I need to update the IBAN (International Bank Account Number) of a customer in XD02 or table KNBK.

In the FM I am importing customer number, IBAN and email . The value of IBAN which I am giving as input must get updated against that customer(importing) in table KNBK or XD02.

 

But my problem is I am not getting any FM that will update the IBAN against that particular customer in XD02.

 

I have used few FM like  CONVERT_IBAN_2_BANK_ACCOUNT, CONVERT_BANK_ACCOUNT_2_IBAN, BAPI_IBAN_CHANGE and many more but none is updating the value with the new input value.

 

Same problem is with email address when I am trying to update. No FM I have found to update email.

 

So plz can u help me as how to update IBAN and EMAIL.

 

Thanks

 

PP

excel file upload from pc to internal table

$
0
0

Hello all,

i am trying to upload an excel file to internal table but i get an error.

 

i am using fm'F4_FILENAME' to get the file and then i am using  fm  'ALSM_EXCEL_TO_INTERNAL_TABLE' .


i have searched the net but i couldnt find a solution to that error.



 

here is my code :

 

DATA FILE_PATH LIKE  RLGRAP-FILENAME.
 DATA: it_raw    TYPE          truxs_t_text_data.
 data : BEGIN OF itab OCCURS 0,        BSKODU like ZR52-BSKODU,        BSADI LIKE ZR52-BSADI,        GSBER LIKE ZR52-GSBER,        GBATARIH LIKE ZR52-GBATARIH,        GBITARIH LIKE ZR52-GBITARIH,        AKTIFPASIF LIKE ZR52-AKTIFPASIF,        MAIL LIKE ZR52-MAIL,   END OF ITAB.
 START-OF-SELECTION.
 CALL FUNCTION 'F4_FILENAME'     EXPORTING       field_name = 'FILE_LOC' "     IMPORTING       file_name  = FILE_PATH.
 CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'     EXPORTING       FILENAME = FILE_PATH       I_BEGIN_COL             = '1'       I_BEGIN_ROW             = '2'       I_END_COL               = '2'       I_END_ROW               = '2'      TABLES       INTERN                  = ITAB      EXCEPTIONS       INCONSISTENT_PARAMETERS = 1       UPLOAD_OLE              = 2.

regards,

cem

Program with authorization object

$
0
0

Hi Experts,

 

I have an issue regarding rules and authorization.

 

I have created a program with 2 radio buttons transfer and backload. The requirement in authorization is not all users can access both; some can only access transfer and some can access backload only. (r_trans,r_back)

 

The basis told me that they need an authorization object in order for them to block/separate the transaction for transfer and backload.

Is there a way for me to modify the program and put an authorization object with my radio button? or is it possible to do this with the current program?

 

Thanks!

CL_SALV_TABLE sort without merging

$
0
0

Hi all

 

Does anyone know how to manage a sort using the SALV factory method (cl_salv_table) - WITHOUT the sort fields merging, i.e. the same function as with field NO_MERGING in LVC_S_FCAT using old style ALV?

 

The sorts all work fine using the following:

DATA: lr_salv_sorts              TYPE REF TO cl_salv_sorts.

....

lr_salv_sorts->add_sort( EXPORTING columnname = 'YEAR'

                                       position   = '1'

                                       sequence   = '2'

                                       subtotal   = ' ' ).

 

However, the sort fields are all merged - you used to be able to switch this off using NO_MERGING in LVC_S_FCAT.....

 

I need to switch this merging off for ALV OM

 

Many thanks in advance.

Alv report output doubt..........

$
0
0

Hi Frds,

 

A13001 : is Material Number..

 

I have maintained text in material master

 

1st : RMCODE1 RMDECSRIPTION1 USAGE1

2nd : RMCODE2 RMDECSRIPTION1 USAGE2

 

Present output is A13001 : RMCODE1 RMDECSRIPTION1 USAGE1  RMCODE2 RMDECSRIPTION1 USAGE2

 

 

 

My customer is asking in alv output as given below...

 

A13001 : RMCODE1 RMDECSRIPTION1 USAGE1

A13001 :  RMCODE2 RMDECSRIPTION1 USAGE2

 

 

For reference screen shot attached........

 

Pls help me ........

Doubt File.png

 

 

Regards,

Kabil

How to do dynamic screen changes in TMG

$
0
0

Hi all,

I have a requirement that I have a table with 5 fields in that one is check box.
When I click on check box in TMG other should be deselected and user press save button, only selected record should be processed to my fm.

I used in PBO  loop at screen , but no changes done. Please give some starting.

Thanks in advance.

 

 

 

 

Regards,|
Mithuunn

Dynamic Change of Text for Radio Button in Classic ABAP Dynpro

$
0
0

Hello Experts,

 

I have two radio buttons defined on the the dynpro as shown below. Now my requriment is to change the text of first radio button "Current version" to "Latest Version".

Is is possible in the PBO of the Screen to change the text of the radio button based on the conditions.

 

radio button.PNG

 

Regards,

Naresh


set default screen variants for some user

$
0
0

hi expert,

actually I'm not sure in which places i have to ask this

 

basically, I want to set a default screen variant for some users.

ex. there are 4 screen variants when user runs tcode FV50, I want to set that everytime USER001 runs this tcode, they will see a screen with ZVARIANT01

when USER002 & USER003 runs, ZVARIANT02 is used

USER004 using ZVARIANT03 and so on.

 

please help regarding this request.

 

thanks,

felix

Adobe form for transport order form

$
0
0

Hello,

 

For the SAP-script-form LVSTAEINZEL (Print TO single item) I am searching for the equivalent Adobe form.

Could You tell me, if there is one?

 

Kind regards,

Benjamin

Improving QA in coding

$
0
0

Hi Everyone,

 

Can any one suggest me some improvement in coding for QA analysis.....

Schedule Lsmw in Background

$
0
0

Hi All,

 

 

We need to develop a custom program to schedule a LSMW (already created LSMW ) means from the program,we will give the file and lsmw details then it should process that particular LSMW from 5th step( uploading file).

 

could you please tell me how to run a lsmw from the specified step by using custom program

 

 

 

Regards,

Trinadh

Creating A Word Like Table in a Smartform

$
0
0

I am trying to display a text table on a smart orm. I know you can pull in an existing table to display on a smartform but this is not what i need.

 

Is there a way i can create a table display(grid format) and just enter in the text i need, i.e like creating a table in word.

Viewing all 8332 articles
Browse latest View live


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