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

Adding Tab and Field in MIGO

$
0
0

Hi,

Im recently new in programming in ABAP, and i have been asked to add a new Tabstrip at details level with a new field type MSEG-LLIEF.

 

I've created a BAPI implementation of MB_MIGO_BADI and copied the example code, I have been analyzing it carefully and also noticed that a field LLIEF already exists in the GOITEM structure. The tab and field for the user to fill must also appear only if the document is of movement 911 (BWART = '911'), it has to have a matchcode to table LFA1 (The Provider must exist in this table) and it must then be saved in field MSEG-LLIEF where MSEG-ZEILE = '0001'. My question is where to go from this point, cause im kinda lost.


Thanks.


RFC for break down notification

$
0
0

Hi All,

I need to create RFC for break down notification. The break down notification which is being done manually in SAP is to be automated through RFC from machine SCADA. Following is the detail requirement which need to be perform by RFC :

The RFC is need to be called form DOT NET windows service


  1. RFC invokes transaction IW21 and creates notification in real time
  2. Notification type <M1>; Short Description <Break Down> are all constants
    Equipment <Equipment no> triggered from machine controller
  3. At the completion of break down plant maintenance person will log into SAP and close the notification after entering the break down details
  4. Auto mail message from SAP to “person responsible” on creation of notification

I have already try this with "BAPI_ALM_NOTIF_CREATE"  function module. but encountering difficulties in taking IMPORT parameter from DOT NET application.

How to know table contents of transport request in target system, before import?

$
0
0

Hi All,

 

I have a requirement, where in i want to know, the table contents of a transport request, before it is imported in target system. I am getting all other objects using "Objects List" button( or calling API TMS_MGR_READ_TRANSPORT_REQUEST), in STMS tcode, but not able to see table contents.

Please let me know, if anyone is aware about it

 

Thanks in Advance.

 

Anil

Modify Custom IDOC segment field length

$
0
0


Dear Folks,

 

We have a custome segment which released in version 7.3, now we are in 7.4.

I got a requirement to change one of the existing fields length and when i trying to cancel the release getting an error saying  "Error while resetting release of segment".

 

Please suggest how can we edit the segments released in previous releases?

 

Regards,
Siva.

MIRO/MRBR difference value

$
0
0


Hi,


I do have a question on invoice blocking and release process(MIRO/MRBR).


Our client needs to block an invoice (and items) if unplanned costs are set on an invoice. I used BAdi MRM_PAYMENT_TERMS to set the payment block key to 'R' and BADI  INVOICE_UPDATE to set price blocking  reason for items to 'X'.

 

The code is as follow:

 

BADI MRM_PAYMENT_TERMS

    "If unplanned costs are set, block invoice
    IF i_rbkpv-beznk IS NOT INITIAL.
      e_zlspr = 'R'.
    ENDIF.

 

BADI INVOICE_UPDATE

    FIELD-SYMBOLS: <fs1>     TYPE                 any,
                   <fs2>     TYPE STANDARD TABLE,
                   <fs_rseg> TYPE                 mmcr_drseg.

*   Check if the invoice has "Unplanned Costs" - Check at header level
    IF s_rbkp_new-beznk IS NOT INITIAL.

*     Get the invoice items
      ASSIGN '(SAPLMR1M)YDRSEG[]' TO <fs1>.
      ASSIGN (<fs1>) TO <fs2>.

      IF <fs2> IS ASSIGNED.
*     Set the "Blocking Reason: Price"
        LOOP AT <fs2> ASSIGNING <fs_rseg>.
          IF <fs_rseg>-kschl IS INITIAL. 
            <fs_rseg>-spgrp = 'X'.
          ENDIF.
        ENDLOOP.
      ENDIF.

    ENDIF.

 

Now, blocked items show on the MRBR report.But the problem is that the difference value is equal to 0 since unplanned costs are not taken into consideration, and when I run automatic release, these items are relaesed since the program considers this blocking as obsolete. Is there a way to change difference value of a price blocked items on the MRBR report? ie, what is the field to update on the invoice so that the calculation of the difference value takes the amount of unplanned  costs into consideration?

 

Thank you in adavance for your help.

Standard Program enhancement

$
0
0

Hi Experts,

 

I have a requirement where in i need to grey out a seelction screen field.

 

its a standard program, the first selection screen has few push buttons, the click on a push button calls a another selection screen, i need to grey out a field in second selection screen.

module pool programming is not used, submit is used to call the another program.

kindly guide me on this.

 

thanks in advance.

 

regards,

Kushala

New screen added to MM4x - Show MATNR default

$
0
0

Hi,

 

I have created an implemented an enhancement screen for Article Master.

 

I have several fields in the screen and it all looks goods.

 

The new screen has 4 input fields ttat comes from my Z table: MATNR, VKORG, VTWEG and SPART My field for MATNR is then

ZMARA_ADD-MATNR.

 

The users want that the field MATNR is automatically filled with the current MATNR from MM41, MM42 or MM42.

 

How can I fill .ZMARA_ADD-MATNR with the current MATNR ??

 

Peter

Failing BAPI_ALM_NOTIF_DATA_MODIFY some times

$
0
0

Hi gurus,

 

I need to update maint. notification with recently assigned fucnt loc of the equipment, I am using  BAPI_ALM_NOTIF_DATA_MODIFY, BAPI_ALM_NOTIF_SAVE, and  BAPI_TRANSACTION_COMMIT.

