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

SPL List Type Deactivation

$
0
0

We have an initiative to deactivate some of the SPLs in the system as we’ve got a confirmation on our client that those SPLs should be blocked from screening business partners. These specific lists of SPLs cause huge number of false positive matches. We already came up with an approach on how to deactivate them but then we need to seek for advice and help from experts and other resources who already done or have knowledge with this activity in GTS 10.0 version.

 

We cannot apply the SPL List type deletion using the customizing function because currently the archiving service of our system is not activated.

 

The approach that we’re looking at is to deactivate SPLs by adjusting their technical validity date (This is the current configuration set in our system. It considers the Technical validity and not the Official Legal validity of SPL) to a historical/expiry date. SPLs will then be tagged as for deletion therefore will not be able to match any business partners anymore. Below are the steps to do this:

 

  1. Extract SPL records from /SAPSLL/TSPL; filter by SPL List Type.
    2. Set up a LSMW project; use a recording of transaction: /SAPSLL/SPL_MD02 (deletion of SPL).
    3. Load data and execute batch session created by LSMW.
    4. All SPL records from input file are now flagged for deletion.

Will this approach is good enough to be able to deactivate and separate such SPL List Type in screening entities? Or if you have other suggestions please let me know. Appreciate any response. Thanks!


Why nid to append GFL_ITEMS to GIT_ITEMS ?

$
0
0

  Hi,

 

Anyone can explain what are the below codes trying to do ?

Why nid to append GFL_ITEMS to GIT_ITEMS ?

 

Thanks

 

The coding

==============================================================

  refresh GIT_ITEMS.

 

loop at GIT_ITEMS_MAIN INTO gfl_items_main.

 

  if gfl_items_main-belnr = GFL_HEADER-belnr.

   MOVE-CORRESPONDING gfl_items_main TO GFL_ITEMS..

  append GFL_ITEMS to GIT_ITEMS.

  endif.

  CLEAR: gfl_items_main, GFL_ITEMS.

ENDLOOP.

 

where GIT_ITEMS IS A TABLE TYPE WHICH REFER TO z_ABC TABLE

      GIT_ITEMS_MAIN IS A TABLE TYPE WHICH REFER TO z_ABC TABLE

      GFL_HEADER IS BKPF

      GFL_ITEMS IS z_ABC TABLE

      GFL_ITEMS_MAIN IS z_ABC TABLE

Issue in PAI module

$
0
0

Hi experts,

I am facing one issue where one of the PAI module is not being called.

 

Scenario :

 

As per the current system, standard screen 0014 in MEGUI functional group, was modified few years back and custom PAI module was inserted inside it.

 

*{ INSERT DSK9055258

module check_config_materials.

*} INSERT

 

Earlier this module was getting executed successfully and control used to go inside it as well but after EHP6 upgrade control is not going inside the mentioned module.

 

Please let me know the approach how to find root cause of it.

Finding FG for SFG

$
0
0

Dear Folks,

 

Is there any FM or BAPI to find FG for SFG like BOM explore fm CSAP_MAT_BOM_READ.Kindly refer below my sfg is 30005307 and fg is 40002156.

 

Kindly help me in this.Early response will be highly appriciated.

 

 

 

 

293

0

0

40002156

40002156

40002156

293

1

0

40002156

50004526

40002156

293

2

1

50004526

30004540

40002156

293

3

2

30004540

30004394

40002156

293

4

3

30004394

30004536

40002156

293

5

4

30004536

30004392

40002156

293

6

5

30004392

30004860

40002156

293

7

6

30004860

30004395

40002156

293

8

7

30004395

30004393

40002156

293

9

8

30004393

30004397

40002156

293

10

9

30004397

30005308

40002156

293

11

10

30005308

30004396

40002156

293

12

11

30004396

30005307

 

Regards

  1. Srinivas.K

Validation of data between two systems for the same table

$
0
0

Hi,

 

I am comparing data of same table in two different SAP environments(ex: completely 2 different child companies under same parent company) .For retrieving data from other (2nd environment) apart from the existing i used RFC_READ_TABLE function module .

 

 

Now I have data of same table from both the systems and would like to compare the data completely at a field level as well as record level.

 

Can some one please suggest how can i get along with this task.

