Quantcast
Channel: SCN : Unanswered Discussions - ABAP Switching, Enhancing, and Adapting Standard Programs
Viewing all 716 articles
Browse latest View live

Direct SAP table update issues

$
0
0

Hello Experts,

 

    Currently, in my customer system i see one custom program which is updating SAP standard table (SCM EWM) directly using below statement.

 

 

 

     "update /SAPAPO/MATLWH set rsqty = zmax_qty where matid = mat_wa_chunk-matid and scuguid = mat_wa_chunk-entitled_id."

 

 

 

      I see that program is there in production from last almost 2 years and that is a product quantity update program which has to run periodically.

 

    As per my knowledge, this is not at all acceptable. Can you please share me your thoughts, what kind of problems will occur and pre-defined

    errors with direct data base table update?

 

 

 

    What should we do now on this?

 

 

 

    Thank you in advance.


Display of line items with respect to activity number in DP80

$
0
0

Hi All experts,

 

I have the below requirements,

 

1) I have a service order with 3 line items, In which two line items are have same control key as PM03 and other one is having PM01. When i process this order in DP80 transaction i find the line items with same control key is getting summarized and two line items are getting displayed instead of three.

 

I want to avoid this summarization happening and want all the three line items to get displayed.

 

2) Further i want each line item to get categorized based on the activity number, that is all line items with respect to a particular activity number must come beneath that acitivity number displayed.

 

I found a DIP BADI DIP_AD010003_DC useful but here i can pass only one value at a time. That is in our case we have three line items with three different activity number, but i can pass only one value at a time and i can see the output in DP80 based on that particular value passed.

 

Requesting your help in the above requirements.

 

ABAP Development

 

Thanks in advance.

 

Regards,

 

Satish

User Exit for LT01 and LT10

$
0
0

Hello to everyone,

 

We are facing a scenario where the user must not be able to create TO from or to the storage type DIF. This means that we want

to block the WM Movement type 999 (tcodes LT01 & LT10) for source and destination storage type = DIF. The DIF storage type must be

filled only via Physical Inventory Clearances (711 & 712).

We were thinking about using User exits for the two transactions. Could anyone help with the correct User Exits?

Is there a way to implement this scenario with customizing or a different approach?

 

Thank you a priori for the answers,

Stavros Chatoupis

Validation Data in IW31/ IW32 with user-exit or BADI

$
0
0

Hello Gurus,

 

I need your help to discovery one BAdI or User-Exit to validate data in T-Code IW31 and IW32.

 

My objective is to validate, before saving, the components in the maintenance order by the MRP type. Is it possible? What BAdI or user-exit should I say to the programmer to use?

 

I don't work with ABAP so I just found a thread with some BAdI's and user-exits taht can possibly be used: Validation Data in IW31 with user-exit or BADI

 

Thank's in advanced.

 

Best Regards.

 

MB

Bapi To Update KNKK AND KNKA TABLE FOR CREDIT LIMIT

$
0
0

Hello All,

 

Please guide me to find a Standard BAPI to update KNKK and KNKA Table For Credit Limit In FD32 T-Code.

 

 

 

Regards

Abhisek

Nota Fiscal Screen Edit -CNPJ Number

$
0
0

Hi All,

 

I have a requirement to make the CNPJ number on the NF-e Data tab of the J1B1N/J1B2N transactions ,editable. While I was able to alter the display properties of the said field(by means of an implicit enhancement) I am not able to capture the data which is typed in. Could anyone guide me with how I can go about making the field editable and capture the data. I could not find any screen enhancements which would serve the cause either.

 

Regards,

Can we call super class method from Overwrite method using SUPER keyword

$
0
0

Hi All,

 

For one of our requirement , I need to overwrite "Process Event" method of a feeder class  ,where process event is present is protected method. so when we are making a call , then its saying

 

"Method  "process event"  is unknown or Protected  or PRIVATE ".

 

 

    But we are just copied the source code in the "Process Event" method to the Overwrite method.

 

 

Can anyone provide me the clarification , why system behaving like this.

 

 

Thanks

Channa

IW21 Check At SAVE

$
0
0

Hi Guru's ,

 

In transaction IW21 I have to check before saving if a cost object is enterred.

I spent a lot of hour to find if there is an user-exit to do this but nothing.

On of those fields in the printscreen should be filled in if not I should display an error.

I tried to play with the PAI and STATUS SAVE (BUCH) but the structure VIQMEL is filled in in PAI.

I assume that an user-exist do this.

 

Anyone have an idea please?

Capture.JPG


Copy specific field from IW21 to IW34

$
0
0

Hi Guru's,

 

I created a specific field in QMEL table and added in screen 101 in IW21 transaction.

After saving the value  field should be copied in the standard field subnetwork/activity in Additional Data tab

 

Could you please help me?

 

Regards,

 

Rahhaoui

Assigning Tasklist while Creating PM Order

