Quantcast
Channel: SCN : Unanswered Discussions - ABAP Development
Viewing all 8768 articles
Browse latest View live

FM WS_LM_GROUP_CREATE during triggering of output type (Update task)

$
0
0

Hi All,

 

during triggering of an output type (customized via tx. NACE) which is by default done in 'Update task' we want to create a 'group' using function module 'WS_LM_GROUP_CREATE'.

 

However, since this function module has it's own explicit 'COMMIT WORK AND WAIT' (line 462) combined with 'update task' of output type we get a short dump (COMMIT_IN_POSTING). So now I'm looking for a way to create a group within output type and of course avoiding the short dump.

 

When encapsulating this FM in an RFC enabled function module you can call this RFC synchronously or asynchronously, but both calls generate an implicit database commit, resulting in a short dump.

 

In addition, the output type should receive the results from the function module. If the group could not be created, the output type must be fail (error logging). On the other hand, if the group is created, the output type should continue processing as intended.

 

I'm not looking for a call transaction or something alike.

 

P.S. I did search of course, but I could not find anything that would work for me. Most of the threads I found had a similar request, but they were not using a (standard) function module with it's own 'COMMIT WORK AND WAIT'. So they were able to circumvent their issue.

 

Thanks in advance.

 

Kind regards,

 

Micky.


Enhancement category for table missing while activating structure

$
0
0

Hi friends,

 

I am newbie of abap, so please help me to get rid of following error.

I was creating a structure but following warning msg are appearing even after setting following setting.

 

Extras--> Enhancement category --> Not classified.

 

 

Enhancement category for table missing
Enhancement category for include or subtye missing

 

 

Thanks & regards.

How to retrieve deleted or archived jobs

$
0
0

Experts,

 

I am facing one issue , Here in my system I can check log of last one month only for batch jobs in SM37.

I checked with basis team , they told me that jobs are deleted or archived from system which are more than one month old.

 

I checked different tables like TBTCO, TBTCP etc, All tables have information for last one month only.

 

I want to know is there any process to retrieve these jobs?

 

Need your expert solutions.

 

Thanks in Advance.

How to captured screen fields data after click on save button in MM41/MM42?

$
0
0


Hi All,

 

please give the soultion for below requirement.

 

My requirement as i have implement as implicit enhancement for screen validations. but after change the data in MM41/MM42, and then just click on SAVE button. (Note:don't n't do any other actions before click on save button- just change/create the data in MM41/MM42 and then click on save)

system not capturing changed/created data for particular screen.

 

Note: once changed/Created data in MM41/MM42. before click on save button, if i did any actions(like press enter or any thing) then system caputring those records to screen fields.

 

but client is asking directly click on save button, based on changed/created data --> do the validation in MM41/MM42

 

so, how to capturing the screen fields data?

 

Thanks for advance.

 

regards,

Shankar B

how to send image in mail body?? need a sample program

$
0
0

how to send image in mail body along with report output?? need a sample program.

debugging AMDP authorization

$
0
0

Hello,

 

I've read some topic on SDN to figure out how to debug, what privileges should I have,
Based on authorization team I have proper roles. also following action were done:

 

grant debug on schema <SCHEMA> to <USER>

grant select on schema <SCHEMA> to <USER>

grant attach debugger to <USER>


Still I have:

"You are not authorized to attach to a connection that belongs to this HANA user"


Thank You

Regards,

Tomek

want to print customer letter using sap script .....

$
0
0

But getting error in select stmnt  . Kindly help

 

 

 

 

 

 

 

TABLES : VBAK .

 

 

 

 

 

 

DATA : BEGIN OF ITAB OCCURS 1 ,

       VBELN TYPE VBAK-VBELN ,

       ERDAT TYPE VBAK-ERDAT ,

       NETWR TYPE VBAK-NETWR ,

       END OF ITAB .

 

 

DATA : WA TYPE KNA1 .

 

 

 

 

 

 

PARAMETERS : P_KUNNR TYPE KNA1-KUNNR .

 

 

 

 