Any help on this is highly appreciated.

 

Thanks & Regards,

Pavani Achanta

Menu exit in VL02n

$
0
0

I have already created a custom tab XXX in delivery. My requirement is that i need to add that XXX in goto -> header  and I cannot find any menu exits for the following . Could you please help on this?

BAPI-"BAPI_SALESORDER_CREATEFROMDAT2" Partner issue Ship to party

$
0
0

I have a problem when create so with BAPI BAPI_SALESORDER_CREATEFROMDAT2.

 

I have customer 3606 with partner funtion (Picture 2)

SP    Sold-to party    3606    GP Semarang

BP    Bill-to party    3000    SEMEN PADANG, PT

PY    Payer    3000    SEMEN PADANG, PT

SH    Ship-to party    602100105    TB SURYA BANGUNAN

SH    Ship-to party    602100104    DIS RESIDENCE (DEVELOPPER)

SH    Ship-to party    1380001000    TK. NIRMALA

 

Case 1 : (Picture 1)

When i create so with VA01 (without that BAPI), i create so with sold to party 3606 & ship to party 602100104 (Success)

Case 2 :

But when i create an Sales Order (with BAPI), i create so with sold to party 3606 & ship to party 602100104 (Failed).

 

I Call BAPI with this parameter :

ORDER_PARTNERS-ITM_NUMBER = '000010';

ORDER_PARTNERS-PARTN_ROLE = 'WE';

ORDER_PARTNERS-PARTN_NUMB = '0602100104';

 

ORDER_PARTNERS-ITM_NUMBER = '000000';

ORDER_PARTNERS-PARTN_ROLE = 'AG';

ORDER_PARTNERS-PARTN_NUMB = '0000003606';

 

My problem is : (Picture 3)

When i create Sales Order like Case 1, the sales order created but ship to party become  602100105

 

Any step that i miss?

What is the use of * before the field name in ABAP statement.

$
0
0

Hi experts,

 

in ABAP statements can we write the logic as mentioned below. In my program there is a statement before the field they have mentioned ' * '.

 

  vbak-kkber NE *vbak-kkber OR
           vbak-knkli NE *vbak-knkli.

 

Cheers,

Sravan

 


BDC error in F-30

$
0
0

Hi ,

 

  I am getting BDC error  in F-30 trasnaction for field BSEG-WRBTR . error message is " Negative values are not allowed".

 

Can any one please suggest me how to rectify this error .

 

It is happening in the scree F-30 - SAPMF05A , screen 300

 

Thanks in advance.

 

Regards,

Manju

Short Dump: Field symbol has not yet been assigned.

$
0
0

Hi Experts,

 

I am facing an issue in production. we are displaying one ALV report. In that report we are trying to save the output into local file.

when we click on file local its going to short dump. i am attaching screen short for referrence.

 

1.png

 

3.png

 

2.png

 

Cheers

Sravan:)

TIME_OUT runtime error

$
0
0

Hi,

 

Could some one help me in resolving the below run time error.

we are getting time out error with the below details:

 

Short text
    Time limit exceeded.

 

What happened?
    The program "ZXXXXXX" has exceeded the maximum permitted
     runtime without
    interruption and has therefore been terminated.

 

Error analysis
    After a specific time, the program is terminated to make the work area
    available to other users who may be waiting.
    This is to prevent a work area being blocked unnecessarily long by, for
    example:
    - Endless loops (DO, WHILE, ...),
    - Database accesses with a large result set
    - Database accesses without a suitable index (full table scan)

    The maximum runtime of a program is limited by the system profile
    parameter "rdisp/max_wprun_time". The current setting is 1800 seconds. If this
     time limit is
    exceeded, the system attempts to cancel any running SQL statement or
    signals the ABAP processor to stop the running program. Then the system
    waits another 60 seconds maximum. If the program is then still active,
    the work process is restarted.

 

the above mentioned parameter is set to 1800 and still getting runtime whenever Zprogram called, and that has been used several DB tables to fulfill business process.

is there other way to minimise the runtime errors.

 

kindly help me.

 

much appreciated the help.

 

Thanks in advance!

 

Best Regards,

Venky

Total 1st page and display, on 2nd page 1st+2nd = total and display.

$
0
0

hi good day,

 