I am passing functional loc both in header and headerX tables, sometimes  BAPI_ALM_NOTIF_DATA_MODIFY is returning with the updated funcloc but sometimes not.

Evens some times it is updating with previous funcloc of the equipment(which recently dismantled).

 

could you please anyone help in this.

 

Do i need to update funcloc once on notification - ?

Is there will be any memory issue behind this...?

When I am updating 2 to 3 times without anytime gap it is returning Previous funcloc as i mentioned above or it is noting updating..

 

Thanks for the help... Waiting for your valuable help...


F4 help - ME22n and ME21n

$
0
0

Hi Experts,

 

I have a client requirement to restrict the F4 help on Cost Center field under Account assignment Tab.

They want the tab Cost Centre by Plant to come up directly with the plant(from line item level) , company code and controlling area defaulted.

 

Kindly advice if this can be achieved.

 

Thanks,

Anju

F4 help - Dynamically pass value

$
0
0


Hi Experts,

 

I have a requirement to pass company code field value in Account assignment tab to the f4 help for field Cost centre. How can I pass this value dynamically based on the line item selected.

 

Thanks,

Anju

BAdI or User exit for tcodes : F-58 & F-53.

$
0
0

Hi Experts.

I have searched alot but not able to find the BAdI or user exit for above mentioned Tcodes.

I have to fire an auto email to vendor with popup question for sending, while saving the payment transaction from both the Tcodes.

 

So kindly help the same.

 

Thanks,

Vishal

Address number in structure VBDKR

$
0
0

Hello all,

 

I have an issue that when printing the address an invoice and with technical field VBDKR-ADRNR but i do not know this is address for Sold to or ship to party. etc.. of the billing

Could you help me how to know this ?

Any configuration related to it ?

regards,

Tai Vo

Impact upon activation of the SWITCH DIMP_GENERAL

$
0
0

How to analyse the impact upon activation of the SWITCH DIMP_GENERAL?

 

Please find below the screenshots of the business functions(Transaction SFW1):

copy1.png

copy2.png

Example of one business function:

copy3.png

 

Note: Our request consists in adding a new custom field for the transactions AC01 and AC03.

Enhancing Standard program selection screen

$
0
0

Hi All,

 

How to enhance a standard program selection screen, when the implicit enhancement point is not available at at-selection-screen output?

 

Thanks in Advance

 

Regards,

Kushala

Exit M06B0005 not getting the value for WBS field

$
0
0

Hi ABAP Expert ,

 

 

Requirement is to pass CEBAN-USRC1 = PROJ-VERNR for PR RELEASE and for the same user exit- M06B0005 is used

following this remaining all fields are getting value  but its not fetching the WBS(PS_PSP_PNR) field through this  exit .

 

Although this query has been asked earlier as well in SCN  but dint get proper solution so far.

kindly suggest the ways to prompt this exit .


your prompt response will be appreciable.

Thanks

Ramesh .


How Many Number Of Active BADI Implementation we can have?

$
0
0

Dear Experts,

 

Just want to know how many number for Active BADI implementation can we have in SAP?( is it 0..n   or do we have any limitation).

Whether it will turn out any performance issue if we cross some number of limitations( example: active BADI should not more than 18 recommened).

 

Please advise...

 

 

Best Regards,

Raja

complete notification while changing workorder status to release

$
0
0

Hi,

 

I want to complete notification which attached to a workroder while changing system status, but i could not able to find any method to change the notification status to complete using bapi_alm_order_maintain while updating Workorder.

Is this can be achievable through the standard BAPI. I referred documentation of BAPI provided by SAP, but no method I found which suits my requirement.

If it is achievable how to use the BAPI(passing data) .

 

 

Thanks in advance!

Problem in AT_EXIT_COMMAND Back Button

$
0
0

Hi Experts;

 

I have created an ALV Editable Report using Custom Container (Using CL_GUI_ALV_GRID), Every thing is going perfect, I have also created PF STATUS and set AT-EXIT-COMMAND for BACK, EXIT & CANCEL Button, but when I Press back button after ALV List, then it is going to another list without any list screen rather than back to selection Screen.

 

for 'BACK' i write,

SET SCREEN 0,

LEAVE SCREEN,

 

I had also try it with

 

LEAVE TO SCREEN 0, but the problem is same.

 

Kindly provide me an appropriate solution,

 

Thanks in Advance,

Regards,

 

Pradeep Mishra

Dynamic header in Sapscript

$
0
0


Hi ,

 

I am currently working on sapscript. My requirement is to display Inbound deliver note using Script. In it a single Inbound delivery note can have multiple handling units. Data corresponding to a particular HU should be displayed on same page and also the HU number for it should be displayed on Header along with barcode. When second HU number is encountered page break should trigger and same process should be repeated.

 

I am unable to display HU Number in header correctly as only last HU Number is always pickedd and displayed in header along with barcode. Also due to page break page numbers are not displayed correctly in header. Every page is displayed as page 1.

 

Please suggest as how to get Hu number and page number correctly for every page of single Inbound delivery note.

MB_DOCUMENT_BADI method not triggering in update task

$
0
0

Hi All,

 

  I have a requirement to update some custom tables with Material document number after MIGO. The problem is that, if i write the update statements in the MB_DOCUMENT_BEFORE_UPDATE method of the badi, my tables will get updated. But if I write it in the IN UPDATE TASK method, my tables dont get updated. If I write the update statements inside an update function module and call it in MB_DOCUMENT_BEFORE_UPDATE method then also my tables dont get updated. Please help.

Viewing all 716 articles
Browse latest View live


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