SELECT VBELN

       ERDAT

       NETWR  FROM VBAK INTO table itab   WHERE KUNNR =  P_KUNNR .

 

 

 

 

  CALL FUNCTION 'OPEN_FORM'

   EXPORTING

*     APPLICATION                       = 'TX'

*     ARCHIVE_INDEX                     =

*     ARCHIVE_PARAMS                    =

*     DEVICE                            = 'PRINTER'

*     DIALOG                            = 'X'

     FORM                              = 'YSCRIPT3 '    " SCRIPT NAME FOR WHICH WE BUILD THE PROGRAM .

     LANGUAGE                          = SY-LANGU   .

 

 

LOOP AT ITAB .

 

 

CALL FUNCTION 'WRITE_FORM'

EXPORTING

   ELEMENT                        = 'MAIN-TOP '

*   FUNCTION                       = 'SET'

   TYPE                           = 'TOP'

   WINDOW                         = 'MAIN'.

 

 

CALL FUNCTION 'WRITE_FORM'

EXPORTING

   ELEMENT                        = 'MAIN-BODY '

*   FUNCTION                       = 'SET'

   TYPE                           = 'BODY'

   WINDOW                         = 'MAIN' .

 

 

 

 

AT LAST .

  SUM .

CALL FUNCTION 'WRITE_FORM'

EXPORTING

   ELEMENT                        = ' MAIN-BOTTOM'

*   FUNCTION                       = 'SET'

   TYPE                           = 'BOTTOM'

   WINDOW                         = 'MAIN' .

 

 

 

 

ENDAT .

ENDLOOP .

 

 

CALL FUNCTION 'CLOSE_FORM' .

WORKFLOW -ME22N

$
0
0

Hi Experts ,

 

I have configured workflow for PO release. I complete the PO release through workflow and then through ME22N I change the Quantity/Value such that a new release strategy is captured by the same PO and same time mail triggering to some user(for approval) . Up to this...all fine... now requirement  is like they want to trigger mail for Deletion lock and unlock (buttons in me22n) . My query is that suppose whether we can do this through workflow or not? Please guide me....



Thanks n Regards

Sachin M


ABAP CDS View: odata service with no annotations

$
0
0

Hello All,

 

ABAP System 7.50.

 

I have an ABAP CDS view like here:

 

@AbapCatalog.sqlViewName: 'z_cds_test_1'  
@AbapCatalog.compiler.compareFilter: true  
@AccessControl.authorizationCheck: #CHECK  
@EndUserText.label: 'Test 2 CDS'  
@OData.publish: true  
@Search.searchable: true  
define view ZMYFLIGHTS      as select from spfli      association [1..1] to scarr as spfli_scarr      on spfli.carrid = spfli_scarr.carrid      {         @UI.selectionField: [ { position: 10 } ]         @UI.lineItem: [ { position: 10 } ]         key spfli.carrid as id,         @UI.lineItem: [ { position: 20 } ]         @Search.defaultSearchElement: true         key spfli_scarr.carrname as carrier,          @UI.lineItem: [ { position: 40 } ]         key spfli.connid as flight,         @EndUserText:{ quickInfo:'Some info22' }          @UI.lineItem: [ { position: 50 } ]         spfli.cityfrom as departure,          @UI.lineItem: [ { position: 60 } ]         spfli.cityto as destination      }  

 

The odata service is created because of the annotation @OData.publish: true.

My service (metadata ) is showing no annotation-related data however.

 

My smart table (Fiori control) is not working and raising the error "Select at least one column to perform the search".

I set the @UI.lineItem annotation though so I would expect this would be enough for the smart table.

There is not a single column in the table.

 

Any one encountered this problem?

Any help will be appreciated.

 

Regards,

Bert

Facing Problem in Importing USR02 using RFC_Read_Table

$
0
0

I am trying to import USR02 table of child system  from the parent system.But getting Error as Table Not available in my main program.Kindly help.

Code :

 

data :

 

 

lv_table type DD02L-TABNAME,

lv_rfcdest type  RFCDEST,

lt_options type STANDARD TABLE of rfc_db_opt,

lt_fields type STANDARD TABLE of rfc_db_fld,

lt_data type STANDARD TABLE of tab512.

 

 