i have a subtotal where i sum up all the values of the 1st page and display as the subtotal

on second page i sum up all the values of the 2nd page and display as the subtotal

on third page i sum up all the values of the 3rd page and display as the subtotal etc...

 

now the requirement is,

 

1. user wants the total of the first page and display as the sub total.

2. when 2nd page he wants the total of the 1st page + 2nd page = subtotal (in 2nd page subtotal)

3. on 3rd page  total of the 1st page + 2nd page + 3rd = subtotal (in 3rd page subtotal)

 

ex : 1st page  = values (1 +1 + 1 = 3 as subtotal )

        2nd page = values (2 + 2 + 2 = (3 + 6 = 9 as the subtotal))

       3rd page  = values (1 + 1 + 1 = (3 + 6 + 3 = 12 as the subtotal))

 

how would i get it to this point please?

BAPI to create Sales Order with reference to Inquiry ??

$
0
0

Hi Experts ,

 

i want to create Sales Order with reference to inquiry , currently i am Using BAPI : BAPI_SALESORDER_CREATEFROMDAT2 , but it's giving me error as

 

"SD document 10000070 is not in the database or has been archived " type 'E' ID 'V1' number '302'.

"Sales document  was not changed"

 

10000070 is my inquiry number which i  am passing as reference number to BAPI.

 

when i try to execute this BAPI through se37  , it's creating sales order but not copying all data from inquiry and incomplete SO created .

 

my code is :

 




         IT_HEADER_IN-REFDOCTYPE = 'ZIND'.
         IT_HEADER_IN-DOC_TYPE = 'ZBDS'.
         IT_HEADER_IN-SALES_ORG = '1000'.
         IT_HEADER_IN-DISTR_CHAN = '10'.
         IT_HEADER_IN-DIVISION = '10'.
         IT_HEADER_IN-REF_DOC = '
10000070'
         IT_HEADER_IN-REFDOC_CAT = 'A'.
         APPEND IT_HEADER_IN.

         IT_HEADER_INX-UPDATEFLAG = 'I'.
         IT_HEADER_INX-DOC_TYPE = 'X'.
         IT_HEADER_INX-SALES_ORG = 'X'.
         IT_HEADER_INX-DISTR_CHAN = 'X'.
         IT_HEADER_INX-DIVISION = 'X'.
         IT_HEADER_INX-REF_DOC = 'X'.
         IT_HEADER_INX-REFDOC_CAT = 'X'.
         APPEND IT_HEADER_INX.

         IT_PARTNERS-PARTN_ROLE = 'AG'.
         IT_PARTNERS-PARTN_NUMB = WA_VKORG-KUNNR.
         APPEND IT_PARTNERS.

         IT_PARTNERS-PARTN_ROLE = 'WE'.
         IT_PARTNERS-PARTN_NUMB = WA_VKORG-TS_CUST.
         APPEND IT_PARTNERS.



         CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
           EXPORTING
*         SALESDOCUMENTIN               =
             ORDER_HEADER_IN               = IT_HEADER_IN
            ORDER_HEADER_INX               = IT_HEADER_INX
*         SENDER                        =
*         BINARY_RELATIONSHIPTYPE       =
*         INT_NUMBER_ASSIGNMENT         =
*         BEHAVE_WHEN_ERROR             =
*         LOGIC_SWITCH                  =
*         TESTRUN                       =
*         CONVERT                       = ' '
          IMPORTING
            SALESDOCUMENT                  = SO_NUM
           TABLES
             RETURN                        = IT_RETURN
*         ORDER_ITEMS_IN                =
*         ORDER_ITEMS_INX               =
             ORDER_PARTNERS                = IT_PARTNERS
*         ORDER_SCHEDULES_IN            =
*         ORDER_SCHEDULES_INX           =
*         ORDER_CONDITIONS_IN           =
*         ORDER_CONDITIONS_INX          =
*         ORDER_CFGS_REF                =
*         ORDER_CFGS_INST               =
*         ORDER_CFGS_PART_OF            =
*         ORDER_CFGS_VALUE              =
*         ORDER_CFGS_BLOB               =
*         ORDER_CFGS_VK                 =
*         ORDER_CFGS_REFINST            =
*         ORDER_CCARD                   =
*         ORDER_TEXT                    =
*         ORDER_KEYS                    =
*         EXTENSIONIN                   =
*         PARTNERADDRESSES              =
                   .
         IF SY-SUBRC = 0.

           CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
             EXPORTING
               WAIT   = 'X'
             IMPORTING
               RETURN = L_RETURN.


        
        ENDIF.

 

