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

Mass delete Partner Functions from Customer Master

$
0
0

Hi All,

 

My requirement is to mass delete certain partner functions from hundreds of customers. For this, we are looking forward to an ABAP solution. Please could you let me know whether anyone has faced a similar requirement and how was the functionality achieved.

 

I searched for various BAPIs / FMs but did not find any which can be suitable. I even tried the FM 'SD_CUSTOMER_MAINTAIN_ALL' by passing the relevant partner details along with deletion indicator 'D' in the table T_XKNVP, but the FM does not seem to work for our requirement.

 

BDC can be an option, but how do I identify at which position is the partner located in the customer master?

 

I do not see any option through transaction MASS also.

 

 

Please help provide pointers.


ALV Layout - Internal table Contents

$
0
0

Dear Experts,

 

After executing  the report,  user selecting  the variant.

When  user select's Icon(Select All)  all items   present in the screen should be  marked  with 'X'.

In user Command  not able to get the  variant's data  in   internal table,  its displaying all data's.

 

Kindly suggest me  how to find  the variant's data contents in user command.

 

 

Regards,

Venkat.

Problem with the PO printout first page

$
0
0

Hi All,

 

Some of the users in our organisation are having the problem with PO print out.Always the first page of the PO output is shown as belowPO output.png

 

 

Kindly anyone advise how to solve this error.

 

Thanks in advance.

RFC result is different (SAPMF50A 0300)

$
0
0

Dear Experts,

 

I have a remote function which calls BDC F-32 to post account document.

It works when I use SE37 to post, but when portal team call it using the same input parameters, SAP gave this message:

"No batch input data for screen SAPMF50A 0300".

Why the result is different between SAP SE37 and portal remote call?

How can I solve this issue?

 

I attached my BDCDATA here.

 

Thank you for your reply.

CTS Customizing Request

$
0
0

Hello All,

 

Anyone Can Help, I have a doubt related with customizing transports. When some made a changed an create a customizing request with for example:

 

TR 1 : Table tXX and KEY 100300  Check Fields Changed X X

 

Then another guy create another customizing order with a change in the same table for example:

 

TR2: Table tXX and KEY 100300 Check Fields Changed X X X

 

THen if I released the TR1 first which entries will I transport to the target system ?

 

 

Thank you In Advance

BAPI for printer update, field HOST PRINTER (TSP03D-PAPROSNAME)

$
0
0

Hi everyone,

 

 

I need to massive update on HOST PRINTER field of SPAD transaction.

My question is. For this update exist any BAPI?

Thanks for help.

 

Regards.

Mario Santana

Turning non-resumable exception into resumable one (hack?)

$
0
0

Hi,

maybe you faced the same already: your program triggered an exception which resulted in the end of the protected area (TRY..ENDTRY) processing. However, you would like to treat it as resumable exception. I have found the following feature (a bit by coincidence) and would like to know whether you think that it's implemented on purpose by SAP like this or whether it's just a non-treated bug? I would like to hear your opinions. In some scenarios this could help you, but be careful as it's undocumented feature.

 

Standard exception class cx_sy_zerodivide is used in the examples below. Let's assume the code:

 

  TRY.

* some logic where the exception CX_SY_ZERODIVIDE of exc. class CX_SY_ZERODIVIDE is raised

    CATCH cx_sy_zerodivide .

* standard exception handling. No way to resume

  ENDTRY.

 

If you start thinking of resuming the processing after the exception is raised, you would like to have something like this:

 

  TRY.

* some logic where the exception CX_SY_ZERODIVIDE of exc. class CX_SY_ZERODIVIDE is raised

    CATCH BEFORE UNWIND cx_sy_zerodivide .

      RESUME.

* This does not work as the exception was not triggered as resumable. It's triggered by the system automatically.

  ENDTRY.

 

