Field LTAP-NLQNR in transaction LT03

Hello,
I'm trying to call transaction LT03 in such a way that the TO created is automatically confirmed.
The manual process is:
          T              LT03     
SAPML03T                0151        X          
                                                BDC_CURSOR         VBLKK-VBELN
                                                BDC_OKCODE         /00
                                                LTAK-LGNUM           <lgnum>
                                                VBLKK-VBELN         <vbeln>
                                                RL03T-ALAKT           X
SAPML03T                0105         X          
                                                BDC_CURSOR          T334T-LGTY0
                                                BDC_OKCODE          =TAH2
                                                T334T-LGTY0             ***
SAPML03T                0102          X           
                                                BDC_CURSOR          LTAP-VLQNR
                                                BDC_OKCODE          /00
                                                RL03T-ANFME          <lqua-verme>
                                                LTAP-ALTME            <lqua-meins>
                                                RL03T-SQUIT             X
                                                LTAP-WDATU            sy-datum
                                                LTAP-VLENR             <lqua-lenum>
                                                LTAP-VLQNR      <lqua-lqnum>
                                                LTAP-NLENR             <lqua-lenum>
                                                LTAP-NLQNR             ¿?
SAPML03T               0105         X          
                                                BDC_CURSOR          T334T-LGTY0
                                                BDC_OKCODE          =BU
                                                T334T-LGTY0             ***
The problem is that when I push enter after populating:
LTAP-VLENR, LTAP-VLQNR and LTAP-NLENR
the transaction calculates
LTAP-NLQNR
by itself. I need to provide that number to be able to run my report without it stopping and waiting for the user to press enter.
I guess there is some FM implied, but I haven't managed to find it so far...
How can I find that datum?
Thanks++ 

Well, it's L_TO_PREPARE_ITEM_INT.
I've been searching the forum  and I've found a hint:
<i>you need to have following
I_LTAK = LTAK
I_LTAP = LTAP
I_MGEF = MGEF
I_MLVS = MLVS
I_RL03A = RL03A
I_T333 = T333
I_T334T = T334T
I_T340D = T340D
</i>
<b>I guess this means:
DATA: i_ltap type ltap, and so on</b>
<i>1) You will get SU details from LEIN table for SU(LENUM), using the same u can
fetch data from LQUA with condition WHERE LGNUM = I_LEIN-LGNUM
AND LGTYP = I_LEIN-LGTYP
AND LGPLA = I_LEIN-LGPLA
AND LENUM = I_LEIN-LENUM.</i>
<b>What is SU?</b>
<i>2) Fil LTAk with I_LQUA-LGNUM TO LTAK-LGNUM,
'999' TO LTAK-BWLVS,.</i>
<b>Which line of LTAK should I choose to copy those to? The one with the same VBELN?</b>
<i>3) Copy the LQUA details to LTAP</i>
<b>Same problem. Copy where?</b>
<i>4) Fill MVS with below code :
MOVE: 'MLVS' TO MTCOM-KENNG,
'MMSTA' TO MTCOM-T141_FELD,
I_LQUA-MATNR TO MTCOM-MATNR,
V_WERKS TO MTCOM-WERKS, " Plant user assigned
i_lein-LGNUM TO MTCOM-LGNUM,</i> <b>Guess LQUA-LGNUM would do...</b>
<i>SY-LANGU TO MTCOM-SPRAS.
CALL FUNCTION 'MATERIAL_READ'
EXPORTING
SCHLUESSEL = MTCOM
IMPORTING
MATDATEN = MLVS
RETURN = MTCOR
EXCEPTIONS
MATERIAL_NOT_FOUND = 1.
5) Data for MGEF:
Select region code from T300
SELECT SINGLE REGKZ FROM T300 INTO T300-REGKZ
WHERE LGNUM = i_lein-LGNUM.
Select single * statement is required here as whole structure is
passed to function module
SELECT SINGLE * FROM MGEF INTO MGEF
WHERE STOFF = MLVS-STOFF AND REGKZ = T300-REGKZ.
6) * passed to function module
SELECT SINGLE * FROM T333 WHERE LGNUM = i_lein-LGNUM
AND BWLVS = 999.
*Select single * statement is required here as whole structure is passed
*to function module
SELECT SINGLE * FROM T340D WHERE LGNUM = i_lein-LGNUM.
This FM generates TO and also a proposed bin (NLTYP)</i>
<b>Please, give me a hand.
Sorry to ask silly things, but I've been working with this just for some weeks so far.</b>