lv_rfcdest = 'SR4CLNT800'.

 

 

WRITE : /.

 

 

lv_table  = 'USR02'.

 

 

CALL FUNCTION 'RFC_READ_TABLE'

  DESTINATION lv_rfcdest

  IMPORTING

    QUERY_TABLE = lv_table

    ex_usr02    = lv_table

  TABLES

    OPTIONS     = lt_options

    FIELDS      = lt_fields

    DATA        = lt_data.

 

 

IF SY-SUBRC <> 0.

* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

exit.

BDC for PA40 working in foreground but not in Background.

$
0
0

Dear Gurus,

 

I have a requirement to Automate the separation Action in SAP R/3. For the same i have Recorded a BDC. When I run the BDC in foreground, it works fine. But the same when is Scheduled as Background Job, Finishes Job with Success but does not create a Separation Action In SAP R3.

 

Kindly help.

I have also Checked If this can be done by BAPI But the BAPI is Giving error on Reason for Action (Mandatory) as the BAPI do not take Reason for Action as Input.

 

BAPI I have tried for the Same are as below.

 

HR_MAINTAIN_MASTERDATA.

 

Also The Code of recording is pasted below.

 

PERFORM BDC_DYNPRO      USING 'SAPMP50A' '2200'.

     PERFORM BDC_FIELD       USING 'BDC_CURSOR'

                                   'RP50G-EINDA'.

     PERFORM BDC_FIELD       USING 'BDC_OKCODE'

                                   '/00'.

     PERFORM BDC_FIELD       USING 'RP50G-EINDA'

                                   A_EARDT.

     PERFORM BDC_FIELD       USING 'RP50G-PERNR'

                                   WA_T77WWW_TEAAD-PERNR.

 

 

     PERFORM BDC_DYNPRO      USING 'SAPMP50A' '2200'.

     PERFORM BDC_FIELD       USING 'BDC_OKCODE'

                                   '/00'.

 

     PERFORM BDC_FIELD       USING 'RP50G-EINDA'

                                   A_EARDT.

     PERFORM BDC_FIELD       USING 'BDC_CURSOR'

                                   'RP50G-PERNR'.

     PERFORM BDC_FIELD       USING 'RP50G-PERNR'

                                   WA_T77WWW_TEAAD-PERNR.

 

 

     PERFORM BDC_DYNPRO      USING 'SAPMP50A' '2200'.

     PERFORM BDC_FIELD       USING 'BDC_OKCODE'

                                   '/00'.

 

     PERFORM BDC_FIELD       USING 'RP50G-EINDA'

                                   A_EARDT.

     PERFORM BDC_FIELD       USING 'BDC_CURSOR'

                                   'RP50G-PERNR'.

     PERFORM BDC_FIELD       USING 'RP50G-PERNR'

                                   WA_T77WWW_TEAAD-PERNR.

 

     PERFORM BDC_DYNPRO      USING 'SAPMP50A' '2200'.

     PERFORM BDC_FIELD       USING 'BDC_CURSOR'

                                   'T529T-MNTXT(13)'.

     PERFORM BDC_FIELD       USING 'BDC_OKCODE'

                                   '=P+'.

 

     PERFORM BDC_DYNPRO      USING 'SAPMP50A' '2200'.

     PERFORM BDC_FIELD       USING 'BDC_CURSOR'

                                   'T529T-MNTXT(01)'.

     PERFORM BDC_FIELD       USING 'BDC_OKCODE'

                                   '=PICK'.

 

     PERFORM BDC_FIELD       USING 'RP50G-EINDA'

                                   A_EARDT.

     PERFORM BDC_FIELD       USING 'RP50G-SELEC(01)'

                                   'X'.

     PERFORM BDC_FIELD       USING 'RP50G-PERNR'

                                   WA_T77WWW_TEAAD-PERNR.

 

     PERFORM BDC_DYNPRO      USING 'MP000000' '2000'.

     PERFORM BDC_FIELD       USING 'BDC_CURSOR'

                                   'P0000-MASSG'.

     PERFORM BDC_FIELD       USING 'BDC_OKCODE'

                                   '/00'.

     PERFORM BDC_FIELD       USING 'P0000-BEGDA'

                                   P_NEXT.

     PERFORM BDC_FIELD       USING 'P0000-MASSN'

                                   '10'.

     PERFORM BDC_FIELD       USING 'P0000-MASSG'

                                   WA_T77WWW_TEAAD-A_MASSG.

     PERFORM BDC_FIELD       USING 'PSPAR-PERSG'

                                   'V'.

 

     PERFORM BDC_DYNPRO      USING 'MP000000' '2000'.

     PERFORM BDC_FIELD       USING 'BDC_CURSOR'

                                   'P0000-BEGDA'.

     PERFORM BDC_FIELD       USING 'BDC_OKCODE'

                                   '=UPD'.

     PERFORM BDC_FIELD       USING 'P0000-BEGDA'

                                   P_NEXT.

     PERFORM BDC_FIELD       USING 'P0000-MASSN'

                                   '10'.

     PERFORM BDC_FIELD       USING 'P0000-MASSG'

                                   WA_T77WWW_TEAAD-A_MASSG.

     PERFORM BDC_FIELD       USING 'PSPAR-PERSG'

                                   'V'.

     PERFORM BDC_DYNPRO      USING 'MP000100' '2000'.

     PERFORM BDC_FIELD       USING 'BDC_CURSOR'

                                   'P0001-BEGDA'.

     PERFORM BDC_FIELD       USING 'BDC_OKCODE'

                                   '/00'.

     PERFORM BDC_FIELD       USING 'P0001-BEGDA'

                                   P_NEXT.

     PERFORM BDC_FIELD       USING 'P0001-ENDDA'

                                   '31.12.9999'.

     PERFORM BDC_FIELD       USING 'P0001-BTRTL'

                                   WA_P0001-BTRTL.

     PERFORM BDC_FIELD       USING 'P0001-KOSTL'

                                   WA_P0001-KOSTL.

     PERFORM BDC_FIELD       USING 'P0001-GSBER'

                                   WA_P0001-GSBER.

     PERFORM BDC_FIELD       USING 'P0001-ABKRS'

                                   WA_P0001-ABKRS.

     PERFORM BDC_FIELD       USING 'P0001-PLANS'

                                   '99999999'.

     PERFORM BDC_FIELD       USING 'P0001-STELL'

                                   WA_P0001-STELL.

     PERFORM BDC_FIELD       USING 'P0001-ORGEH'

                                   WA_P0001-ORGEH.

 

     PERFORM BDC_DYNPRO      USING 'MP000100' '2000'.

     PERFORM BDC_FIELD       USING 'BDC_CURSOR'

                                   'P0001-BEGDA'.

     PERFORM BDC_FIELD       USING 'BDC_OKCODE'

                                   '=UPD'.

     PERFORM BDC_FIELD       USING 'P0001-BEGDA'

                                   P_NEXT.

     PERFORM BDC_FIELD       USING 'P0001-ENDDA'

                                   '31.12.9999'.

     PERFORM BDC_FIELD       USING 'P0001-BTRTL'

                                   WA_P0001-BTRTL.

     PERFORM BDC_FIELD       USING 'P0001-KOSTL'

                                   WA_P0001-KOSTL.

     PERFORM BDC_FIELD       USING 'P0001-GSBER'

                                   WA_P0001-GSBER.

     PERFORM BDC_FIELD       USING 'P0001-ABKRS'

                                   WA_P0001-ABKRS.

     PERFORM BDC_FIELD       USING 'P0001-PLANS'

                                   '99999999'.

     PERFORM BDC_FIELD       USING 'P0001-STELL'

                                   WA_P0001-STELL.

     PERFORM BDC_FIELD       USING 'P0001-ORGEH'

                                   WA_P0001-ORGEH.

 

     PERFORM BDC_DYNPRO      USING 'MP000200' '2044'.

     PERFORM BDC_FIELD       USING 'BDC_CURSOR'

                                   'P0002-BEGDA'.

     PERFORM BDC_FIELD       USING 'BDC_OKCODE'

                                   'UPD'.

     PERFORM BDC_FIELD       USING 'P0002-BEGDA'

                                   P_NEXT.

     PERFORM BDC_FIELD       USING 'P0002-ENDDA'

                                   '31.12.9999'.

     PERFORM BDC_FIELD       USING 'P0002-NACHN'

                                   WA_P0002-NACHN.

     PERFORM BDC_FIELD       USING 'P0002-VORNA'

                                   WA_P0002-VORNA.

     PERFORM BDC_FIELD       USING 'P0002-RUFNM'

                                   WA_P0002-RUFNM.

     PERFORM BDC_FIELD       USING 'P0002-GBDAT'

                                   DOB.

     PERFORM BDC_FIELD       USING 'P0002-GESCH'

                                   WA_P0002-GESCH.

     PERFORM BDC_FIELD       USING 'P0002-NATIO'

                                   WA_P0002-NATIO.

     PERFORM BDC_FIELD       USING 'P0002-SPRSL'

                                   WA_P0002-SPRSL.

 

     PERFORM BDC_DYNPRO      USING 'MP031500' '2000'.

     PERFORM BDC_FIELD       USING 'BDC_CURSOR'

                                   'P0315-BEGDA'.

     PERFORM BDC_FIELD       USING 'BDC_OKCODE'

                                   '/00'.

     PERFORM BDC_FIELD       USING 'P0315-BEGDA'

                                   P_NEXT.

     PERFORM BDC_FIELD       USING 'P0315-ENDDA'

                                   '31.12.9999'.

     PERFORM BDC_FIELD       USING 'P0315-KOSTL'

                                   WA_P0315-KOSTL.

     PERFORM BDC_FIELD       USING 'P0315-LSTAR'

                                   WA_P0315-LSTAR.

     PERFORM BDC_FIELD       USING 'P0315-WERKS'

                                   WA_P0315-WERKS.

     PERFORM BDC_FIELD       USING 'P0315-ACCNT'

                                   WA_P0315-ACCNT.

 

     PERFORM BDC_DYNPRO      USING 'MP031500' '2000'.

     PERFORM BDC_FIELD       USING 'BDC_CURSOR'

                                   'P0315-BEGDA'.

     PERFORM BDC_FIELD       USING 'BDC_OKCODE'

                                   '=UPD'.

     PERFORM BDC_FIELD       USING 'P0315-BEGDA'

                                   P_NEXT.

     PERFORM BDC_FIELD       USING 'P0315-ENDDA'

                                   '31.12.9999'.

     PERFORM BDC_FIELD       USING 'P0315-KOSTL'

                                   WA_P0315-KOSTL.

     PERFORM BDC_FIELD       USING 'P0315-LSTAR'

                                   WA_P0315-LSTAR.

     PERFORM BDC_FIELD       USING 'P0315-WERKS'

                                   WA_P0315-WERKS.

     PERFORM BDC_FIELD       USING 'P0315-ACCNT'

                                   WA_P0315-ACCNT.

 

     PERFORM BDC_DYNPRO      USING 'MP010500' '3000'.

     PERFORM BDC_FIELD       USING 'BDC_OKCODE'

                                   '/ENXT'.

     PERFORM BDC_FIELD       USING 'BDC_CURSOR'

                                   'RP50M-BEGDA'.

     PERFORM BDC_DYNPRO      USING 'SAPMP50A' '2200'.

     PERFORM BDC_FIELD       USING 'BDC_OKCODE'

                                   '/EBCK'.

 

     CALL TRANSACTION 'PA40' USING IT_BDC MODE 'N' UPDATE 'S' MESSAGES INTO IT_MSG.

 

 