However, if you trigger another resumable exception within CATCH BEFORE UNWIND block for CX_SY_ZERODIVIDE and also RESUME that new exception (all of this just before the RESUME for CX_SY_ZERODIVIDE is used), then also CX_SY_ZERODIVIDE suddenly becomes resumable!

 

  TRY.

* some logic where the exception CX_SY_ZERODIVIDE of exc. class CX_SY_ZERODIVIDE is raised

    CATCH BEFORE UNWIND cx_sy_zerodivide .

* START of the new block

      TRY.

          RAISE RESUMABLE EXCEPTION TYPE lcx_1.

        CATCH BEFORE UNWIND lcx_1 INTO DATA(lx).

          RESUME.

      ENDTRY.

* END of the new block

      RESUME.

  ENDTRY. 

 

For short demo have a look at the attached example ZNON_RESUMABLE_EXC_1_HACKED. Try to comment/uncomment different parts of statements to see what is necessary to keep in place to make it work.

 

Hmm, I was wondering whether the behaviour is that strange not only within the simple TRY ... CATCH ... ENDTRY but also when the exception is triggered in called procedures? Normally, when you trigger your exception as resumable and the handler (CATCH) is not found at the same level, then all the callers on the call stack are searched unless the handler is found (otherwise dump is created). Let's assume that the handler is found. The precondition for having the exception handled as resumable by the handler is that interfaces of all the methods/forms searched on stack path must have the exception declared in the interface as resumable.

 

That is declared like this for the method of the local class:

METHODS: loop_and_divide RAISING RESUMABLE(lcx_1).

 

Fo the global class this can be found in exceptions for the method, flag Resumable.

 

I was  - again - surprised that this is not necessary when non-resumable exception is turned into resumable as described above! It simply behaves like all the interfaces on the path would have the RESUMABLE flag set.

 

For short demo have a look at the attached example ZNON_RESUMABLE_EXC_2_HACKED.

 

For short demo of how it must look for ordinary resumable exceptions, have a look at the attached example ZNON_RESUMABLE_EXC_3.

 

What is your opinion about this?

 

BR

Michal

Listbox after selection, no value

$
0
0

Hi All,

 

I am using ABAP Listbox with VRM to set the dropdown.

 

I am able to set the dropdown, but the user selected value doesnot appear in the parameter specified.

 

I have tried using VRM_GET_VALUES but the same didnt work.

 

Please guide.

 

Below is my code:

 

REPORT zbw_mosl_file_upd.

 

 

TYPE-POOLS: vrm, slis.

 

 

 

TYPES: BEGIN OF ty_retailer,

        /bic/zcretalr TYPE /bic/oizcretalr,

       END OF ty_retailer.

 

 

TYPES: BEGIN OF ty_pzcfilenm2,

       checkbox TYPE xfeld,

       /bic/zcfilenm TYPE /bic/oizcfilenm,

       objvers TYPE rsobjvers,

       changed TYPE rsrchangeflag,

       /bic/zcstat TYPE /bic/oizcstat,

       /bic/zcretalr TYPE /bic/oizcretalr,

      END OF ty_pzcfilenm2.

 

 

DATA: lt_retailer TYPE TABLE OF ty_retailer,

      ls_retailer TYPE ty_retailer.

 

 

DATA: lt_pzcfilenm TYPE TABLE OF /bic/pzcfilenm,

      ls_pzcfilenm LIKE LINE OF lt_pzcfilenm.

 

 

DATA: lt_pzcfilenm2 TYPE TABLE OF ty_pzcfilenm2,

      ls_pzcfilenm2 LIKE LINE OF lt_pzcfilenm2.

 

 

DATA: lt_fieldcat TYPE slis_t_fieldcat_alv,

      ls_fieldcat TYPE slis_fieldcat_alv.

 

 

DATA: name TYPE vrm_id,

      list TYPE vrm_values,

      value LIKE LINE OF list,

      lv_records TYPE i,

      lv_message TYPE string.

 

 

