LE_SHIPMENT_BADI : method : At_Save, modify fields

Hi,
We can not change the vtrlk-trmtyp field.
We can use the LE_SHIPMENT_BADI, method is at_save.
Where is fault ?
if CHA_SHIPMENTS_AT_SAVE is initial.
   CHA_SHIPMENTS_AT_SAVE = IM_shipments_AT_SAVE.
   loop at cha_SHIPMENTS_AT_SAVE-new_vtrlk into waa_vtrlk .
     waa_vtrlk-trmtyp = 'Z700'.
     modify CHA_SHIPMENTS_AT_SAVE-new_vtrlk from waa_vtrlk.
   endloop.
endif.
Thanks.

Hi,
Check & Pass the correct indicators in FLAG_TRA_COMPLETE.
A     Shipment data incomplete
B     Changed shipment data complete, incomplete data missing
C     All shipment data complete and available
               No statement on completeness
Check & Pass correct vaue in TRA_SAVE_CALLER
FC     Update of shipment costs
MASS     Mass change for shipment VT06
LREG     Register list
LCOM     Complete list
IDOC     IDoc inbound
TPS     Transportation planning interface
CFP     Freight planning by forwarding agent
IAC0     Tendering (old)
IAC     Planning and tendering via Internet
MOB     Status message via mobile devices
DIA     Shipment dialog
DIA0     Shipment dialog (old)
COLR     Collective processing for shipment
BAPI     BAPI access
APO     APO transportation planning
MOB_RF     Radio frequency in shipment