FORM BDC_FIELD  USING FNAM FVAL.

 

   CLEAR WA_BDC.

   WA_BDC-FNAM = FNAM.

   WA_BDC-FVAL = FVAL.

   APPEND WA_BDC TO IT_BDC.

 

ENDFORM.


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

FORM BDC_DYNPRO  USING PROGRAM DYNPRO.

 

   CLEAR WA_BDC.

   WA_BDC-PROGRAM  = PROGRAM.

   WA_BDC-DYNPRO   = DYNPRO.

   WA_BDC-DYNBEGIN = 'X'.

   APPEND WA_BDC TO IT_BDC.

 

ENDFORM.



Disable back button of fv11 tcode .

$
0
0

Hi,

I am using fv11 BDC to update the records . we have multiple key combinations for each condition type, so I am directly giving item screen to user through bdc recording to enter the values manually. In some cases user clicked on back button it is going to initial screen of fv11. here user can select any other key combination so we need to avoid that so is it possible to disable back button ???? bcz if user select cancel button it is leaving the program.

 

 

thanks,

Mohan.

Attach PDF of form trigger while selecting correspondence type in FB03

$
0
0

Hi friends,

 

I have one complex requirement where in FB03 when selecting a particular correspondence type which was given to us one form get trigger which we can see through f.64 tcode . The user want that the form which get triggered directly attach to  attachment link of FB03 as PDF form.