DATA: lv_repid TYPE sy-repid VALUE sy-repid.

 

 

DATA lr_grid TYPE REF TO cl_gui_alv_grid.

 

 

 

 

SELECTION-SCREEN: BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.

 

 

PARAMETERS: p_retail LIKE /bic/pzcfilenm-/bic/zcretalr AS LISTBOX VISIBLE LENGTH 30.

 

 

SELECTION-SCREEN: END OF BLOCK b1.

 

 

 

 

 

 

 

AT SELECTION-SCREEN OUTPUT.

 

 

  SELECT /bic/zcretalr

    FROM /bic/pzcfilenm

    INTO TABLE lt_retailer

    WHERE /bic/zcretalr IS NOT NULL.

  IF sy-subrc NE 0.

 

 

    MESSAGE e000(zbw_mosl_file_upd) WITH 'Error'.

    EXIT.

 

 

  ELSE.

 

 

    SORT lt_retailer.

 

 

    DELETE ADJACENT DUPLICATES FROM lt_retailer.

 

 

    LOOP AT lt_retailer INTO ls_retailer.

      value-key = sy-tabix.

      value-text = ls_retailer-/bic/zcretalr.

      APPEND value TO list.

 

 

    ENDLOOP.

 

 

    name = 'P_RETAIL'.

 

 

    CALL FUNCTION 'VRM_SET_VALUES'

      EXPORTING

        id     = name

        values = list.

 

 

  ENDIF.

 

 

AT SELECTION-SCREEN.

  "Fetch all the Filenames which have Loaded status for the selected retailer

*  PERFORM fetch_loaded.

 

 

  CALL FUNCTION 'VRM_GET_VALUES'

    EXPORTING

      id     = name

    IMPORTING

      values = list.


Overlapping Start Time and End time records in Internal table

$
0
0

Hi All,

 

I tried searching SCN for this requirement but couldn't find any solution.

There is class for comparing time stamp but what if we need to compare Start Time and End time of 2 records in Table.

 

Eg:

                                     Start Time          End Time

Record 1  -                   12:10:10           15:10:10

Record 2  -                    16:10:10           18:10:10

Record 3  -                   13:10:10           14:10:10

 

Record 1 and 3 has overlapping time slots. I tried with BETWEEN operator but it is not working.

 

Can anybody please help me ...

 

 

Thank you.

Custom functionality for standard function key's in OOPS ALV

$
0
0

Dears,

 

The requirement is in the output level of oops ALV report, if we select one record and click on details button then it will show to us the detailed pop-up..

In that pop up I need to maintain the one custom button and with the button I have to provide some custom functionality..

So please help me on this.

 

popup.PNG

 

Thanks,

Srinu.

Date Calculation

$
0
0

I am trying to figure out how I can calculate the dates by getting the number of days from the start date to the end date.

 

Begin Date = PA0001-BEGDA
End Date = PA0001-ENDDA

 

I am trying to figure this out by getting the number of days between the two above fields.

 

z_date1 = PA0001-BEGDA.
z_date2 = PA0001-ENDDA.

z_day = z_date1 - z_date2.


Thanks.

knowledge provider error while uploading word document into BDS via OAOR

$
0
0

Hi experts,

 

I have a requirement where i need to generate Mail merge from ABAP program. That is, the program should read a word document and to pass the values from ABAP program to that word document. Based on the set of values passed from the program, it should be replaced in teh appropriate placeholders (fields) in teh Word and a set of documents need to be generated like this.

 

 

Im trying the SAPRDEMO_MAILMERGE_INTERFACE demo program. Before generating, i m trying to upload the word document into Business Document Server (BDS) using transaction OAOR. But im getting the below error while uploading.

 

"Knowledge provider error" .

 

Pls tell me what is the reason for this error and how to correct it.

Interface between SAP and Non SAP(.Net)

$
0
0

