How can I search the attribute including type and length of the field in the SD table or form such as sales executive table through debug?

Some users show that  the sales docment external name is not printed completely in the form of delivery form printing, so I want to find how much length of the field is there through debugging. I am very expected to gain some suggestion from you.

for exploding the bom if you know header material use
  CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
    EXPORTING
      CAPID                 = 'PP01'
      DATUV                 = SY-DATUM
      MEHRS                 = 'X'
      MTNRV                 = P_MATNR
      WERKS                 = P_WERKS
    TABLES
      STB                   = I_BOM
    EXCEPTIONS
      ALT_NOT_FOUND         = 1
      CALL_INVALID          = 2
      MATERIAL_NOT_FOUND    = 3
      MISSING_AUTHORIZATION = 4
      NO_BOM_FOUND          = 5
      NO_PLANT_DATA         = 6
      NO_SUITABLE_BOM_FOUND = 7
      CONVERSION_ERROR      = 8
      OTHERS                = 9.
now check PLPO & PLKO table for routing or AFVC and AFVV for routing.
if production order created you have to check in afvc and afvv else check in plpo and plko.
for checking with plpo and plko you have to check MAPL table.
for bom and material link
MAST,STPO,STKO.
stlnr is the common field
regards
shiba dutta

Similar Messages

  • How to use same Data Type and Length for two fields

    How to use same data type and length for two fields when using 'FOR ALL ENTRIES IN' in a select statement? For instance the select queries are :
    SELECT bukrs gjahr belnr lifnr budat bldat zlspr dmbtr waers shkzg
    FROM bsik
    INTO TABLE it_bsik
    WHERE bukrs = p_bukrs
    AND lifnr IN s_lifnr.
    IF it_bsik IS NOT INITIAL.
    SELECT belnr gjahr awkey awtyp
    FROM bkpf
    INTO TABLE it_bkpf
    FOR ALL ENTRIES IN it_bsik
    WHERE belnr = it_bsik-belnr
    AND gjahr = it_bsik-gjahr.
    IF it_bkpf IS NOT INITIAL.
    SELECT belnr gjahr lifnr xblnr
    FROM rbkp
    INTO TABLE it_rbkp
    FOR ALL ENTRIES IN it_bkpf
    WHERE belnr = it_bkpf-awkey+0(10)
    AND gjahr = it_bkpf-awkey+10(4).
    ENDIF.
    ENDIF.
    Here it gives an error in the 3rd select query that 'When you use the addition "FOR ALL ENTRIES IN itab", the fields "GJAHR" and "IT_BKPF2-AWKEY+10(4)" must have the same type and the same length.'
    Kindly clarify.

    Hi Saurabh,
    Please see the example code that I have developed for you. It will help you solve the problem.
    REPORT ZTEST_3 .
    tables : BKPF.
    data : begin of it_bkpf occurs 1,
             belnr type RE_BELNR,
             awkey type awkey,
             awtyp type awtyp,
             gjahr type GJAHR,
           end of it_bkpf.
    data : begin of it_bkpf1 occurs 1,
             belnr type RE_BELNR,
             awkey type gjahr,              " change the data type
             awtyp type awtyp,
             gjahr type GJAHR,
           end of it_bkpf1.
    data : begin of it_rbkp occurs 1,
             belnr type BELNR_D,
             gjahr type gjahr,
             lifnr type LIFRE,
             xblnr type XBLNR,
           end of it_rbkp.
    select belnr
           awkey
           awtyp
           gjahr
           from bkpf
           into table it_bkpf
           where BUKRS = 'TELH'.
    loop at it_bkpf.
    it_bkpf1-belnr = it_bkpf-belnr.
    it_bkpf1-awkey = it_bkpf-awkey+10(4).           "Here only append the required length.
    it_bkpf1-awtyp = it_bkpf-awtyp.
    it_bkpf1-gjahr = it_bkpf-gjahr.
    append it_bkpf1.
    clear it_bkpf1.
    endloop.
    select  belnr
            gjahr
            lifnr
            xblnr
            from RBKP
            into table it_rbkp
            for all entries in it_bkpf1
            where belnr = it_bkpf1-belnr
    This is just an example. Change the fields according to your requirement.
    Regards
    Abhii
    Edited by: Abhii on Mar 9, 2011 9:08 AM

  • How do I exclude directories from Finder search results? I'm trying to find the biggest FILES on my computer and it keeps showing me "Macintosh HD" as the biggest, how can I search for files of type "NOT folder/directory"?

    Basically I've lost 10GB of free space over the last few weeks so my plan was to search for files modified in the last 2 weeks in order to figure out which ones are big and where that space went.
    So I open finder, go to "File > Find", and enter a search:
    Modified > In the last 2 weeks
    All fine so far.
    Problem is, it's showing whole directories as results. Which essentially means that when I order the list by size, Macintosh HD is at the top, followed by "Users", then "Applications", then one of my bigger movie files, then "Library", etc.
    How can I do a search which will ignore folders? I want individual files. Knowing that Macintosh HD is the biggest item on my computer and was modified in the last 2 weeks is utterly useless to me.
    Older versions of Finder in OS 9 had a feature where you could search for "files, whose type "IS NOT" folder", but OS X doesn't seem to have such a feature.
    Can anyone help?

    How much free space is on the HD, where has all the space gone?
    OmniDiskSweeper is likely the easiest/best, and is now free...
    http://www.omnigroup.com/applications/omnidisksweeper/download/

  • How can I search for files in System and Library folders

    This arrose when I tried to find Archive Utility.app. Neither a Finder search or Spotlight found it, apparently because it is in Hard Drive/System/Library/CoreServices and the System folder is not searched. I've had similar problems when trying to find things in Library. How can I search these folders?

    You can enable the Finder to include System files in its search
    In a Finder finder window select Kind then Other… locate System files in the list and click the checkbox.

  • How can I search sent email by date and see who it is to?

    How do I search on date in mail and see who it is to?

    Hello,
    Welcome to Adobe Forums.
    I am not sure about the 3rd Party Application but if you can create a .mp4 video of your IPAD simulation then you can insert that video in Adobe Captivate 6 as a Slide Video.
    Thanks,
    Vikram

  • How can my Iphone 4s to be unlocked and uses local sim here in the Philippines?

    How can my Iphone 4S be unlocked and uses local sim here in the Philippines?

        Hey there ed2375,
    I hope that your son is enjoying his time in the Phillipines. I'm out hear bearing the cold weather in Chicago, so next time you speak to your son please tell him to send some warm weather our way.
    Is your son a current Verizon Wireless customer and is that iPhone 4s currently activated on his account? If so then we can assist in unlocking his sim for internation use. You would have to reach out to our Global Support team for assistance. They can be reached at 908-559-4899.
    NicholasB_VZW
    Follow us on Twitter @VZWSupport

  • How can I repair a screen that pixelates and goes white randomly without replacing the whole LCD ?

    I bought a unibody Macbook Pro 13,3" in 2009 (refurbished), so it is out of guarantee.
    Since about two weeks, my screen randomly freezes on image, pixelates
    and goes white. Like this. To correct the problem, I have to adjust the angle
    of my screen, or press on the corner of the cover and it returns to normal.
    But not for long.
    I removed the bottom cover to remove all the dust in the hardware, the fan, the circuits
    and what is related with the screen system. I verified the cables, the inverter, it was
    in a really good condition. Note that I never dropped it or spilled liquid on or near my
    laptop, I am a real maniac.
    I talked to an Apple Genius here in Montreal, I explained it was not software
    or graphics-related since I tried my computer on an external screen (which
    worked fine even when the screen freezed). The only solution they found in
    the Apple Store was to replace the entire LCD, at full price.
    I then visited my local repair shop and the man did the same thing as me,
    watching the components, connections, circuitry and when the problem
    happened, he was puzzled.
    I'm aware this problem is more and more often among Macbook users, and
    I didn't find any solution elsewhere on Internet, so please, if anybody finds
    out the origin of  the problem, answer this thread and you'll help us all !
    Thank you.

    I would think that the Apple store Genius' diagnosis is correct.  What you might consider is purchasing the display and installing it your self and thereby saving some money for a Molson or two.  There are places on the web where you can find detailed instructions such as iFixit.  If that is out of your realm, then bite the bullet and have the Genius do it for you (then you do get a 90 day warranty).
    Ciao.

  • How can I make what a user types in text entry box go to the lms?

    Hi,
    I have a couple text entry boxes for non-scored short answer responseses---more of a reflective exercise than anything else.
    However, I'd like the text the learner types to be recorded by the LMS.
    How do I make that happen if it is not an actual assessment?
    thanks

    Each TEB gets automatically an associated variable with a generic name that is the same as the TEB (I always recommend choosing a more appropriate name). Lookin the General Accordion, you'll see the Variable field.
    Do you want more explanation about variables?
    http://blog.lilybiri.com/curious-about-variables-in-captivate-4-5
    http://blog.lilybiri.com/unleash-the-power-of-variables-in-captivate-5
    Those are old posts, but whereas some system variables have changed names, the principles of the posts are still valid.
    Lilybiri

  • How can i select view attribute in a method

    hi how can i select view attribute in method and pass that attribute to procedure
        public void DeleteAgr(Integer agrid) {
                     ViewObject svo = this.findViewObject("AGR");
                     //select current view id from agr and link id with agrid          
                    callPerformSdmsLogon("SMS_FORM_TO_ADf.delete_agr(?)", new Object[] { agrid });
    }Edited by: Tshifhiwa on 2012/06/30 1:01 PM
    Edited by: Tshifhiwa on 2012/06/30 1:22 PM
    Edited by: Tshifhiwa on 2012/06/30 1:24 PM

    hi i use your sample but now am geting this errror (oracle.jbo.JboException) JBO-29000: Unexpected exception caught: java.lang.NullPointerException, msg=null
    ----- Level 1: Detail 0 -----
    (java.lang.NullPointerException) null check the code below
                              public String getCurrentagrid(String currentagrId) {
                            if (currentagrId != null && currentagrId.length() > 0) {
                                ViewObjectImpl agrVO =
                                    this.getAGR1();
                                if (agrVO != null) {
                                    Key key = new Key(new Object[] { currentagrId });
                                    //Searching for the row with key
                                    //getRow(key) will search in the cache which contain atmost
                                    //2000 records Becoz the MaxFetchSize of EmpVO is 2000
                                    AGRRow agrRow =
                                        (AGRRow)agrVO.getRow(key);
                                    //if the record with key is not present in the cache
                                    if (agrRow == null) {
                                        //Searching for the row with key in the DataBase
                                        //findByKey() searches in DB
                                        Row[] agrRows = agrVO.findByKey(key, 1);
                                        if (agrRows != null && agrRows.length != 0) {
                                            //agrRows = (AGRRow)agrRows[0];
                                    if (agrRow  != null) {
                                        //currentagrId = (String)agrRow.getAttribute("id");
                                        //agrVO.executeQuery();
                                        //agrRow = agrVO.first();
                                        callPerformSdmsLogon("SMS_FORM_TO_ADf.delete_agr(?)", new  Object[] { currentagrId });
                            return currentagrId ;
                        }Edited by: Tshifhiwa on 2012/07/01 10:51 AM
    Edited by: Tshifhiwa on 2012/07/01 11:38 AM

  • Cant update apps. asks for password for another account i had on a dell notebook. either i forgot the pass word or its not taking it. i can download apps,music with present mac note book but not apps. how can i update apps on my mac and iphone 4?

    cant update apps on my mac or iphone4. asks for password for another account i had on a dell notebook. either i forgot the pass word or its not taking it  . i can download apps and music.  how can i update apps on my mac and iphone 4?

    I had the same problem today and was able to resolve it without having to do a restore or reset. The problem had something to do with my mail accounts. The upgrade reset my mail settings, switching both my gmail and my .mac mail to "archive all mail". I went into the General Settings, disabled that setting, and resynced the phone. The "other" storage allottment dropped back down to less than a gig.
    Before you restore or reset, I would try that first.

  • I've recently purchased a macbook but my iphone 4 is synced with another computer. How can I sync with my new computer and keep my information?

    I've recently purchased a macbook but my iphone 4 is synced with another computer. How can I sync with my new computer and keep my information?

    Sync the iTunes content from the iPhone to the new computer.
    iOS: How to transfer or sync content to your computer
    And... launch iTunes on the new computer. From the menu bar click Store / Authorize This Computer.

  • HT201260 my mac mini build is 11G56 and mac osx is 10.7.5 how can i install latest mac 10.8 and above

    my mac mini build is 11G56 and mac osx is 10.7.5 how can i install latest mac 10.8 and above

    Simply purchase Mountain Lion from the App Store and it will begin installation after the download is complete. Note that it's a large download, about 4.5GB, so you should have a good Internet connection..
    However... if I were you, I would just wait another month or so until Apple releases Mavericks - the 'latest' announced version of OS X -> http://www.apple.com/osx/preview/.
    No need to pay for two upgrades in a months (or so) time...
    Clinton

  • "Is it possible to hide/remove/change the server name/type and

    Is it possible to change the server name/type and version number being sent in the http response header by iPlanet Web server so a hacker can't see what server and version I'm running? If yes, what is the procedure to do it?

    Hi,
    I have tried the ServerString none entry in magnus.conf but still it is showing the Server information in the header if you use telnet . Is there any other way to hide or to mask this information.
    Thanks,
    Ramki

  • How can i buy it i already bought and it show 30 day limit

    how can i buy it i already bought and it show 30 day limit

    Is the ID that you are using on the forums your Adobe ID? We checked an account using that ID and did not see any orders in that list.
    Feel free to reach out to Customer Care Contact Customer Care to get your issue sorted. Let us know if you need further assistance.
    Thanks,
    Preran

  • How can i add custom attributes to a new Class Object using the API ?

    Hello everyone,
    Here is my problem. I just created a subclass of Document using the API (not XML), by creating a ClassObjectDefinition and a ClassObject. Here is the code :
    // doc is an instance of Document
    ClassObject co = doc.getClassObject();
    ClassObjectDefinition cod = new ClassObjectDefinition(ifsSession);
    cod.setSuperclass(co);
    cod.setSuperclassName(co.getName());
    cod.setName("MYDocument");
    ClassObject c = (ClassObject)ifsSession.createSchemaObject(cod);
    Everything seems to be OK since i can see the new class when i use ifsmgr. But my question is : how can i add custom attributes to this new class ? Here is what i tried :
    AttributeDefinition value = new AttributeDefinition(ifsSession);
    value.setAttribute("FOO", AttributeValue.newAttributeValue("bar"));
    c.addAttribute(value);
    But i got the following error message :
    oracle.ifs.common.IfsException: IFS-30002: Unable to create new LibraryObject
    java.sql.SQLException: ORA-01400: impossible d'insirer NULL dans ("IFSSYS"."ODM_ATTRIBUTE"."DATATYPE")
    oracle.ifs.server.S_LibraryObjectData oracle.ifs.beans.LibrarySession.DMNewSchemaObject(oracle.ifs.server.S_LibraryObjectDefinition)
    oracle.ifs.beans.SchemaObject oracle.ifs.beans.LibrarySession.NewSchemaObject(oracle.ifs.beans.SchemaObjectDefinition)
    oracle.ifs.beans.SchemaObject oracle.ifs.beans.LibrarySession.createSchemaObject(oracle.ifs.beans.SchemaObjectDefinition)
    void fr.sword.ifs.GestionDocument.IFSDocument.createDocument(java.lang.String)
    void fr.sword.ifs.GestionDocument.IFSDocument.main(java.lang.String[])
    So, what am i doing wrong ?
    More generally, are we restricted in the types of the attributes ? (for example, would it be possible to add an attribute that would be an inputStream ? Or an object that i have already created ?).
    Any help would be appreciated. Thanks in advance.
    Guillaume
    PS : i'm using Oracle iFS 1.1.9 on NT4 SP6 and Oracle 8.1.7
    null

    Hi Guillaume,
    you're welcome. Don't know exactly, but assume that ATTRIBUTEDATATYPE_UNKNOWN
    is used to check for erronous cases only
    and it shouldn't be used otherwise.
    Creating your own objects could be simply done via
    ClassObject ifsClassObject;
    DocumentDefinition ifsDocDef = new DocumentDefinition(ifsSession);
    // get class object for my very own document
    ifsClassObject = ClassObject.getClassObjectFromLabel(ifsSession, "MYDOCUMENT");
    // set the class for the document i'd like to create
    ifsDocDef.setClassObject(ifsClassObject);
    // set attributes and content for the document...
    ifsDocDef.setAttribute("MYFOO_ATTRIBUTE",....);
    ifsDocDef.setContent("This is the content of my document");
    // create the document...
    PublicObject doc = ifsSession.createPublicObject(ifsDocDef);
    null

Maybe you are looking for

  • Flash Video Cue Points don't work

    I used the template sample from Adobe named :Flash video template: Showcase website for personal video...I followed all the steps sugested. I used Flash Video Encoder, created the cue points, worte down the location of those cue points, which I wrote

  • I just downloaded the latest version of itunes for Windows and now itunes crashes every time i launch it

    I just downloaded the latest version of iTunes for Windows and now iTunes crashes everytime I launch it.  I have tried re-downloading and selecting Repair with no luck.  Any suggestions? thanks

  • Looking for a laser multi-function unit with duplexing

    I had bought a Canon MF4350d for my MacPro with Snow Leopard but having trouble scanning and would like to purchase an alternate device. The features I'm looking for are scanner with sheet feeder, duplex (2-sided) laser printing, fax, and copier (als

  • Help with SYSDATE in SQL query

    Hi all, I'm trying to select some data from table base on SYSDATE. The below query does not return any data. My query is: select count(TICKET_ID) "ECEMEA" from QTMT_TICKETS where STATUS_ID=1 and TEAM_ID=3 and RECEIVED_DATE=sysdate Could you please le

  • Creating placeholder boxes for images?

    I'm trying to work on a newsletter idea for someone, but I'm running into a small, but big issue with Pages. In InDesign, I can create an image box, size it, then place the image later. Have I missed something, or does Pages lack this capability? I'm