Can anyone please help me in this case .

 

Thank you in advance.

replace for FM SEO_TYPE_READ_ALL data types

$
0
0

Hi All,

 

I am facing one issue with FM : SEO_TYPE_READ_ALL returned value.

 

When i am trying to remove '#' character using replace from ls_datatype1 it return sy-subrc 4 and does not remove '#'.

 

It works fine for other character. Specially data return from this method ,does not work for '#'.

 

Source code given below :

 

DATA ls_datatype1(255) TYPE C.

 

CALL FUNCTION 'SEO_TYPE_READ_ALL'

   EXPORTING

     cifkey            = classkey

     version           = 1

   IMPORTING

     types             = types

   EXCEPTIONS

     clif_not_existing = 1

     OTHERS            = 2.

 


LOOP AT types INTO ls_types.

 

   ls_datatype1 = ls_types-TYPESRC.


REPLACE ALL OCCURRENCES OF '#' IN ls_datatype1WITH ''.


END LOOP.


Kindly advice..


Regards

Vivek

Error: WA cannot be converted to the line type of Internal table

$
0
0

Hello I have been working on a simple ALV Grid Program.

But to my surprise,I have been getting an error
"WA_FCAT CANNOT BE CONVERTED TO THE LINE TYPE OF IT_FCAT"

 