$
0
0

Dear Experts,

 

I have been trying to assign a Tasklist automatically while Creating a PM Order through User-Exit IWO10020. Calling BAPI_ALM_ORDER_MANTAIN. in the code. (Code attached herewith). This returns error 'Tasklist ..... can not be integrated'. Searched SCN thoroughly before posting this. Can someone help where to correct?

 

Regards

Jogeswara Rao K

Printing issue in F.27 t-code

$
0
0

HI Experts

 

I developed two adobe forms one for debtors and other for creditors for output of periodic account statement in PDF form.

for debtors statement  I am using program RFKORD11_pdf and its working fine and

for creditors statement I am using program RFKORD10_pdf and its not working. This program is not able to call my form.

 

I debugged the standard program and found that its checking field rxkpos is initial or not.

Rxkpos description is:  Statement also without Items in the Acct Statmnt Period

Field - KORD10AO

 

All configuration setting is done as it is done for debtor statement still its not calling the form by functional people


Please help regarding this.


Thanks

Suruchi

MIGO - Update MKPF table from customize Header tab

$
0
0

Hi,

I am adding new tab with few fields at header level in MIGO. The data entered in new tab need to be updated in Header Table MKPF.

To achive this, I had appended a 'Z' struture in MKPF for new required field and used these field while creating subscreen. I had also implement the BADI (MB_MIGO_BADI) to add new tab at header level. I can see the new tab along with the fields added.

 

 

But i am not able to update the data from these new fields in corresponding fields database table MKPF.

The 'POST_DOCUMENT' method has nonly import parameter of MKPF which cannot be modified.

 

plz let me know possible way out to update the zfields in table MKPF.

 

Thanks & Regards,

Manu B

IW21 Classification screen structurre for extended view for a notification type

$
0
0

Hi Guru's,

 

In Spro I added a screen structurre for extended view for a notification type

I have well the subscreen now but the labels are missing and the button classification doesn't work.

 

I guess that I should implement an user-exit or a badi.

 

Any idea please ?

 

Regards,

 

Rahhaoui

User Exit for LT01 and LT10

$
0
0

Hello to everyone,

 

We are facing a scenario where the user must not be able to create TO from or to the storage type DIF. This means that we want

to block the WM Movement type 999 (tcodes LT01 & LT10) for source and destination storage type = DIF. The DIF storage type must be

filled only via Physical Inventory Clearances (711 & 712).

We were thinking about using User exits for the two transactions. Could anyone help with the correct User Exits?

Is there a way to implement this scenario with customizing or a different approach?

 

Thank you a priori for the answers,

Stavros Chatoupis

Sales order : Creation of VBAP main lines from VBEP schedule lines

$
0
0

Hello , I am working on SAP sales order interfacing with legacy system. This is the scenario where legacy system orders will come to SAP system for availability check. I mean , the legacy system sales order are replicalted in SAP system. and the availability check runs for it in APO. 

 

Based on the SAP system stock availability , the sub item or sub items ( schedule lines) will be created in the sales order. Here is one example of partial quantity availability.Below example shows that sap system has received a order of quantity 100.

SAP stock available is only 20 for 29th may. Another quantity 80 will be available on 30th May.

So system will create two sub items or two schedule lines.

 

But when I save the sales order the sub-items lines should be converted into main item lines as shown in the below example in after save.

 

I tried this developement by using MV45AFZZ. User exit - SAVE_DOCUMENT_PREPARE. But I am not getting right results.

 

I short , I would like to have single schedule line for one item line. And if there are multiple schedlue lines then for each schedule line one item line should be created automatically by the system

 

 

Before SaveItemSchedule lineReq DateReq QtyRounding QtyConfirmation Qty
40
129th May10010020
230th May80
After SaveItemSchedule lineReq DateReq QtyRounding QtyConfirmation Qty
40
129th May202020
41
129th May8080
230th May80

Calculation of cost for subcontracting item of type N (non stock) as it calculating for type L(Stock)

$
0
0

Hi Gurus,

 

I have a Requirement for calculating the cost for Subcontracting  Non stock items N as it is getting calculated in standard functionality for subcontracting items of Type L.

This will be done in CK11n ( used to calculate the standard cost estimate of the product) for header as well as component materials.

please suggest the user exit or Badi where i can change.

 

Please refer the below logic-

 

BOM for the material 2000500 as Header and 1LPL0835298AB as a component and this component has an assembly with 7008508 as a component and this component is an Sub contracted item and this has an assembly with component 1LBA182151-3.