Similar Messages

  • Config settings to gray out "Reqted Qty" field while creating TO via LT03

    Hi Experts,
           Could anyone please me in this. I would like to gray out "Requested Quantity" field when creating TO via LT03 transaction. Can anyone please let me know where the config setting needs to be maintained inorder to gray out the "Requested Quantity" in LT03 transaction.
    Thanks for your help.
    Regards,
    Nagarjun

    Hi,
    no there is not such a functionality.
    From a field settings perspective you may work at account group level, =>OBD2 or OVT0
    and/or at transaction type level => OB20
    With OB20 you can distinguish between creation and change.
    You may also react per authorisation. See F_KNA1_EAN. In that case you may gray out fields individually.
    BR
    Alain

  • Control "Shelf Life" date: Transaction LT03

    Hi,
    we want to check the validity date of the field "Shelf Life" (field SLEDBBD in the ALV) in the transaction LT03 before creating the Tranfert Order. For the moment the standard does not provide any control on this field:
    Basically, the standard flow is in that way:
    LT03: Create a Tranfert Order for Delivery (no control)
    LT12: ConfirmationCheck the validity date of the Shelf Life
    Reject
    Accept
    Our need consists to generate a blocking error message when the validating batch number is expired in LT03, like that:
    Have you got some Technical/Custo idea?
    Best regards.
    Rachid.

    Hi,
    You can control this via batch determination. Using condition technique, you can set the desired length of remaining shelf life for each of your customer (I mean you can create a condition record for each of them with the suitable parameters).
    Please check these links:
    http://www.renet-web.net/2008/09/05/sap-batch-determination-made-easy/
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/25/283aac4f7811d18a150000e816ae6e/frameset.htm
    (As per my best knowledge you won't be able to consider remaining shelf life during planning.)
    Regards,
    Csaba
    Edited by: Csaba Szommer on Apr 5, 2009 8:56 AM

  • Adding field in standard SAP transaction output results.

    Hi,
    I have to add a new field in standard SAP transaction output results.
    Can any one tell me what are the ways (brief explanation) that I can do this?
    If using exists - then what kind of exists I have to use? And how to find out the possibility with user exists?
    Thanks for your time.
    Thanks.
    Chris.

    Hi,
        There are so many ways to find out the user exits.
    Hi,
    To see SAP Exits -> Use Tcode SMOD
    To See create a project for Customer Exits -> Use Tcode CMOD
    There are projects to which Exits are assigned. Selects the relevant projects.
    What is User Exit:
    http://www.sap-img.com/abap/what-is-user-exits.htm
    How to find then:
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    All Exits List:
    http://www.easymarketplace.de/userexit.php
    Do a search on SAP Exits, Customer Exits, enhancements, etc
    Step 1 :- Execute transaction
    step 2 :- Click on Status Menu
    step 3 :- Double click on the program (screen) __?????___
    Step 4 :- Search source code for the 'Customer-Function' string using the find button. Remember to select 'In main program'.
    Step 5 :- A list of search results should be displayed indicating where all function exits can be found.
    You can now double click on each of them to go to its position in the source code. This also
    allows for the insertion of breakpoints so that you can test if the exits are called in the
    appropriate place.
    Step 6 :-Once you have found the Function Exit within the source code (Find Function Exit) you need to
    access the actual function module it executes. This is done using the following steps:
    Step 6.1 :-
    Step 1
    Locate desired 'Call Customer-function' statement within source code.
    Step 2
    If code is not within main program (module pool) e.g. SAP* then you will need to find this
    out by selecting 'Main Program' from the 'GOTO' menu. The Main program for transaction
    Step 3
    The actual function module name can now be calculated based on the information retrieved,
    it is defined by the following format:
    EXIT_<Program name>_<Exit number>
    eg :- 'EXIT_SAPLMR1M_004'.
    Step 7.1:-
    Once you have found the Exit function module
    Step 1
    Execute transaction CMOD
    Step 2
    Select 'SAP Enhancements' from the 'Utilities' menu.
    Step 3
    Select 'All selections' from the 'Edit' menu.
    Step 4
    Now populate the Component name field with the exit function module and press
    the execute button.
    Step 5
    A list of all Exits(Enhancements) containing that function module should now be displayed.
    Step 5
    You can now double click on the desired exit to display a detailed description of its uses and a list of all
    components contained in it.
    Implementing Function Exit
    This is required in-order to activate Function exit:
    Step 1
    The first step is to enter source code into function module in the usual way i.e. via SE37.
    There will already be an include declaration within the code with the following
    format: Include zx*.
    Double click on this to create it, source code can then be entered within here.
    Although it is good practice to create another include with this to store your
    code, this allows separation of difference enhancements allowing them to be easlity
    removed without de-activating the enhancement.
    Step 2
    Execute transaction CMOD and create new Enhancement. Enter name and press the create
    Button.
    Step 3
    The following screen should be displayed, enter short text then click on the 'Enhancement
    Step 4
    Now enter the Exit name (enhancement) which contains the desired Function Exit.
    Step 5
    Return to initial screen of CMOD and press the activate icon. The exit is now ready for use.
    Please Mark The Helfull Answers & close the thread.
    regards
    dj
    reward for all useful answers.

  • FM for CUSTOM FIELDS added in BP transaction

    Hi all,
      We have added few custom fields in the BP transaction.
      Now the thing is we need to update those using Function module.
      Could any one please help me like in which Function Module can i found those
      fields once i add in the BP transaction?
    Thanks and Regards,
    Gopinath A

    Hi Gopi,
    Have you used EEW to add these fields?
    There should be a function module(s) generated for this new fields which you can use to update this fields?  Probably something  like
    'BUPA_CENTRAL_CI_CHANGE'
    Hope this helps.
    Surendar

  • Text Field is Blank in Transaction F-28

    Hi Experts,
    There is a requirement to add to the current layout the text field in F-28 transaction code. However, when I add them as an administrator, The text field is blank. We already maintained the text field in both Accounting Document Line item and in the Invoice but still the text field is blank. Where can we find the value of text field in the documents shown in F-28. Are there any configuration to do this?

    Ok. Currently they had this problem on tagging which Invoices to be considered for payment clearance in tcode F-28. Their current process is every Ship-To-Party, they also equate it as one project code with the location of the project information,etc. They are using this ever since the first implementation. So in their process, they go to FBL5N to check those invoices created before going to F-28. In FBL5N, I incorporated the text field there (filled by user-exit display) which also came from the accounting document. But it's not correct since they are using the ship-to-party value in F-28.
    So we tested by manual input directly the Ship-To-Party Code to Acc Doc Line Item Text Field. It went to FBL5N, as showing the value there but in F-28 it is not showing.
    Do you have any solution for this? Since during payment in F-28, I think these entries are already Acc Doc Entries and Ship-To-Party is not reflected here but Payer only (coming from the invoice).

  • How to add a search help to a field  Bank Type in Transaction FK02

    Dear All,
         How to add a search help to a field  Bank Type in Transaction FK02.
         Is there any possibilty of using  exit or searc help or domain to solve this problem.
            Thanks in Advance..
    Thanks,
    Lakhsmi.

    Hi, Tamas,
    I found the reason. The function Z_WEBRFC_READ_DATA_SH had a string concatenation error.
    CONCATENATE '{"results":[{"key": "shlpname", "value": "' l_shlp '"},"key": "fieldname", "value": "' l_field '"}]}' INTO htmldoc-line.
    The correct code is like:
    CONCATENATE '{"results":[{"key": "shlpname", "value": "' l_shlp '"},{"key": "fieldname", "value": "' l_field '"}]}' INTO htmldoc-line.
    Another question is, I can't get any words in Chinese from WebRFC. It returns error when I try it. How can I configure it?
    Xin

  • Display Technical Field Names within a Transaction Screen

    Hi All,
    Someone once showed me how to do this and for the life of me I cannot figure out how to do it in ECC 6.0.
    I would like to display the technical field names of all fields in a transaction.  It is important to note that I am not looking for the <b>F1...Technical Details</b> solution.  I am well aware that the technical field name can be retrieved by this method.  I am really looking to see all the technical names of the fields in a particular transaction without a lot of clicking and searching.
    When I saw this before you could quickly change from technical field names to short field names and vise versa. 
    I know this could also be accomplished in SE11 or SE16 - but that is not exactly what I am looking for.
    Can anyone help??

    Hi Christopher,
    you know that Rollin Stones thing?
    You can't always get what you want.
    There is no such functionality for standard transactions.
    Regards,
    Clemens

  • How to disable a field in a standard transaction

    Good day,
    Can any one tell me , with an example of , how to disable (the field should not allow any input ) a parameter  or a select option in a standard transaction.

    Probably the only way to achieve this is by creating transaction variants:
    In the SAP Reference IMG, you can create transaction variants. Choose Basis Components ® Application Personalization ® Tailoring of Application Transactions ® Configure Transaction-Related Display Values for Fields (Transaction SHD0). Transaction variants allow you to preset values for fields in a transaction, set field attributes, or hide entire screens.
    To execute a transaction variant, you define a variant transaction using the Transaction Maintenance transaction (SE93).
    Once you have entered a transaction code and short description, choose transaction type Transaction with variant (Variant transaction).
    To define a variant, enter the name of the transaction and the name of the variant. You can then use the new transaction code to start the special variant of the transaction.
    Steps :-
    Transaction SHD0 - Create a variant for the required transaction bychanging the layout through hiding fields and screens.
    Transaction SE93 - Create a variant transaction (e.g. for VA02 you canname it as ZA02). Next allocate the transaction variant to this varianttransaction.

  • Where can i find Main work center field value in il03 transaction ??

    Hi experts,
    Where can i find <b>Main work center</b> field value in il03 transaction.
    Iam looking for the table from where that value will be filled.
    thanks
    Suresh

    Hi anji reddy,
    No that filed is not avaiable in that . can please tell some other soulution ...
    ASAP...
    thanks,
    Suresh

  • How to pass variable value to field of standard sap transaction.

    Hi Experts,
       i want to pass the value of variable to field of standard sap transaction. but that field is not having the parameter ID. so please tell me how i pass the value to field.
    thanks in advance.

    You might like to provide a few more details of which field and transaction you are trying to interact with... typical solutions involve user exits / BAdIs / Enhancements, or transaction variants, or building a BDC to part fill the screens of the Tcode you are calling.
    Jonathan

  • Changing the text of Text field in standard SAP transaction.

    Hi expert,
    I have a requirement in which i have to change the text of Text field in standard SAP transaction.
    Is it possible? If so, how?
    Any pointers will be highly appreciated.

    Hi,
    I think you want to change the field label of the text field.
    For ex in tcode MM01, you can change the field label of Material text field.
    The description of the field label comes from the data element it is associated with. To change the text of the field label, you have to change the field label of the data element.
    But it will effect all the fields associated with this data element.
    To change the field label of the data element go to tcode CMOD. Then click on GOTO->TEXT ELEMENTS->KEYWORDS->CHANGE.
    Then enter the data element which is to be changed. In the next screen, change the field label and save it.
    Regards,
    Vinod

  • How to find the Databse field used in which Transaction

    Hi,
    I have one query about:
    How to find the particular field from the Database table, used in which transaction?
    Bottomline:  I want to find the LIKP- LIFEX field, used in which Transaction. I know it is related to inbound delivery, but i couldn't find it in which transaction it is.
    Thanks in advance.
    Jai.

    Hi Jai,
    The field is called External ID which equal to LIKP-LIFEX or RV50A-VERUR_LA (structure).
    Path:
    Goto -> Header -> Administration -> External ID.
    Hope this will help.
    Regards,
    Ferry Lianto
    Please reward points if helpful.

  • Modifications in field LONG TEXT in transaction IW22

    Hello friends!
    I have the following problem:
    I need to allow modifications in field LONG TEXT in transaction IW22 until the notification is realeased, the thing is that this field gets inactive and it doesn't accept further modifications, can anybody help me??
    Thanks in advance,
    Frinee

    Peculiar - I was just looking at this (for a different problem). Look at OSS note #876698.
    Rob

  • Fun module to change the ' sales area field(AUFSD) ' in BP transaction

    Hi all,
    this  is anil reg fun module to change BP.
    I need to change the value for a field AUFSD in BP transaction.
    Could anyone please list the function module that can be used?
    Regards,
    Anil.

    Dear Rhesa,
    I said you also have to add the division, distribution channle and the tupples (combination of div and dis. channel) under the particular sales org.
    T code: ppoma_crm
    Double click on your sales org...you can see 4 tabs are there...click on attribute tab....choose the relevant attribute maintainance scenario (sales/service/marketting)..then add the division, distribution channle and the tupples (combination of div and dis. channel)..save it...
    If still you face the problem, please send me the screen print at [email protected]..
    Thanks,
    Atin

Maybe you are looking for

  • [share]Share with you my experience of upgrading PC with zero budgets

    I saw an article on Mobile01 and thought it’s quite interested, so here I translate it. To share with everyone http://www.mobile01.com/topicdetail.php?f=488&t=4250581 Share with you my experience of upgrading PC with zero budgets It is believed that

  • Why do some YouTube videos stop playing after a short time?

    Since sometime in October, 2013, I have noticed that more and more YouTube videos stop playing within a minute of starting. Most that stop do so in 15 or 16 seconds. The playing stops because the download stops. I watch this on a network activity mon

  • Adobe Bridge CC associates Ai files with Illustrator CS 5.5

    Does anyone know how to get Bridge CC to open files in Illustrator CC and not trying to open them in Illustrator CS 5.5. I haven't got CS 5.5 so i get an error every time i try to open Ai files from Bridge CC. have tried the "File Type Association",

  • File to File-CC 'error com.sap.aii.adapter.file.ftp.FTPEx: 550 Access deni'

    Hi friend, I am doing file to file scenario in which i wan to move one file from input folder to output folder. I had created as FTP on one system that i am able to access and have full authorization to read and write. and created that two input and

  • Column values split to multiple columns

    Hello Everyone, I know there is a way to do this below requirement. But please help me to sort out from this. I've values likebelow Subject Qualifications Philosophy  PhD Philosophy  MPhil Philosophy MSC Philosophy AdvPGDip economics BEd economics PG