Here is the Code:

 

*&---------------------------------------------------------------------*

*& Report  ZALV_REPORT                                                 *

*&                                                                     *

*&---------------------------------------------------------------------*

*&                                                                     *

*&                                                                     *

*&---------------------------------------------------------------------*

 

 

INCLUDE ZALV_REPORT_TOP                         .    " global Data

 

 

* INCLUDE ZALV_REPORT_O01                         .  " PBO-Modules     *

* INCLUDE ZALV_REPORT_I01                         .  " PAI-Modules     *

INCLUDE ZALV_REPORT_F01                         .  " FORM-Routines   *

 

 

INITIALIZATION.

AT SELECTION-SCREEN.

START-OF-SELECTION.

perform f_get_data.

END-OF-SELECTION.

 

 

if not it_vbak is initial.

perform f_fieldcat_alv.

endif.

 

 

 

 

 

 

 

 

 

*&---------------------------------------------------------------------*

*& Include ZALV_REPORT_TOP                                   Report ZAL*

*&                                                                     *

*&---------------------------------------------------------------------*

 

 

REPORT   ZALV_REPORT.

type-pools: slis.

data: gs_vbak type vbak.

 

 

SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME.

SELECT-OPTIONS: S_VBELN FOR GS_VBAK-VBELN.

 

 

SELECTION-SCREEN END OF BLOCK B1.

 

 

TYPES: begin of ty_vbak,

        VBELN  type VBELN_VA,

        ERDAT  type ERDAT,

        ERZET type  ERZET,

        ERNAM type  ERNAM,

        ANGDT  type ANGDT_V,

        BNDDT type BNDDT,

        AUDAT type AUDAT,

        VBTYP  type VBTYP,

        TRVOG type TRVOG,

        AUART  type AUART,

        AUGRU type AUGRU,

      end of ty_vbak.

 

 