Price calculation for the material 7008508 (Item Category as N). Since this is sub contracted item the price will picked from field EINE-NETPR.

 

  • In EINA, pass the material (MATNR=7008508) to fetch the list of info records (INFNR) created for that material.
  • Then it has to input those info records to EINE table along with Purchasing organization (EINE-EKORG=PT02).
  • From the output of EINE table, it should compare the price (EINE-NETPR) of the PIR and should take the least price from those PIR`s.
  • If the currency is other than PLN, then it should be converted to PLN based on conversion charges.
  • For Material (MATNR=1LBA182151-3), it should pass the material number to table MBEW along with valuation area (BWKEY = WERKS).
  • From the output, it should check the Price control (VPRSV) ‘V’ or ‘S’
    • If ‘V’ the price will be picked from the field “VERPR”
    • If ‘S’ the price will be picked from the field “STPRS”
  • Also from the output, it should check the Price unit (PEINH) ‘1’ or other than ‘1’. If it is other than ‘1’ it should divide the VERPR or STPRS by PEINH. Then this is the price of the Material “1LBA182151-3”.
  • The material (MATNR=1LBA182151-3) should be passed to table “MARA” and will take the Base unit of measure from that table “MEINS”.

 

Br,

Surya

CAT2 implicit enhancement

$
0
0

Hi, SCN society.

 

I know I have to use implicit enhancement on CAT2. But I don't know where to place it.

I added a field on worklist using CI_CATSDB.

Now I need it to be filled with a value which depends on data of CATSFIELDS structure and on CATSDB structure (header data and worklist data).

From CATSFIELDS I need PERNR, DATEFROM, DATETO values and from CATSDB I need TASKLEVEL value to calculate and display the value of

the additional field on PBO of worklist screen. Is it possible?

It is a bit difficult,

So please, help me with any suitable solution.

Thank you.

Memory Analysis of Deep Structures

$
0
0

Hi Experts,

 

ISSUE PART 1

i have created two structures ZTEST_SRC and ZTEST_TRT. The structure ZTEST_TRT contains the same fields as in structure ZTEST_SRC but i have removed the include COMT_TEXT_TEXTDATA in this structure.

       ZTEST_SRC_70.PNGztest_trt_70.PNG

Technically, as the two structure contains the same fields and length, the memory occupied during run time should be same.

But contrary to the expectations, its not .

 

I have written a short program to analyze it. Please find the screen shot below.

 

***************************************************************************************

REPORT  ZTEST_COMPARE_LENGTH.

 

DATA: SRC TYPE ZTEST_SRC,

       TRT TYPE ZTEST_TRT,

       LO TYPE REF TO CL_ABAP_TYPEDESCR,

       LSRC TYPE  REF TO CL_ABAP_TYPEDESCR,

       LTRT TYPE REF TO CL_ABAP_TYPEDESCR.

 

DATA: REF_KIND TYPE CHAR10,

       STXH TYPE STXH,

       LINES TYPE COMT_TEXT_LINES_T,

       FUNCTION TYPE TDFUNCTION.

 

 

CALL METHOD CL_ABAP_TYPEDESCR=>DESCRIBE_BY_DATA

   EXPORTING

     P_DATA      = SRC

   RECEIVING

     P_DESCR_REF = LSRC.

 

CALL METHOD CL_ABAP_TYPEDESCR=>DESCRIBE_BY_DATA

   EXPORTING

     P_DATA      = TRT

   RECEIVING

     P_DESCR_REF = LTRT.

 

BREAK-POINT.


***************************************************************************************************************************


During debugging, the following is the screenshot of the memory analysis.

 

70_mem_analy.PNG

 

The bytes occupied by SRC is 912 and TRT is 904.

 

ISSUE PART 2:

 

Now i have changed the filed length of the field 'REF_KIND' in both the structures to CHAR80.

 

ztest_src_80.PNG  ztest_trt_80.PNG

 

 

Now i have execute the program and here is the memory analysis.

 

80.PNG

 

Surprised to see that the Bytes occupied are 928 and its same.

 

Why is memory occupied not the same in ISSUE PART 1 when char70 is used for field REF_KIND as in ISSUE PART 2 ?



Hope I have provided sufficient data for analysis and I need your help in getting to know about it.


Thanks in advance.


Cheers,

Ravi.

Eneabling Purchase Order Button Block/Unblock acording release indicator

$
0
0

Hi Experts,

 

In ME22N when "release indicator" is changed by X value PO is set in display mode, I have a requirement to enable button block/unblock and change mode but only this button can be available other buttons and fields should stay in display mode.

I've tried using BADI ME_PROCESS_PO_CUST but still don't know how to change mode leaving just button block/unblock available.

 

 

Thanks In advance.

 

Obed

Calculate cost for items of type N (non stock) as it calculating standard type L(Stock)

$
0
0

Hi Gurus,

 

I have a Requirement for calculating the cost for Subcontracting  Non stock items N as it is getting calculated in standard functionality for subcontracting items of Type L.

This will be done in CK11n ( used to calculate the standard cost estimate of the product) for header as well as component materials.

please suggest the user exit or Badi where i can change.

 

Br,

Surya

Viewing all 716 articles
Browse latest View live


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