Please help me to resolve this .

Get OTF from sapscript output after submit

$
0
0

Hi experts!

 

I'm calling a standar report RPC190E0 from a FM with a submit instruction, like this one:

 

...

SUBMIT RPC190E0 with selection-table seltab EXPORTING LIST TO MEMORY AND RETURN.

...

 

The report shows a sapscript output after the printer prompt window.

 

I don't know how execute the submit because I don't want the prompt window, it should pass it.

 

I need to get the sapscript output in OTF format after executing the submit of  RPC190E0.

 

Someone knows how to do it?

 

Kind regards,

 

Julian.

UPDATE dynamic

$
0
0

Hello guys

I need to use the command update dynamic but he does not accept the set dynamic

how can I do this command:

       UPDATE (v_tbnam) SET (field) = 'TBRA'.

 

 

He says that the set is wrong.

 

Thanks.


how do i highlight or show bifurcation of row depending on a field in ALV grid

$
0
0

Hi All,

 

I have developed an ALV report where i am displaying list of contracts and their correcponding PO's and invoices. So 1 contract has n PO's and n Invoices. So i want to be able to show a row marker against the contract number. I tried with fieldcatalogue-emphasize and layout-zebra, but those features are not what i want. Should i be writing some logic here or is there a feature that i can use in ALV grid display. Please provide some pointers.

 

Thank you.

Creating Dynamic ALV

$
0
0

Requirement

Recently we had a requirement to create a dynamic ALV. The number of columns in the output would vary depending upon the number of unique records in another table say ZRECORD. If ZRECORD had 7 unique records, our ALV should have 7 columns with column name represented by the key field of ZRECORD. 

Solution
1. Define three field symbols.
<fs_dyntable> TYPE standard table
<fs_dyn_wa> TYPE any
<fs_dyn_field> TYPE any.

2. Create a table similar to fieldcatalogue of type lvc_t_fcat (t_fieldcat) by looping through ZRECORD and appending column names depending upon the key field of ZRECORD to t_fieldcat.

3. T_fieldcat is passed too cl_alv_table_create=>create_dynamic_table and the new imported table is assigned to <fs_dyntable>

4. <fs_dyn_wa> is created as line of <fs_dyntable> as shown below.
CREATE DATA wa_new_line LIKE LINE OF <fs_dyntable>.
ASSIGN wa_new_line->* TO <fs_dyn_wa> (wa_new_line is reference type of DATA)

5. Each row of this dynamic table now can be filled using
ASSIGN COMPONENT (n) (column number)
OF STRUCTURE <fs_dyn_wa> TO <fs_dyn_field>.

<fs_dyn_field> = (data need to input).

6. After filling each row append <fs_dyn_wa> to <fs_dyntable>

7. Pass <fs_dyntable> to REUSE_ALV_GRID_DISPLAY as t_outtab, along with the new fieldcatalogue and other desired parameters.

Forwarding with the WRITE statement

$
0
0

Hallo,

 

i need to figure out if it's possible to have a forward navigation with only using the WRITE Statement and without any Dynpros. For example: You start an Report which will write a tablename and u can just double click onto this one to navigate to the table. If yes how is it working ?

 

Kind regards,

 

Jan

How to remove zeros from Table control.

$
0
0

hi all,

 

in table control when i am getting zero quantity in quantity field the table control displays/output showing 0.00 .

i want blank  of this field plz give me solution of this,

 

Thanks..

CDHDR and CDPOS table not updating for customer master changes

$
0
0

Hi Experts

 

I am modifying the value of  KNA1-KVGR1  ,value is getting modified but the corresponding CDHDR and CDPOS entry is missing .

 

I have tried function module  Customer_update_sales_area function  (or Modify KNA1 from ITAB also ) module to update the KNA1 table,

in both case field is getting changes but CDHDR and CDPOS table is not getting affected ,please help.

 

Anoop

Viewing all 8332 articles
Browse latest View live


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