DATA:  it_vbak type table of ty_vbak,

       wa_vbak type ty_vbak,

       it_fcat type standard table of slis_t_fieldcat_alv,

       wa_fcat type  slis_fieldcat_alv.

 

 

 

 

 

 

 

 

*&---------------------------------------------------------------------*

*&  Include           ZALV_REPORT_F01                                  *

*&---------------------------------------------------------------------*

*&---------------------------------------------------------------------*

*&      Form  f_get_data

*&---------------------------------------------------------------------*

*       text

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

*  -->  p1        text

*  <--  p2        text

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

FORM f_get_data .

refresh : it_vbak.

clear   : it_vbak.

 

 

if not s_vbeln is initial.

SELECT VBELN

        ERDAT

        ERZET

        ERNAM

        ANGDT

        BNDDT

        AUDAT

        VBTYP

        TRVOG

        AUART

        AUGRU

        FROM VBAK INTO TABLE IT_VBAK

        WHERE VBELN IN S_VBELN.

 

 

ELSE.

SELECT VBELN

        ERDAT

        ERZET

        ERNAM

        ANGDT

        BNDDT

        AUDAT

        VBTYP

        TRVOG

        AUART

        AUGRU

        FROM VBAK INTO TABLE IT_VBAK

        UP TO 100 ROWS.

 

 

 

 

endif.

 

 

 

 

ENDFORM.                    " f_get_data

 

 

 

 

*&---------------------------------------------------------------------*

*&      Form  f_fieldcat_alv

*&---------------------------------------------------------------------*

*       text

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

*  -->  p1        text

*  <--  p2        text

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

FORM f_fieldcat_alv .

 

 

refresh: it_fcat.

clear: wa_fcat.

 

 

wa_fcat-row_pos  = '1'.

wa_fcat-col_pos  = '1'.

wa_fcat-fieldname = 'VBELN'.

wa_fcat-tabname  = 'it_fcat'.

wa_fcat-seltext_m = 'Sales Order'.

append  wa_fcat to it_fcat.

clear : wa_fcat.

 

 

 

 

 

 

 

 

 

 

ENDFORM.                    " f_fieldcat_alv

 

 

 

 

 

 

 

 

 

 

I tried checking everything in data declaration but I did not find any fault..

I Do not know what is wrong with the code.

Please help.Thank you in advance.


Adding an existing search help to new ztable

$
0
0

Hi expert,

 

I have created new ztable and I want to assign one F4 help in region code which is already exist in other domain under region code.

 

So I am using the same but its not working.

 

Can you just help me out with this.

 

Regards
Swapnil

Creating PO (ME21N) PO and Asset number should be same

$
0
0

Hi team,

REQUIREMENT  - when we create PO the material which we enter should be same as ASSET like

If material is 123456 then ASSET in TAB -(Account Assignment) should be same or else it should give Error.

Is there any Enhancement or any BADI where we can write code for the same .

 

Please help

 

Thanks and Regards,

 

Prasad Krishna Naralkar

Update delivery quantity after delete HU from Inbound delivery

$
0
0

Hi Expert,

 

Kindly, need your help regarding below issue:

 

I have been using this  BAPI_HU_DELETE_FROM_DEL to delete HU. The HU was successfully deleted but the delivery quantity does not updated, I already debug but cannot the root cause.

 

Please advise,

 

Thanks and regards,

Liyana

MIGO FI posting doc issue......

$
0
0

Hi Experts,

Which BADI is used to update migo  Fi-Doc GL/GR Clearing Amount.

How to update top of page in grid1 based on other grid1 selected row?

$
0
0

Hi everyone,

 

 

Can any one know about how to pass or update values in top of page in grid1 based on selected row value in grid2 dynamically.

 

Suppose in grid1 top of page i have   Display Currency = USD which is local.

Now I have other currencies in other grid2 that is popup. the values may be

 

USD,

'SGD,

EUR.

etc..

 

that values are dynamic which are in grid2.

 

 

So how to update Display currency value based on other grid2 selection.

 

I am using OOPS events here...Can anyone plzzz.

 

 

 

 

 

Thanks,

 

Karunakar Reddy.

Viewing all 8768 articles
Browse latest View live


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