Similar Messages

  • How to code this : LE_SHIPMENT_BADI : method : At_Save

    Hi Friends:
    I'm working on LE_SHIPMENT_BADI. In the method At_Save, I've written the following code:
    METHOD if_ex_badi_le_shipment~at_save.
    This is just an additional check to ensure the following requirement:
    If the ship-to-party begins with XX, then Shipment type should be 'ZSTO'.
    If the ship-to-party doesn't begins with XX, then Shipment type should be '0001'.
      CONSTANTS : c_zsto  TYPE vttkvb-shtyp VALUE 'ZSTO',  "Constant for shipment type ZSTO
                  c_0001  TYPE vttkvb-shtyp VALUE '0001',  "Constant for shipment type 0001
                  c_xx(2) TYPE c            VALUE 'XX'.    "Constant for the first 2 characters of Ship-to-party
      DATA : v_kunwe TYPE vtrlk-kunwe,
             v_shp   TYPE vttkvb-shtyp,
             v_vttk  TYPE vttkvb.
      FIELD-SYMBOLS : <fs>    TYPE vtrlk.
    This provision is made if the internal table CHA_SHIPMENTS_AT_SAVE
    is initial, which is generally not the case. If such case is observed
    the the below mentioned code can be used.
    *if CHA_SHIPMENTS_AT_SAVE is initial.
    *CHA_SHIPMENTS_AT_SAVE = IM_shipments_AT_SAVE.
    *endif.
      READ TABLE cha_shipments_at_save-new_vtrlk ASSIGNING <fs> WITH KEY kunwe+0(2) = c_xx.
      IF sy-subrc = 0.
        v_shp = c_zsto.
      ELSE.
        v_shp = c_0001.
      ENDIF.
      v_vttk-shtyp = v_shp.
      MODIFY cha_shipments_at_save-new_vttk
             FROM v_vttk TRANSPORTING shtyp
             WHERE shtyp <> v_shp.
    ENDMETHOD
    Now I have to put one more check in it. There is a field LFART in table VTRLK . I want the above coding to work only when LFART = LF, ZLF, LR and ZLR. Please help me in implementing this.
    Suitable points will be Rewarded.
    Regards:

    Hello,
    If you have the values for LFART then simply check loke:
    CHECK ( lfart = 'XX'  or lfart = 'YY').
    and here check for the other condition,
    Regards,
    Sandeep

  • What are the methods to modify SAP standard tables?

    hi
    what are the methods to modify SAP standard tables?

    .APPEND structures AND CUSTOMIZING INCLUDES.
    these are the two methods.. but customizing includes we, as a developers do not use.
    generally we use .APPEND structures to modify standard tables.
    note that we need an access key to modify atandard tables.
    we can create an apend structure and add that structure to the standard table at the end.
    note that .append structures should only be added only at the end.
    that is the reason we use .append structures to modify standard tables.as we should not include a field in the middle and disturb the original order of the standard table fields as it may effect many objects depending on the standard table.
    but Some standard tables for which there is a LONG datatype field can never be modified.
    the reason is the LONG datatype field should always be there at the end and also .APPEND strutures should always be there at the end. there will be a conflict. so, some standard tables can not be appended.

  • Free Good Qty as non modifiable field in the Sales Order Level

    Dear Friends,
    I have successfully done the config change for the Free Goods, But now i want make the free good line item qty as a non modifiable field in the Sales Order Level.
    How can i do this.. Please advice.
    Thank U,
    Uwanthi

    Hi
    This is a standard behaviour in the system
    kindly use the below program and user exitexit
    MV45AFZZ and use "Userexit_filed_modification"
    Regfards
    Damu

  • How to find out the public methods and public fields available

    Hi,
    I have a dll for which to use it, i need to know the methods and the fields available for public use. Is there anyway to find out that information using any tool. I dont have any literature about the dll. Only have that dll.
    Thanks in advance,
    -Madhuri.

    You can find an article about creating the methods on the Microsoft Developement Network call "How to Create 32-bit Import Libraries Without .OBJs or Source"
    However that is only part of the problem.
    Consider if you find that the dll has a function like this:
    InitApplication(char*, int, char, long);
    What do you put in for each of those parameters? The only way I know to do that it to use a debugger and step through the assembler code figuring it out as you go. Alternatively you buy or find a disassembler - C code would probably be easier to figure out.
    I would also seriously suggest finding some different lists/news groups than this one. The topic has nothing to do with java. So you are likely to get better help somewhere that is more specific - like one of the MS lists.

  • Problems modifiing field data

    I am having a problem using SetProperty to modify fields in a multipage pdf file.
    First i use xmpMeta.DumpObject ( DumpCallback, sLogFile );
    to dump the existing data to a terminal window.
    At first run this works fine and i get the existing value set in the Category field of the "Categories" Panel.
    Next i use xmpMeta.SetProperty ( kXMP_NS_Photoshop, "Category", "2" );
    to change the value of a field and then call xmpFile.PutXMP ( xmpMeta ); to save the file.
    When i open the file again in my test application the data is empty when doing the dump to the terminal window.
    If I open it in acrobat, however, the data is there. I am some how corrrupting the data when wrtiting it. Can anyone help quide me as to what I may be doing wrong?
    here is a sample of my code:
    static void EditProperties ( const char * fileName )
    bool ok;
    SXMPMeta xmpMeta;
    SXMPFiles xmpFile;
    XMP_FileFormat format;
    XMP_OptionBits openFlags, handlerFlags;
    XMP_PacketInfo xmpPacket;
    xmpFile.OpenFile ( fileName, kXMP_UnknownFile, kXMPFiles_OpenForUpdate );
    ok = xmpFile.GetFileInfo ( 0, &openFlags, &format, &handlerFlags );
    if ( ! ok ) return;
    ok = xmpFile.GetXMP ( &xmpMeta, 0, &xmpPacket );
    if ( ! ok ) return;
    // Remove extaneous properties to make the dump smaller.
    SXMPUtils::RemoveProperties ( &xmpMeta, "http://ns.adobe.com/camera-raw-settings/1.0/", 0, true );
    SXMPUtils::RemoveProperties ( &xmpMeta, "http://ns.adobe.com/tiff/1.0/", 0, true );
    SXMPUtils::RemoveProperties ( &xmpMeta, "http://ns.adobe.com/exif/1.0/", 0, true );
    SXMPUtils::RemoveProperties ( &xmpMeta, "http://ns.adobe.com/exif/1.0/aux/", 0, true );
    SXMPUtils::RemoveProperties ( &xmpMeta, "http://ns.adobe.com/pdf/1.3/", 0, true );
    SXMPUtils::RemoveProperties ( &xmpMeta, "http://ns.adobe.com/xap/1.0/t/pg/", 0, true );
    SXMPUtils::RemoveProperties ( &xmpMeta, kXMP_NS_XMP, "Thumbnails", true );
    SXMPUtils::RemoveProperties ( &xmpMeta, "http://purl.org/dc/elements/1.1/", 0, true );
    SXMPUtils::RemoveProperties ( &xmpMeta, "http://ns.adobe.com/xap/1.0/", 0, true );
    SXMPUtils::RemoveProperties ( &xmpMeta, "http://ns.adobe.com/xap/1.0/mm/", 0, true );
    SXMPUtils::RemoveProperties ( &xmpMeta, "http://ns.adobe.com/pdfx/1.3/", 0, true );
    //dump the data
    fprintf ( sLogFile, "\n:::::::::: Initial XMP from %s ::::::::::\n\n", fileName );
    xmpMeta.DumpObject ( DumpCallback, sLogFile );
    //change the properties
    xmpMeta.SetProperty ( kXMP_NS_Photoshop, "Category", "2" );
    //dump it again
    fprintf ( sLogFile, "\n\n:::::::::: Modified XMP from %s ::::::::::\n\n", fileName );
    xmpMeta.DumpObject ( DumpCallback, sLogFile );
    xmpFile.PutXMP ( xmpMeta );
    xmpFile.CloseFile();

    Are any of you going to the Adobe Developer Conference scheduled to be held for plugin providers at San Jose on Nov 7/8?

  • When does Date Modified field update in cmc  XI3.1

    In CMC > users and groups
    there is a Date Modified field, When does it update? Is there any document describe that?
    For example
    I have test that when I edit a user's properties the Date Modified fields update.
    When a user log onto CMC, some time the logon times is update as Date Modified
    some times is not? Why does this happen?

    Hello,
      If you update the the properties of the group or the user then the last modified date will change to the current date/time.  What kind of user do you have, Enterprise, Windows NT, Windows Active Directory or LDAP.  Sometimes a user doesn't exist until they actually log on to the CMS then their Last Modified date would change.  Have you consistantly seen this happen with a specific user, if so can you reproduce this on demand.
    Jorge

  • Modify fields in ME21n

    Hello All,
    I have a requirement where in I need to modify fields of me21n based on a condition:
    if the user enters a value in the field: MEPO1211-KONNR (Contract no./Number of principal purchase agreement) , then all the conditions (From KOMV table) fileds & all the Pricing terms should be disabled for change/input i.e. should be in display mode.
    I tried to search for an exit for this but could not find an appropriate one to modify screen fields however, the alternae to this requirement is :
    If the user enters a value in the field: MEPO1211-KONNR (Contract no./Number of principal purchase agreement) , then on entry of the conditions(TABLE KOMV) fields and pricing terms user should get an error message so that he cannot proceed.
    Please suggest me a solution for any of the above two requirements.
    Any help on this would be highly appreciated.
    BR
    Ankur

    Hi,
    Why dont you check with the enhancement project LO020 in CMOD.
    Hope this would help you.
    Or use the class CL_EXITHANDLER to find out the BADI used in ME21N for your requirement.
    Regards,
    Ranjith Nambiar

  • Erec Modify Fields in Interfaces

    Hi,
    I am running e-recruitment version 3.0 and I want to make the fields Address and Telephone number mandatory in the communications tab when going through the application wizard. However these fields do not appear in the customizing settings under the node Modify Fields in Interfaces.
    Has anyone been able to add additional pages into this customizing setting?
    Thanks in advance for your help.
    Thanks
    Tom

    Hi,
    Thanks for your help again. I've looked in SE80 and the field names appear to be dynamically generated.
    <hrrcf:formLayoutInputField id       = "street1_<%= lv_index %>"
    So I tried to use the field name street1_1 for the street name of the first address subtype. However this has no effect when I log in and view this BSP.
    Have you managed to get these fields to be mandatory before? Am I missing any other steps?
    Thanks a lot for your help!!
    Tom

  • 7.6.2 stutters on some known good songs then Date Modified field is updated

    Hi All,
    I've just noticed some very peculiar behavior in my 7.6.2 iTunes library on my Leopard MacBook. While clicking around on some songs in my library (~51,000 songs) directly, iTunes will hesitate (ie stutter) at the beginning of the song and then resume playing it. This does not occur on every song in my library though, and appears to repeat itself say on 80% of my songs, now. Occurs in playlists, as well.
    I remembered that by adding album art to an album (a manual cut and paste job) to a selection of files while one is playing...and when that particular file gets updated with the bitmap...that I would hear a similar stutter.
    So, I opened a Finder window to view an actual file before I clicked it in iTunes. Sure enough, on a stuttering song, the Date Modified field in iTunes and date/time stamp of the file in Finder get updated with the Current Day time. I have no idea what would cause that file to be changed ! Plus, this does not happen with every song.
    I do have numerous Smart Playlists and several AppleScripts, but when this occurs, I'm not actively running any of these.
    Anyone have any ideas on this...and I thank you for your help and ideas....
    -ES

    itunes 7.6.2
    I had the same annoying problem: iTunes would hesitate at the beginning of a song and then resume playing it. This affected ALL tracks in my 17,000+ library. No quarter.
    My fix was to uncheck crossfade playback in preferences. I have never used sound check nor sound enhancer so those boxes remained unchecked.
    Worked for me and ALL tracks play now with no stutter.
    Hope this helps some.

  • "Date Created" or "Date Modified" field for Contacts?

    Is there any way to view -- or sort by -- a "Date Created" or "Date Modified" field in Contacts?
    Or, at the very least, view a single records Date Created/Modified?
    In particular, when exporting the BB's Contacts to an ASCII, I'd love that field to appear.
    Thanks,
    MooShoo

    When I open a search window (command "F") and then press Command "J" or go to "Show View Options" under the "View Menu" it just brings up a window that says: "There are no view options for the "Searching This Mac" window"
    I am using OS 10.5.8 on a 1st Generation MacBook Pro. I have successfully changed view options in other folder windows, but can't in the search window. I have just started trying an Application called "Find Any File" (http://apps.tempel.org/FindAnyFile/) and it looks like it may provide what I want but is MUCH SLOWER than spotlight.

  • E-Recruiting. Issue with "Modify Fields in Interfaces" (VRCFPHTMLB_FLI_C)

    Hi!
    When I modify fields in interfaces in the - spro, example:
    SAP/HRSCP_REQ_MNT/JOBINFO.BSP                      JOBTITLE                Invisible
    nothing change in the page
    (htsap/bc/bsp/sap/hrrcf_start_int?sap-client=200&sap-language=RU&rcfSpId=0005)
    when i create requisition in the bookmark "General Job Information".
    Maybe i forget to change some parameters?

    Well,
    do not modify those pages at all. After SP you will lose your modifications.
    Well have you defined a context which you use for flexibilization?
    If no, do it!.
    Then you need to add the following parameter to URL &rcfContext=myId
    regards

  • Dynamically creating/modifying fields

    Hi there,
    I'm having difficulty dynamically adding or modifying fields in a report using XML.
    My sample report selects all the fields in a table (select * from TableName;), where some of the fields are mandantory for the report. The other fields are optional and selected by a user at runtime.
    So, a user selects the optional fields and passes them in as parameters. I check the parameters in the "After Parameter Form" trigger and, if they're set, I try to add or modify a field in the report using some XML, such as:
    <report name="Test1" author="Mark Kennedy" DTDVersion="1.0">
    <layout>
    <section name="main">
    <field name="F_UDC1" source="LOCATION">
    </field>
    </section>
    </layout>
    </report>
    The above XML tries to dynamically set the source of the field to LOCATION, which is one of the fields in the database table.
    If F_UDC1 exists in the report, I get an error message: "REP-0002: Unable to retrieve a string from the Report Builder message file." If F_UDC1 doesn't exist, nothing happens. No new field is created or shows up in the report.
    Any ideas on what I'm doing wrong? Thanks!
    Mark Kennedy
    [email protected]

    Scott,
    You should be able to do this with a report. You can make columns in a report into text boxes. I'm not sure exactly what I would do, but if you do something like
    select null c1, null c2, null c3, null c4 from
    user_objects where rownum <= :P123_NUM_ROWS
    you should get for null columns. Now go edit each of those columns and make them text fields.
    You can then submit the page and use the htmldb api's to get the values of those text boxes.
    You might also use a collection . . . I'm just thinking as I type, but this should give you some ideas.
    Anton

  • Modify field selection for field "Reservation/Purc.req"  RESBD-AUDISP

    I have alredy modify field in network using OPUA (field selection network header) and set the field "Reservation/Purc.req" CAUFVD-AUDISP make it to only display. But I need to set also the field "Reservation/Purc.req"  RESBD-AUDISP to make it display. How can I do that?

    Hi,
    Business functionality is switched off.
    Check this link:
    <link removed by moderator>
    and search OPS_PS_CI_1 under ENTERPRISE_BUSINESS_FUNCTIONS in SFW5 TCODE and check whether it is switched on or off.
    Regards,
    Harsh.
    Edited by: Virendra Pal on Oct 19, 2010 2:03 PM

  • How To Save Modified Fields After query From The Database

    I Have This Customer Information Form That's Sort of an Ordering Forms , I Made It By LiveCycle v9.0
    And I Want To be able to search for Specific Record and Modify it and Save It Again to The DataBase
    I believe That We All Saw The (( Data Connected Forms Presentation )) For Pual Guerette
    At One Part Of The Presentation (Minute 0:26:00 specifically) When He Try To Search A Specific Record In the Database
    And He Got all this annoying Messages Then The Record what He looking Shows up ; He Said That We No Longer able to Modify The Record After We Doing the Search
    My First Question Is Why ???
    Is there anyway After I got that Specific Record I Want from the Database I Can make my modification on it and update it Back in the DB.
    OR i Have to Browse the whole DB looking for it Specially that I got this (ID Auto Increasment Number field Issue) Which leads me to ;
    My Second Qustion;
    Why I Can't just connect ''The Form Order Number'' to an Auto Increasment Number field in the DB
    Obviously i can't, So Can I do Anything to achieve this goal ??
    I Believe that we can Find some scripting to make that Happen 
    I Will Be So Grateful If There Is Any Helpful Answer
    FYI: I'm Not Java Expert So If There Is any Coding That's Can be Helpful Please POST ALL OF IT if you can ,,,,

    Hi,
    The information there is excellent and I would strongly recommend it.
    I don't have any public database examples and I am not inclined to spend time preparing an example if you are not prepared to read up on the methods.
    Stefan's site is the only link I have for databases.
    Good luck,
    Niall

Maybe you are looking for

  • I am getting error 1015 while trying to restore

    while i m trying to restore iphone ...i m getting error 1015 and it is not working now..any body can help?

  • Variable screen not seen when running BEx Analyzer

    Hi Gurus, when i execute my query in BEx Analyzer for some reason i dont see my variable screen and it gives me a message saying variable values not entered. If i run the same report in RSRT i do get my variable screen. It was all find till yesterday

  • Can I install Mac OS X 10.6 Snow Leopard on my imac that now has 10.4.11?

    Can't initialize new ipod touch with the old itunes...can't install new itunes w/10.5.  Can I go directly do 10.6 snow leopard?

  • Tab Navigation List - Current Tab

    I'm using a tab navigation list to hide/show regions on a page. When the page displays, all the tabs are showing the same way and there is no way to know what tab is current. Is there a way to change the display of tab if it is current?

  • Failure to Roam.  MacPro stays on same AP

    I was doing some testing on another discussion question when I found that my MacBook Pro running 10.9.5 will remain attached to the same AP (access point) no matter how strong the signal or how it changes. The information below was gathered while mov