Hi,

 

         I got a requirement where the data in SAP should be transferred to NON-SAP(.Net) but this should be happen through a selection Screen where user will give a range of plants, and this should be background Job which runs for very 10 min. So my plan is, as this is a background job we cannot create a directly an RFC there should be a program which can be scheduled. And in that program this RFC should be called, as input in the program contains range we cannot export a range to RFC, So I have developed complete logic in the program and setting the final internal table in global memory and using the internal table in the RFC, and this final internal table will be Importing to the third party software and it will return to the Main program.

 

So my doubts are will this work, or should I use BAPI for that instead of RFC ?

 

Is there any other way to reach out ? 

 

How can this be achieved ?

 

please kindly help on this.

 

 

Points will be rewarded.

 

Regards,

watch-point.

WM Batch Determination in transfer order

$
0
0

Hi,

 

I am in the process of setting up batch determination for WM.  Batches will be assigned when the transfer order is created, rather than in the delivery.  I have noticed that quite a few fields are not populated in KOMKH and KOMPH. 

 

From my investigation I have found that these tables can be manipulated in the function module VB_BATCH_DETERMINATION.  I have tried placing a break point in the user exit EXIT_SAPLV01F_002.  I can breakpoint in VB_BATCH_DETERMINATION but I cannot work out where I need to apply the change.  Any advice would be most welcome.

 

Kind Regards,

 

Jacque

Call transaction with selection parameters fill with value

$
0
0

Hello,

 

My Program A has a selection parameter p_abc.

On clicking from output of Program A , I call T-code. This T-code has a selection parameter and I want to fill this selection parameter with value p_abc.

I'm using

SET PARAMETER ID 'ABC' FIELD p_abc.

     CALL TRANSACTION 'T-code'.


Please guide.


Regards,

Sushant


New features in ABAP since 7.1

$
0
0

Hello Experts,

 

I'd like to know about new features in ABAP since Netweaver 7.1 till now.

Any links, blog post or documents will be helpful.

 

Thanks...

Suppress standard messages

$
0
0

Dear all,

 

We have a requirement where in Tcodes 'me21/22' or 'me21n/22n', a standard message has to be suppressed for a specific document type. I have found in the standard program for tcodes me21/22 where error message is being thrown, but i would like to know if this can be achieved via user exits or BADIs.

 

Kindly suggest.

 

Many thanks!

 

KR,
Devayani

IDCP Dump (Getwa_Not_Assigned_Range)

$
0
0

Hi Developers;

 

When we run the IDCP tcode than comes to alv list.

If we filtering the Amount field on the alv list ( Zero amounts don't show on the list)

 

We are getting a dump error "GETWA_NOT_ASSIGNED_RANGE" in SAPLSSEL program line 1390.

 

How can i fixed this ?

Thanks for help..

odata services

$
0
0

I would like to find existing or create new odata services.

I found several discussions about doing this in ECC 6 EHP 7.

We are on ECC 6 EHP 6.

The path I have seen is:

Transaction : SPRO->SAP Netweaver ->Gateway->OData Channel->Administration->General Settings->Activate and Maintain Services-

That does not exist in my system.

And transaction SEGW doesn't exit.

Is it possible to use odata services on the version I am on?

 

thanks for your help.

 

Scott

Additional Field In Infoset SQ02

$
0
0

Hi all,

We have created an infoset and  report in SQ01 using anly one  table FMIOI .
Now, we have to add a "SUM" field which calculate only data with value type 83 in year 2016 and b.period 2016
.

we have added the attached code :

 

CLEAR : sum_orders

 

select sum(fkbtr) into sum_orders

from fmioi

where

wrttp = '83 '

and  gjhar = '2016'

and budget_pd = '2016' .

 

we also have created new info group for the extra field .

 

when we have tried to run it we have got only "0" values for all the funds centers.

 

please need your help

Thanks

Roy

 


Viewing all 8332 articles
Browse latest View live


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