Coding help reqd

Hi friends,
In MIGO, and Qty field ERFMG...i want to put a coding check that it should display a message as "Quantity should be minimum of 10% less and maximum of 20% high only",whenever the user tries to change the value of the field(existing value from the order #).
the field is cs_goitem-erfmg....
FYI.
I know the badi implementation and assinged it also.the coding part is not coming perfectly what i needed.
Pls do reply, if anyone have sample code or have solutions how to declare it.
thanks & regards
sankar.

Hi Sankar,
Please post your coding and explain what "is not coming perfectly" and we might be able to help you.
Regards,
John.

Similar Messages

  • Coding help reqd for BADI

    HI Friends,
    Im working on MB_MIGO_BADI object for MType: 261.Here, im facing a problem to call a info msg with coding effect.i.e, I've to give a conditional message says that if the user tries to change the quantity (changing the existing/available in the field text of MIGO), then it'll give a window pop-up message or info msg like "Quantity should not be changed". Pls reply ur post how to fix this.
    The fields are
    1) cs_goitem-bwart " MType
    2) cs_goitem-erfmg "Quantity
    Note: A) It'll be applied only for MType:261.
              B) Pls advise, Here, shall I declare the export and import memory id concept?
    FYI
    ******Below is the coding part declared inside the method function.
    method IF_EX_MB_MIGO_BADI~LINE_MODIFY.
    if cs_goitem-bwart eq '261'.
    *cs_goitem-erfmg is not initial and
    *call function 'CUSTOMIZED_MESSAGE'
    *exporting
    Message i006(zmsg).
    endif.
    endmethod.
    Above, it helps only showing the info msg while entering the mtype: 261.But i need to display it only if the cursor comes into Qty (ERFMG) field. Pls advise me how to fix with ur coding example.
    mail me:[email protected]

    Posted newly since one of the issue got solved.
    thanks

  • Coding help reqd for cs_goitem-erfmg

    Hi friends,
    In MIGO, and Qty field ERFMG...i want to put a coding check that it should display a message as "Quantity should be minimum of 10% less and maximum of 20% high only",whenever the user tries to change the value of the field(existing value from the order #).
    the field is cs_goitem-erfmg....
    FYI.
    I know the badi implementation and assinged it also.the coding part is not coming perfectly what i needed.
    Pls do reply, if anyone have sample code or have solutions how to declare it.
    thanks & regards
    sankar.

    hi,
              I have the same requirement please can u tel me how did u solve it....
    thanks and regards...
    Mady

  • Coding help reqd for BADI - looping strategy

    Hi friends,
    Pls help me to post some example codes for looping the table control data items.
    i.e., Details available in table control item in MIGO.
    Ex:
    LINE     Material text        Qty
    1             INGOT              5.0      
    1             INGOT              2.5
    1             INGOT              10.0
    1             FURNACE OIL  180.0
    Pls help me,How to loop this table control items , so that i want to sum the consolidated qty by material wise.
    the fileds are cs_goitem-matnr and cs_goitem-qty.
    FYI, the cs_goitem is a structure of MIGO.(cant do it for looping)
    Post ur comments with sample codes.
    thanks & reagrds
    sankar.
    Edited by: sankar babu on Jan 2, 2008 10:14 AM

    Hello Sankar.
    You can write the code needed in the POST_DOCUMENT method of the BAdI where you have the IT_MSEG table, so that you can loop it and collect the qty you need.
    For example:
    data: ls_mseg type MSEG.
    data: begin of i_coll_qty occurs 0,
               matnr type matnr,
               menge type menge_d,
            end of i_coll_qty.
    loop at it_mseg into ls_mseg where shkzg = 'S'.
        i_coll_qty-matnr = ls_mseg-matnr.
        i_coll_qty-menge = ls_mseg-menge.
        collect i_coll_qty.
    endloop.
    Please reward if helpful.
    Regards,
    George

  • Error in MIRO Help Reqd

    I have setup new instance. Created p.o & done MIGO things worked fine. In MIRO typically error is seen in tax code. I have assigned Tax procedure TAXGB to country IN. In Fin Acct in tax on sales & purchases defined new taxcode VX with country option IN. Still during MIRO its showing error Tax code VN & Country IN doesnot exist in procedure TAXGB. In error msg its M8 249 & origin is shown as check invoice document.
    Help reqd from SAP Gurus pls.
    Regards

    Check these links
    while doing MIRO, i am getting error:-Tax code V0 country IN does not exist
    Tax code Z4 country IN does not exist in procedure TAXINJ
    Tax code V0 country IN does not exist in procedure TAXINN
    Tax code V0 country IN does not exist in procedure TAXINN

  • Urgent Help Reqd: Delta Problem....!!!

    Hi Experts,
    Urgent help reqd regarding follwoing scenario:
    I am getting delta to ODS 1 (infosource : 2LIS_12_VCHDR) from R/3. Now this ODS1 gives delta to Cube1. I got one error record which fails when going to cube (due to master data check).And this record would be edited later.
    So I thought of re loading cube and using error handling to split request in PSA and load valid records in cube.Later when I have coorect info abt error, I would load erroneous record manually using PSA.
    I did following steps:
    1)Failed request is not in cube...(setting is PSA and then into target)....also it has been deleted from PSA.
    2)Remove data status from source ODS1.
    3)Change error handling in infopackage to valid " Valid records update, reporting possible".
    4)start loading of cube.
    But when I did this I got following message :
    <b> "Last delta update is not yet completed.Therefore, no new delta update is possible.You can start the request again if the last delta request is red or green in the monitor"</b>
    But both my requests in cube and ODS are Green...no request is in yellow...!!
    Now the problem is :
    1) I have lost ODS data mart status
    2)how to load valid records to cube, since errorneous record can be edited only after 3- 4 days.
    3)How not to affect delta load of tomorrow.
    Please guide and help me in this.
    Thanks in advance and rest assured I will award points to say thanks to SDNers..
    Regards,
    Sorabh
    Message was edited by: sorabh arora

    Hi Joseph,
    Thanks for replying....
    I apolgize and I have modified the message above..
    I just checked in cube...there is no failed request for today...and neither in PSA....Person who has handed this to me may have deleted this is PSA..and why req is not in failed state in cube...I am not sure..though setting is "PSA and then into data package".....
    So how to go frm here....
    Thanks
    Sorabh

  • Help reqd for coding to assign the  field as mandatory.

    HI all,
    I got the user exit and also assigned the component as "EXIT_SAPLMRIM_002"..im now here to create a code under the include program of "ZM08U09"....for to make the amount field as mandatory(obligatory)..with some pop-up message...
    how to do that....
    Do u people have any experience on this...pls post ur comments on urgent basis.
    thanks & regards
    sankar.

    Hi Sriram.P
    thanks for ur prompt reply
    ...but actually,my problem is...i dont know the exact table for miro (invfp-wrbtr showing in the screen)....i've already prepared some coding but the table i've mentioned is not the correct one...
    Do u know the table for Incoming invoices records (MIRO)
    thanks & regards
    sankar.

  • Help reqd on RG23D

    Hi abappers....
    My requirement is.....
    Opening Stocks at Plant(werks) level for RG23D balances to be captured line itemwise to generate 'A' Certificate Separtely....
    Im a beginner in ABAP and i dont know which tables,fields...i've to take and make a report as reqd.
    If anyone have solution or example of reports for this...pls post me your replies here on urgent basis.
    ******my email id:[email protected]
    thanks & regards.
    sankar

    Hi
    CSV means a text file, where the columns are separated by a character ";".
    The best way to change a list to CSV is to create an internal table in the ABAP, with the structure of the required CSV.
    You have to fill in this internal table.
    Because you are running the program in background, you can't download the file, the best would be to store the file on the server in a separated directory.
    1ST capture file from application server to internal table using open dataset and close data set.
    Use the Function Module SAP_CONVERT_TO_CSV_FORMAT to convert the internal table into Comma separated format then download this internal table using the Function Module GUI_DOWNLOAD.
    EX-
    Coding -
    TYPE-POOLS: truxs.
    TYPES:
    BEGIN OF ty_Line,
    vbeln LIKE vbap-vbeln,
    posnr LIKE vbap-posnr,
    END OF ty_Line.
    TYPES: ty_Lines TYPE STANDARD TABLE of ty_Line WITH DEFAULT KEY.
    DATA: itab TYPE ty_Lines.
    DATA: itab1 TYPE truxs_t_text_data.
    SELECT
    vbeln
    posnr
    UP TO 10 ROWS
    FROM vbap
    INTO TABLE itab.
    CALL FUNCTION 'SAP_CONVERT_TO_CSV_FORMAT'
    EXPORTING
    i_field_seperator = ';'
    TABLES
    i_tab_sap_data = itab
    CHANGING
    i_tab_converted_data = itab1
    EXCEPTIONS
    conversion_failed = 1
    OTHERS = 2.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
    filename = 'C:\TEMP\test.txt'
    TABLES
    data_tab = itab1
    EXCEPTIONS
    OTHERS = 1.
    Thanks,
    Reward If Helpful.

  • Help reqd to display the FORM without Print method.

    Hi all,
    I did one gate pass form and i want to view the form in my selection screen or output screen(just in monitor) as  a display by giving one Z-code.
    i.e, we can view the form thru Print preview...the same preview, i want to display after i give my parameter in the selection screen.
    For example.ZGPOUT if i enter as a t-code.
    it should ask my Gate Pass number in the Selection screen...if its right then my Form will come out to the display screen. (instead of going by Print method).,
    Pls post ur comment and reply me with examples,if possible.
    thanks & regards
    sankar.

    Hi Sankar,
    Its bit ambigious......but logic is very simple...........
    1. Create a Z.....report
    2. Inside this create your selection parameters
    3. Do your logic for the selection screen(use list box option or F4 help) to ask for the gate pass number.
    4. Call the required form. (For print preveiw assign 'X' to tdpreview of ITCPO)
    5. Finally assign your print program to the tcode which will finally do rest of the coding.
    Thanks,
    Mark

  • AS 2.0 to AS 3.0 coding help!

    im  new to flash and all this, so can someone please translate this code to AS3.0 coding, before i kill myself
    _root.onEnterFrame = function ()
    if (_root.mouseX<50){
    imgBar.prevFrame();
    imgBar.prevFrame();
    if (MovieClip(root).mouseX<550){
    imgBar.nextFrame();
    imgBar.nextFrame();
    I know i have to change _root with MovieClip(root) but after that im just stuck  help please. thy!

    if, when your mouseX is less than 50, you want imgBar to move to its previous frame use:
    imgBar.addEventListener(Event.ENTER_FRAME,onEnterFrame)
    function onEnterFrame()
    if (MovieClip(root).mouseX<50){
    imgBar.prevFrame();
    } else {
    imgBar.nextFrame();

  • ECR/ECO Authorization on system statuses - Coding help requested

    HI PLM Gurus,
    Unfortunately ( or that ,,,Iam not aware of)There is no SAP standard Authorization object to control a user setting a particular system status in ECR/ECO. This means by SAP's standard functionality any user who is authorized  with authorization objects  ECM_REQ and ECM_ORD  in their role  and all activities allowed, can set any statuses in ECR /ECO.
    But typical business requirment in any change management requires the control status wise and so do we have one.
    We knew this can be achieved by a custom authorization object. We have created a manual object  but need help with coding to get the current status of the object for matching the authorization (allowed) values .
    Any help is appreciated.
    Thanks,
    Satya

    Thanks Pranav,
    Just to clarify ,I knew about the exit  and  Iam using the same exit, I was trying to get help on the coding part . Identifying Exit is not a problem .( we have used this exit a number of times for different requirements in ECM, like checking the lab/office field for an object before setting a system status , defaulting a  new version of document  etc)
    Update : Got a parameter ( a dynamic field value)which helped us code very easily
    ,,,,Can share with you .
    For system level authorization checks ,one can use Digital signatures and this might be the reason for not having(SAP not providing) a standard authorization object for "system status check "in Standard SAP ECM Authorizations.
    Thanks a bunch for the response.
    Rgds,
    Satya.

  • Coding Help Needed

    My problem is this...
    On our website, viewers have an option to view anonymously or
    sign in for better functionality.
    If they choose to sign in, I want them to be able to return
    to the page they were just on.
    Is there a simple way to do that in the PHP coding?

    Simple:
    So you have your page that does something:
    Inserts into database or just posts to a specific page and
    point it to
    "redirect.php"
    Now you have a page called redirect.php
    In there you add the code of the page it needs to go to.
    <?php
    header('Location: index.php');
    ?>
    So if you came from index.php then your code in redirect.php
    would read:
    <?php
    header('Location: index.php');
    ?>
    Problem solved.
    "Les_S" <[email protected]> wrote in message
    news:ff2e4f$6fn$[email protected]..
    > That didn't seem to work.
    >
    > Here is what I have working now....
    >
    >
    > if (isset($_POST['username'])) {
    > $loginUsername=$_POST['username'];
    > $password=$_POST['password'];
    > $MM_fldUserAuthorization = "";
    > $MM_redirectLoginSuccess = "
    http://www.mysite.com/success.php";
    <---
    > this
    > line is what I would like to change.
    > $MM_redirectLoginFailed = $_SERVER['HTTP_REFERER'];
    <-- hopefully to
    > something similar to this.
    > $MM_redirecttoReferrer = false;
    >
    > Using the code method from your reply, the page did not
    load at all.
    >
    > Any other ideas?
    >
    > Please help.
    >
    >

  • Coding help please - changing image using links

    Hi there,
    I wonder if anyone could help me? I'm designing a website at
    the moment, but being a traditional print designer, I'm finding it
    quite difficult to get use to the coding at first. What I have is a
    page (which is shown in the link below with what i'm after) with
    six links, some text and a default image which I want the user to
    be able to click on the 'linked text' and change the main image so
    if 1.jpg was the main image, when they click 'cover 2' they get
    2.jpg and so on in the same frame that the main image is kept in.
    I've tried some javascript code I found on another help site
    but it just messes the frames up and only seems to work if the code
    is as one rather than pasted in my pages code?
    Please, please, please can someone help as it's driving me
    mad and the boss is getting closer to the room :-)
    Below is a screenshot of my page and written in red on it is
    the various bits I need to work out with your help.
    [IMG]http://i7.photobucket.com/albums/y254/080780/help.jpg[/IMG]
    http://i7.photobucket.com/albums/y254/080780/help.jpg

    Select a link, and apply a DW Image Swap behavior to swap the
    main image to
    the one desired. Do not use the automatic restore.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Gavin Wood" <[email protected]> wrote in
    message
    news:fhegg8$o4s$[email protected]..
    > Hi there,
    >
    > I wonder if anyone could help me? I'm designing a
    website at the moment,
    > but
    > being a traditional print designer, I'm finding it quite
    difficult to get
    > use
    > to the coding at first. What I have is a page (which is
    shown in the link
    > below
    > with what i'm after) with six links, some text and a
    default image which I
    > want
    > the user to be able to click on the 'linked text' and
    change the main
    > image so
    > if 1.jpg was the main image, when they click 'cover 2'
    they get 2.jpg and
    > so on
    > in the same frame that the main image is kept in.
    >
    > I've tried some javascript code I found on another help
    site but it just
    > messes the frames up and only seems to work if the code
    is as one rather
    > than
    > pasted in my pages code?
    >
    > Please, please, please can someone help as it's driving
    me mad and the
    > boss is
    > getting closer to the room :-)
    >
    > Below is a screenshot of my page and written in red on
    it is the various
    > bits
    > I need to work out with your help.
    >
    >
    [IMG]http://i7.photobucket.com/albums/y254/080780/help.jpg[/IMG]
    > http://i7.photobucket.com/albums/y254/080780/help.jpg
    >
    >
    >

  • Javascript Coding Help: Checkbox

    I am not familiar with coding except to say that I know what the possibilities are. I work for a small business and I need help adding a javascript code to a writeable PDF form we are using in Adobe Acrobat Pro.
    If a check box (Checkbox1) is clicked then I would like this text (PAID IN FULL) to appear in a text box named (Paid In Full1). If the check box is not clicked then the text box remains empty.
    Can someone help write this code for me?
    Thank you for your time and patience.

    You can use something like this as the text field custom calculation script, then:
    event.value = this.getField("Checkbox1").value=="Off" ? "" : "PAID IN FULL";

  • Help reqd on USER EXIT

    Hi all....
    I got a new object in USER EXIT for my current impl project...
    1st,i know that how to creat it in cmod but i desnt know how to do enhancement assignment and writing a code for the below requirement
    my SD consultant req is......
    IN VA01, the end user will able to enter(create std order) only 4 items(POSNR)
    at a time as maximum....(should restrict it) and if while entering the 5th item,it throws an error msg and revert back it.....
    the std program is "MV45AFZZ" ,here the enhancement assignment should be added in,inside the below sub-routine......as include program
    "Form USEREXIT_SAVE_DOCUMENT_PREPARE"...
    Endform..
    Do u people know how to do it.....if anyone have done already...pls help on this by replying with sample codes and ur helps...
    waiting for ur replies
    thanks & regards
    sankar

    Hi,
    These are standard enhancements available for VA01.
    SDAPO001 Activating Sourcing Subitem Quantity Propagation
    SDTRM001 Reschedule schedule lines without a new ATP check
    V45A0001 Determine alternative materials for product selection
    V45A0002 Predefine sold-to party in sales document
    V45A0003 Collector for customer function modulpool MV45A
    V45A0004 Copy packing proposal
    V45E0001 Update the purchase order from the sales order
    V45E0002 Data transfer in procurement elements (PRreq., assembly)
    V45L0001 SD component supplier processing (customer enhancements)
    V45P0001 SD customer function for cross-company code sales
    V45S0001 Update sales document from configuration
    V45S0003 MRP-relevance for incomplete configuration
    V45S0004 Effectivity type in sales order
    V45W0001 SD Service Management: Forward Contract Data to Item
    V46H0001 SD Customer functions for resource-related billing
    V60F0001 SD Billing plan (customer enhancement) diff. to billing plan
    this can be checkit out in 'SMOD' and find out the user exits  like screen, filed, funtionction exits etc under each enhancement which mentioned above.
    Once if you find the user exit under one enhancement let suppose 'V60F0001' go to 'CMOD' and crete one project and click on create button.
    then give the enhance ment name V60F0001 under the 'enhancement assign' componet
    Then bydefault u will get all userexits available under this enhancement select one them a/c to your require ment press on one userexit and it enter the funtion exit and double click on 'INCLUDE' it ask to create press yes then write ur won code 'ACTIVATE' and come back and 'ACTIVATE' and come backe 'ACTIVATE'  and come to initial screen ie 'CMOD' and press 'ACTIVATE' button.
    this is the way how to create user exit.
    There are some exit for checking order
    User exits in the program MV45AFZZ :
    USEREXIT_SAVE_DOCUMENT_PREPARE
    Use this user exit to make certain changes or checks immediately before saving a document. It is the last possibility for changing or checking a document before posting.
    The user exit is carried out at the beginning of the FORM routine BELEG_SICHERN.
    User-Exits in program MV45AFZB :
    USEREXIT_CHECK_VBAK
    This user exit can be used to carry out additional checks (e.g. for completion) in the document header. The system could, for example, check whether certain shipping conditions are allowed for a particular customer group.
    USEREXIT_CHECK_VBAP
    This user exit can be used to carry out additional checks (e.g. for completion) at item level.
    etc.
    Look at User Exits in Sales Docuemnet Processing
    <a href="http://">User Exits in Sales Docuemnet Processing</a>
    <b>some of tips to find user exits  :</b>
    User Exits & Customer Exits :
         User Exits: Executed with the help of user exits (these are subroutines reserved for customers that have been inserted in objects in the SAP namespace) 'hard-coded' at various points within SAP Repository objects.
         Customer Exits :
         1. Menu Exits: Menu exits add items to the pull down menus in standard SAP applications. You can use these menu items to call up your own screens or to trigger entire add-on applications. These special entries have function codes that begin with "+" (a plus sign).
         2. Screen Exits: Screen exits add fields to screens in R/3 applications. SAP creates screen exits by placing special sub screen areas on a standard R/3 screen and calling a customer sub screen from the standard screen’s flow logic.
         it is called by call customer- sub screen
         3.Function Module Exits :Function module exits add functions to R/3 applications. Function module exits play a role in both menu and screen exits. When you add a new menu item to a standard pulldown menu, you use a function module exit to define the actions that should take place once your menu is activated. Function module exits also control the data flow between standard programs and screen exit fields.
         it is called by Call Customer- function
         Go to SMOD and press F4 where you will get the options of screen, menu, function exits.
         Go to SE81 select the module which you want to check and find the       enhancement.
          In IMG (SPRO), search for enhancements in interested area.
         Go to the program or transaction and search for  “CALL CUSTOMER-FUCTION” or  “EXIT_<Progname>_nnn”
         For screen exits go to screen in SE51/SE80 search for-  “CALL CUSTOMER-SUBSCREEN..”
    <b>Reward with points if helpful.</b>
    Regards,
    Vijay

Maybe you are looking for

  • Changes made in iWeb not reflected online

    Hello, I succesfully rehosted my website after mobile me closed and decided to make some changes whilst I was doing so. With the site live again I noticed an incorrect link.  I have fixed it in iWeb and tried to publish the site again.  iWeb tells me

  • Unknown error code (-39)

    So I was DLing a podcast recently, and as it was DLing, my computer froze. Now, when I try to download it, I get this error: "There was a problem downloading 'title'. An unknown error occurred (-39). Please check that the URL is correct and the conne

  • IP: How to enhance/enrich planning-data

    Dear experts, we would like to trigger a parameterized (customizable filters) process based on the mechanisms of the integrated planning. This process shall enrich the existing quantitive planning-figures by its monetary value. The evaluation of the

  • What are these called?

    Hi, I am trying to figure out what this element is?  Since I dont know what its actually called I have to provide a picture for my example. What are these elements called?  I have pointed to them in my image with the red arrows.  Im pretty sure the h

  • Error found when upgrading from11.5.10.2 to R12.1.1 with the DB R 11.2.0.1

    Hi All, I have following the "Upgrade Advisor: E-Business Suite (EBS) Upgrade from 11.5.10.2 to 12.1.3 [ID 269.1]", and select the option 3 Configure --> Preform Upgrade on Test System --> Upgrade Test Environment 12.1.1 --> Perform Upgrade --> Apply