How to use L_TO_CONFIRM to confirm transport order

Hello friends,
I am using function L_TO_CONFIRM to confirm transport order in my program.
But it is not working. I have copied the main fields from table ltak and ltap. However it is still not working. May be some other parameters need to be filled.
Can anybody of you tell me as how can I use this function module to confirm transport order.
Regards,
Navin

Hi,
    loop at gc_vbfa.
clear il_ltap_conf.
refresh il_ltap_conf.
il_ltap_conf-tanum = gc_vbfa-vbeln.
il_ltap_conf-tapos = gc_vbfa-posnn.
il_ltap_conf-nista = 0.
il_ltap_conf-ndifa = gc_vbfa-rfmng.
il_ltap_conf-altme = gc_vbfa-meins.
append il_ltap_conf.
Confirm TO
if s_fct_vars-peak_user = space.
l_ename = sy-uname.
else.
l_ename = s_fct_vars-peak_user+0(12).
endif.
l_tanum2 = gc_vbfa-vbeln.
CALL FUNCTION 'L_TO_CONFIRM'
EXPORTING
I_LGNUM = l_lgnum
I_TANUM = l_tanum2
I_SQUIT = ' '
I_QUKNZ = ' '
I_SUBST = ' '
I_QNAME = SY-UNAME
I_ENAME = L_ENAME
I_SOLEX = 0
I_PERNR = 0
I_STDAT = INIT_DATUM
I_STUZT = 0
I_ENDAT = INIT_DATUM
I_ENUZT = 0
I_ISTWM = 0
I_KOMIM = ' '
I_EINLM = ' '
I_TBELI = ' '
I_UPDATE_TASK = ' '
I_COMMIT_WORK = 'X'
I_AUSFB = ' '
TABLES
T_LTAP_CONF = il_ltap_conf
T_LTAP_CONF_HU =
T_LTAP_CONF_HU_SERIAL = il_ltap_serial
EXCEPTIONS
TO_CONFIRMED = 1
TO_DOESNT_EXIST = 2
ITEM_CONFIRMED = 3
ITEM_SUBSYSTEM = 4
ITEM_DOESNT_EXIST = 5
ITEM_WITHOUT_ZERO_STOCK_CHECK = 6
ITEM_WITH_ZERO_STOCK_CHECK = 7
ONE_ITEM_WITH_ZERO_STOCK_CHECK = 8
ITEM_SU_BULK_STORAGE = 9
ITEM_NO_SU_BULK_STORAGE = 10
ONE_ITEM_SU_BULK_STORAGE = 11
FOREIGN_LOCK = 12
SQUIT_OR_QUANTITIES = 13
VQUIT_OR_QUANTITIES = 14
BQUIT_OR_QUANTITIES = 15
QUANTITY_WRONG = 16
DOUBLE_LINES = 17
KZDIF_WRONG = 18
NO_DIFFERENCE = 19
NO_NEGATIVE_QUANTITIES = 20
WRONG_ZERO_STOCK_CHECK = 21
SU_NOT_FOUND = 22
NO_STOCK_ON_SU = 23
SU_WRONG = 24
TOO_MANY_SU = 25
NOTHING_TO_DO = 26
NO_UNIT_OF_MEASURE = 27
XFELD_WRONG = 28
UPDATE_WITHOUT_COMMIT = 29
NO_AUTHORITY = 30
LQNUM_MISSING = 31
CHARG_MISSING = 32
NO_SOBKZ = 33
NO_CHARG = 34
NLPLA_WRONG = 35
TWO_STEP_CONFIRMATION_REQUIRED = 36
TWO_STEP_CONF_NOT_ALLOWED = 37
PICK_CONFIRMATION_MISSING = 38
QUKNZ_WRONG = 39
HU_DATA_WRONG = 40
NO_HU_DATA_REQUIRED = 41
HU_DATA_MISSING = 42
HU_NOT_FOUND = 43
PICKING_OF_HU_NOT_POSSIBLE = 44
NOT_ENOUGH_STOCK_IN_HU = 45
SERIAL_NUMBER_DATA_WRONG = 46
SERIAL_NUMBERS_NOT_REQUIRED = 47
NO_DIFFERENCES_ALLOWED = 48
SERIAL_NUMBER_NOT_AVAILABLE = 49
SERIAL_NUMBER_DATA_MISSING = 50
TO_ITEM_SPLIT_NOT_ALLOWED = 51
OTHERS = 52
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
S_FCT_VARS-FCT_MSG_AREA = sy-msgid.
S_FCT_VARS-FCT_MSG_ID = sy-msgno.
S_FCT_VARS-FCT_RTN_CODE = 8.
S_FCT_VARS-FCT_MSG_VAR1 = SY-MSGV1.
S_FCT_VARS-FCT_MSG_VAR2 = SY-MSGV2.
S_FCT_VARS-FCT_MSG_VAR3 = SY-MSGV3.
S_FCT_VARS-FCT_MSG_VAR4 = SY-MSGV4.
S_FCT_VARS-FCT_MSG_LEVEL = 'E'.
else.
IF L_POST_MSG_SUCCESS = 'MSG_ON'.
S_FCT_VARS-FCT_MSG_AREA = 'ZPKUK01STD'.
S_FCT_VARS-FCT_MSG_ID = '209'.
S_FCT_VARS-FCT_RTN_CODE = 0.
S_FCT_VARS-FCT_MSG_LEVEL = 'S'.
S_FCT_VARS-FCT_MSG_VAR1 = gc_vbfa-vbeln.
S_FCT_VARS-FCT_MSG_VAR2 = gc_vbfa-posnn.
ENDIF.
Document logging
IF L_DOCUMENT_LOGGING = 'Y'.
concatenate gc_vbfa-vbeln
gc_vbfa-posnn
into L_TARGET_DOCUMENT separated by '-'.
L_SOURCE_DOCUMENT = gc_vbfa-vbeln.
PERFORM PST1700_DOCUMENT_LOGGING
USING 'PICKING'
L_SOURCE_DOCUMENT
L_TARGET_DOCUMENT
'TOIT'
'L_TO_CONFIRM'
L_TXN_DESC
L_EVNT_ERROR.
ENDIF.
endif.
endloop. " gc_vbfa
commit work AND WAIT.
loop at gc_vbfa.
gd_vbfa-vbelv = gc_vbfa-vbelv.
gd_vbfa-posnv = gc_vbfa-posnv.
append gd_vbfa.
endloop. " gc_vbfa
sort gd_vbfa by vbelv posnv.
delete adjacent duplicates from gd_vbfa comparing vbelv posnv.
loop at gd_vbfa.
if s_fct_vars-fct_rtn_code = 0.
L_VBKOK-VBELN_VL = gd_vbfa-vbelv.
clear l_vbpok.
refresh l_vbpok.
l_vbpok-vbeln_vl = gd_vbfa-vbelv.
l_vbpok-posnr_vl = gd_vbfa-posnv.
l_vbpok-lips_del = c_x.
append l_vbpok.
set update task local.
call function 'WS_DELIVERY_UPDATE'
exporting
vbkok_wa = l_vbkok
commit = ' '
delivery = gd_vbfa-vbelv
tables
vbpok_tab = l_vbpok
exceptions
others = 0.
commit work and wait.
Refer below link:
https://forums.sdn.sap.com/click.jspa?searchID=4082151&messageID=3039845
<b>Reward points</b>
Regards

Similar Messages

  • How to use coupon discount in sales order?

    Hi,Experts,
    I want to add coupon discount in order, do I need some config in order transaction type?
    Right now, I can't5 find some field to fill in coupon code, even I fill in the product and customer in former coupon.
    Could someone help me on how to use coupon discount in transaction level?
    Any config or maintainance instruction will be highly appreciated.
    Best regards,

    Coupons are generally related to the campaigns.
    If you are creating an order through the transaction crmd_order, you can mention the campaign document id, under the tab "Header Overview" in the field "Camp./TP".

  • How to use WCM for a maintenance order ?

    HI friends,
         Can u please tell the steps how i should use WCM in a maintenance order?
    Regards,
    M.Alagesan

    Hi Alagesan,
    To use WCM in Maintenance Orders, you should have activated either a Standard or Enhanceed Model Architecture for the Planning Plant in SPRO. (SPRO>PMCS>WCM--> Master Data --> Architecture)
    Also you should Activate WCM for Maintenance Orders (SPRO>PMCS>WCM--> Approvals)
    Then the Reference Object you are using for Order creation should have the Permit(Approval) used above assigned to it & Auto Proposal should be checked.
    When you create a Order on such Equipment, WCM will get activated Automatically. Also you can activate using Operational Control key of WCM.
    If Standard Model the Flow is Order --> Work Clearance Application --> Work Clearence Document. Release Permits in Order and proceed to Tag in WCD. Then Release the Order for Execution.... and so on.
    If Enhanced Model the Flow is Order --> Valuation --> Work Approval --> Work Clearance Application --> Work Clearence Document. Release Permits in Order and proceed to Tag in WCD. Then Release the Order for Execution.... and so on.
    Regards,
    MLN Prasad

  • How to use external workcentre in pm order operations?

    Dear experts,
    i would like to use external workcenter in pm order operations using PM01 control key. Can any body explain about how to create external work centres for using in PM orders. similarly can anybody explain about how would we settle the amounts for external work centre activities? how it differs from normal in-house work centres?
    regards,
    Varsha

    Hi ,
    You can check the below link related to
    (http://help.sap.com/saphelp_47x200/helpdata/en/b0/df293581dc1f79e10000009b38f889/frameset.htm)
    The link is related to Maintenance Order processing with an External Company as Work Center ..
    regards
    pushpa

  • How to control Inspection for Stock Transport Order Just like Reg Receipt

    Hi Folks,
    We do Stock transport order to bring stock to the dock from a Hub. I would like the inspection process (using inspection plan to drive) similar to the regular receipt.
    I tried setting up material master with 08 , but in this case everything went to quality and all transfer posting done between storage locations created an inspection lot.
    Basically i want to setup 2 inspection types for a material, 01 for regular receipt and something else for all stock transport order. Both should use the same inspection plan to determine  the quality process.
    Let me know if this is possible.
    Thanks
    Jithin

    Again I am saying very much depends upon the process that you follow.
    My way to look at it is "Main Intention of your is to cut down the inspection lots while transfering storage location to storage location".So what would I have preffered is
    1.Either make copy of mvt type 311 & deactivate QM for that .Every time when I transfer material from Sto to Sto then use this movt type so that lot will not be generated.
    or
    2.Deactivate QM for 311 & only use the mvt type which is copy of 311 for STO orders along with 01.
    can i setup the material with both 01 and 08 inspection type and will it work with inspection plan for both type of PO's?
    Yes ,as per above explaination !!

  • How to use KAUF_AUFNR_CHANGE  to change Process order and Update a field

    Hello ,
    I am working on 4.6C system and I hve a requirement to change Process order and Update a field value passed from a ABAP Program. I am looking for suitable Function modules or Bapi ( available in 4.6c) .
    I have come across FM KAUF_AUFNR_CHANGE . Would appreciate any guidance on how to use the FM in my program and Update a field in the Process order.
    Many Thanks!

    All the importing parameters of this function module have a striaght structure of the transperent tables...
    i have checked the code and it has a modify statement based on the importing parameter..
    pick one record in databas and pass it to the importing parameters, with some values changed...
    i think that should work
    what values  to pass the import values of FM -KAUF_AUFNR_CHANGE.
    Edited by: ssm on Aug 4, 2011 7:19 PM

  • How to delete or cancel a transport order already released to PRD?

    Hi guys.
    I am not a System Administrator / Basis Consultant, but I comitted a serious mistake and I want to get repair ideas. I am an ABAP consultant. A FI Consultant was creating a query, but she left the project. My customer told me they needed more changes in the query. But I noticed a transport request was left by the FI consultant at QAS, not moved to PRD yet. I proved it, and I thought it could be nice to be transported to PRD since it solved an aspect of the customer's complaints. But my customer got angry and told me the change caused by the transport order delivered at PRD had ruined some fields and it set them like blanks. So, I am in truble. Since I was not the original developer of the query, I have to analyze the query's infoset, but it contains 9 tables, and someone set ABAP code. It is going to take time to get fixed, and my customer needs it as soon as possible. Is there a fast way to delete the changes generated by a transport order moved to PRD? The old version (moved with the subsequent older transport) had an acceptable performance, but the ultimate version that I asked to be moved was an error. Can be transported the contents of the penultimate transport order again at PRD to neutralize the wrong transport? Thank you!

    You can't reverse a transport... but you could use version management to undo changes in DEV and transport accross. Also If there was a previous version that worked ok then you could reimport that transport accross. Always test an make sure everything is Ok in QA before going to PRD
    Regards
    Juan

  • How can I create a new Transport Order from WD UI?

    Hi experts,
    the idea is to give the user in WebDynpro the chance to create a transport order with data from a table from the data dictionary.
    The same function is implemented in the standard SAP transaction se11. When you see the data from the data dictionary table you have the chance to transport the selected entries in a transport order, after entering the main transport data like ordername and description in a popup.
    Is there a way to create this function from a WebDynpro User Interface?
    Thx for all answers.
    Dirk

    Hi,
    Check this thread -
    [Write transport request from WebDynpro|Write transport request from WebDynpro]
    Regards
    Manas Dua

  • How to use MTO stock in MTS order.

    Hi
    My client wants the MTO stock also to be be used in MTS order. Is it possible?.
    If possible, kindly let me know the configurational changes to be made so that MTO stock can used in MTS order.
    regards
    Ram
    Edited by: Ram-SAPSD on Sep 24, 2010 11:34 PM

    Hi
    Thanks for the reply.
    An Item is created in material master with strategy group say 20- make to order production.Hence the material can be used only in make to order.
    My question is MTO order has not yet created. However I want this material to be used in MTS order.
    What configuration needs to be maintained.
    regards
    ram

  • How to use oracle nlssort function in order by clause?

    If I need to use linguistic sort feature in Oracle, I can write a SQL like that:
    Select product_name from product
    order by NLSSORT(product_name, 'NLS_SORT=GENERIC_M');
    How can I generate a SQL like this by Toplink?

    Hi,
    To answer your query:-
    http://abhishek-soablog.blogspot.com/2008/08/orclquery-database.html
    Cheers,
    Abhi...

  • How to use BAPI_GOODSMVT_CREATE against the Production Order

    Hi Friends,
    I need ur help very urgently,
    I am using the BAPI_GOODSMVT_CREATE (movement code '03') for goods return against the production order (movement type '262').
    everything working fine, ie it gets updated in IM/WM.
    but when we check in the CO03 transaction for the production order, the qty withdrwan not gets updated in the component overview. still showing the old value. But when we used regular SAP transaction MB1A, it gets updated in CO03 (qty withdrwan in the component overview).
    How to solve this issue using this BAPI.
    I have attached the code, plese help me is there any other parameter to set for this BAPI.
    Thanks in advance.
    Shankar
    Code:
    *Header Structure
    st_gm_code-gm_code = '03'. "
    st_gm_header-pstng_date = st_gm_header-doc_date = sy-datum.
    SORT itab BY aufnr matnr j_3asized.
    LOOP AT itab.
    itab_afs_gm_itemx-material = itab-matnr.
    itab_afs_gm_itemx-plant = itab-werks.
    itab_afs_gm_itemx-stge_loc = itab-lgort.
    itab_afs_gm_itemx-batch = itab-new_charg .
    itab_afs_gm_itemx-stock_cat = itab-j_4kscat.
    itab_afs_gm_itemx-stck_type = 'F'.
    itab_afs_gm_itemx-move_type = '262'.
    itab_afs_gm_itemx-entry_qnt = itab-j_3aerfmg .
    itab_afs_gm_itemx-grid_value = itab-j_3asized.
    itab_afs_gm_itemx-orderid = itab-aufnr.
    itab_afs_gm_itemx-move_reas = itab-move_reas.
    APPEND itab_afs_gm_itemx .
    SELECT SINGLE etenr
    INTO etenr
    FROM j_3abdsi WHERE aufnr = itab-aufnr
    AND matnr = itab-matnr.
    gr_afs-matdoc_itm = '0100'.
    gr_afs-sched_line_sku = etenr.
    gr_afs-stock_cat = itab-j_4kscat.
    gr_afs-grid_value = itab-j_3asized.
    APPEND gr_afs.
    ENDLOOP.
    CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
    EXPORTING
    goodsmvt_header = st_gm_header
    goodsmvt_code = st_gm_code
    IMPORTING
    goodsmvt_headret = st_gm_headret
    materialdocument = mat_doc
    matdocumentyear = doc_year
    TABLES
    goodsmvt_item = itab_afs_gm_itemx
    return = bapi_return
    afs_goodsmvt_sku = gr_afs.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

    Hi Friends,
    I need ur help very urgently,
    I am using the BAPI_GOODSMVT_CREATE (movement code '03') for goods return against the production order (movement type '262').
    everything working fine, ie it gets updated in IM/WM.
    but when we check in the CO03 transaction for the production order, the qty withdrwan not gets updated in the component overview. still showing the old value. But when we used regular SAP transaction MB1A, it gets updated in CO03 (qty withdrwan in the component overview).
    How to solve this issue using this BAPI.
    I have attached the code, plese help me is there any other parameter to set for this BAPI.
    Thanks in advance.
    Shankar
    Code:
    *Header Structure
    st_gm_code-gm_code = '03'. "
    st_gm_header-pstng_date = st_gm_header-doc_date = sy-datum.
    SORT itab BY aufnr matnr j_3asized.
    LOOP AT itab.
    itab_afs_gm_itemx-material = itab-matnr.
    itab_afs_gm_itemx-plant = itab-werks.
    itab_afs_gm_itemx-stge_loc = itab-lgort.
    itab_afs_gm_itemx-batch = itab-new_charg .
    itab_afs_gm_itemx-stock_cat = itab-j_4kscat.
    itab_afs_gm_itemx-stck_type = 'F'.
    itab_afs_gm_itemx-move_type = '262'.
    itab_afs_gm_itemx-entry_qnt = itab-j_3aerfmg .
    itab_afs_gm_itemx-grid_value = itab-j_3asized.
    itab_afs_gm_itemx-orderid = itab-aufnr.
    itab_afs_gm_itemx-move_reas = itab-move_reas.
    APPEND itab_afs_gm_itemx .
    SELECT SINGLE etenr
    INTO etenr
    FROM j_3abdsi WHERE aufnr = itab-aufnr
    AND matnr = itab-matnr.
    gr_afs-matdoc_itm = '0100'.
    gr_afs-sched_line_sku = etenr.
    gr_afs-stock_cat = itab-j_4kscat.
    gr_afs-grid_value = itab-j_3asized.
    APPEND gr_afs.
    ENDLOOP.
    CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
    EXPORTING
    goodsmvt_header = st_gm_header
    goodsmvt_code = st_gm_code
    IMPORTING
    goodsmvt_headret = st_gm_headret
    materialdocument = mat_doc
    matdocumentyear = doc_year
    TABLES
    goodsmvt_item = itab_afs_gm_itemx
    return = bapi_return
    afs_goodsmvt_sku = gr_afs.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

  • How to use Bapi for creating sales order

    Dear All,
    I am facing problem in creating Sales orders using BAPI.
    Actually I am getting one file as an input and after validating the contents in the file i am preparing an internal table which has 6 fields - Customer number,PO Number,Material Number,Quantity,Price,Unit of measure.
    Now  my doubt is that while using BAPI_SALESORDER_CREATEFROMDAT2 , I am not getting how to pass PO Number and Customer number.
    Please Help.
    Regards,
    Shweta

    Hi shweta upadhyay
    I have gone through you are post i have done some coding for creating sales order using bapi , I think it is helpful for you.
    *& Report  YOBJ_BAPI_SALESORDER
    *& REPORT : CREATING SALES ORDER USING STANDARD BAPI
    *& AUTHOR : S.PAVAN KUMAR INUMARTHY
    REPORT  YOBJ_BAPI_SALESORDER.
    DATA : ORDER_HEADER_IN LIKE STANDARD TABLE OF BAPISDHD1 WITH HEADER LINE.
    DATA : ORDER_ITEMS_IN LIKE STANDARD TABLE OF BAPISDITM WITH HEADER LINE.
    DATA : ORDER_PARTNERS LIKE STANDARD TABLE OF BAPIPARNR WITH HEADER LINE.
    DATA : RETURN TYPE STANDARD TABLE OF BAPIRET2 WITH HEADER LINE.
    DATA : SALESDOCUMENT LIKE BAPIVBELN-VBELN.
    *APPENDING VALUES FOR HEADER.
    ORDER_HEADER_IN-DOC_TYPE = 'TA'.
    ORDER_HEADER_IN-SALES_ORG = '1000'.
    ORDER_HEADER_IN-DISTR_CHAN = '10'.
    ORDER_HEADER_IN-DIVISION = '00'.
    ORDER_HEADER_IN-SALES_GRP = '130'.
    ORDER_HEADER_IN-SALES_OFF = '1030'.
    APPEND ORDER_HEADER_IN.
    *APPENDING VALUES FOR ITEM
    ORDER_ITEMS_IN-MATERIAL = 'M-13'.
    ORDER_ITEMS_IN-PLANT = '1000'.
    ORDER_ITEMS_IN-SALES_UNIT = 'ST'.
    ORDER_ITEMS_IN-DIVISION = '07'.
    ORDER_ITEMS_IN-GROSS_WGHT = '28000'.
    ORDER_ITEMS_IN-NET_WEIGHT = '28000'.
    ORDER_ITEMS_IN-UNTOF_WGHT = 'KG'.
    ORDER_ITEMS_IN-VOLUME = '0.780'.
    ORDER_ITEMS_IN-VOLUNIT = 'M3'.
    APPEND ORDER_ITEMS_IN.
    *APPENDING VALUES FOR PARTNER
    ORDER_PARTNERS-PARTN_ROLE = 'AG'.
    ORDER_PARTNERS-PARTN_NUMB = '0000001000'.
    ORDER_PARTNERS-COUNTRY = 'DE'.
    ORDER_PARTNERS-TRANSPZONE = 'D000080000'.
    APPEND ORDER_PARTNERS.
    CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
      EXPORTING
    *   SALESDOCUMENTIN               =
        ORDER_HEADER_IN               = ORDER_HEADER_IN
    *   ORDER_HEADER_INX              =
    *   SENDER                        =
    *   BINARY_RELATIONSHIPTYPE       =
    *   INT_NUMBER_ASSIGNMENT         =
    *   BEHAVE_WHEN_ERROR             =
    *   LOGIC_SWITCH                  =
    *   TESTRUN                       =
    *   CONVERT                       = ' '
    IMPORTING
       SALESDOCUMENT                  = SALESDOCUMENT
      TABLES
       RETURN                         = RETURN
       ORDER_ITEMS_IN                 = ORDER_ITEMS_IN
    *   ORDER_ITEMS_INX               =
        ORDER_PARTNERS                = ORDER_PARTNERS
    *   ORDER_SCHEDULES_IN            =
    *   ORDER_SCHEDULES_INX           =
    *   ORDER_CONDITIONS_IN           =
    *   ORDER_CONDITIONS_INX          =
    *   ORDER_CFGS_REF                =
    *   ORDER_CFGS_INST               =
    *   ORDER_CFGS_PART_OF            =
    *   ORDER_CFGS_VALUE              =
    *   ORDER_CFGS_BLOB               =
    *   ORDER_CFGS_VK                 =
    *   ORDER_CFGS_REFINST            =
    *   ORDER_CCARD                   =
    *   ORDER_TEXT                    =
    *   ORDER_KEYS                    =
    *   EXTENSIONIN                   =
    *   PARTNERADDRESSES              =
              IF SY-SUBRC = 0.
              CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    *           EXPORTING
    *             WAIT          =
    *           IMPORTING
    *             RETURN        =
               ENDIF.
    WRITE : 'SALES ORDER IS :', SALESDOCUMENT.
    This will be very helpful for you .
    this one is the correct answer I have tried it and I am posting it for you.
    Message was edited by: pavan inumarthy

  • How to use smart form for production orders

    Hello Experts,
    I have a couple of questions about printing out production orders from SAP, from OPK8.
    My ABAPer has developed a smart form and I am trying to use the same for the list LG01, i.e. the object list.
    Since, there was no place to assign a smart form directly, so the ABAPer has copied the existing print program , defined for my ref. order type and LG01 and assigned the new smart form inside the program. This new program has now been assigned against my ref. ord type, LG01 and all the plants, as seen in screenshot below.
    Now, what is happening is that when I give print for my order, a pop-up screen asks for the printer. I give LOCL , check 'print now' and then click on the print preview.
    I can see the new form that has been developed and it is alright.
    Then, when I click on the back arrow, once again the print pop-up screen appears. Now, when I enter LOCL, print now and click  the print preview, then I see another form open up before me. I am assuming that this is some form which was pre-configured in the system, under the section 'Forms', for the same object list LG01.
    Do I have to assign the new smart form under the section "Forms' also, for the ref order type and LG01? or the change in the section 'print programs' is enough for the new form to kick in? Please guide me. I tried to but it gave the error that the form is not created in English. Also , my form is a smart form, not a SAPScript or PDF form, so I wonder if that will help at all.
    Requirement :-      I need to suppress this second form somehow but do not know how to do it. I want that only one form, i.e. my smart form should be printed out when someone gives print from the order.
    Let me know if something is not clear.
    Regards
    P.R

    Hi P,
    Go a few steps down and remove flags on the documents you don't want to print:
    this are just suggestions, they can be changed in your production order, in CO02, menu Order->Settings->List Control.
    regards,
    Edgar

  • How to use the UME api in order to search the LDAP?

    Hello,
    I have an application which connects to the LDAP the portal is connecting to and search users according to a certain search criteria.
    Here is the relevant piece of code:
    Hashtable env = new Hashtable();
    DirContext ctx = new InitialDirContext(env);
    SearchControls controls = new SearchControls();
    String filter = "firstName=..."
    NamingEnumeration results = ctx.search("OU=OUs", filter, controls);
    I would like to do this same search using the UME API.
    Can someone please show me the equivalent code to it using the UME API?

    Hi Roy,
    you find the Configuration File you are using in your portal via System Administration -> System Configuration -> UM Configuration -> Data Sources
    or in sapume.properties where you can find
    ##xml file that configures the persistence except roles
    ume.persistence.data_source_configuration=YOUR_DATASOURCE_CONFIG_FILE.xml
    In this xml file, there is the entry
    <principal type="user">:
    <principal type="user">
         <nameSpaces>
         <nameSpace name="com.sap.security.core.usermanagement">     
    <attributes>                               
    <attribute name="firstname" populateInitially="true"/><attribute name="displayname" populateInitially="true"/>               <attribute name="lastname" populateInitially="true"/>                    <attribute name="fax"/>                         <attribute name="email"/>                    <attribute name="title"/>               <attribute name="department"/>                    <attribute name="extensionAttribute2"/>               <attribute name="mobile"/>          <attribute name="telephone"/>                    <attribute name="streetaddress"/>               <attribute name="pobox"/>                    <attribute name="location"/>               <attribute name="telephoneShort"/>               </attributes>
         </nameSpace>
         <nameSpace name="com.sap.security.core.usermanagement.relation">
         <attributes>
         <attribute name="PRINCIPAL_RELATION_PARENT_ATTRIBUTE"/>
         </attributes>
         </nameSpace>
        </nameSpaces>
    </principal>
    According to your company LDAP attributes, you will have to extend the above attributes, telephoneShort for example is an attribute within our company.
    The UME API does the rest.
    All you have to do, is request the right attribute (in my above example it was the last name).
    (Sorry for the format, but it is quite cumbersome to format it properly with the available editor   )
    Kind regards,
    Rebecca

  • How to use File Adapter to transport files

    Hi,
    Can i use File Adapter Additional Files settings to Transfer files from one system to other without conversion?
    File Adapter's Additional Files documentation says "additional attachments require a receiver that can process them". In my case receiver is also
    File Adapter.
    Please let me know if there is any other way to achive this.
    Thanks in Advance
    Jayant

    Hi Jayant -
    Here is the link to the documentation related to this:
    http://help.sap.com/saphelp_nw04/helpdata/en/3c/b4a6490a08cd41a8c91759c3d2f401/content.htm
    Notice in "Rules for Additional Files":
    "Messages with additional attachments require a receiver that can process them."
    Currently, the receiver file adapter does not support the processing of attachments.
    Regards,
    Jin

Maybe you are looking for

  • OIM-OID Recon

    Hi, I'm currently trying to reconcile users (target recon) from OID and when I try to do that, I get the following error: Note : Its a fresh installation and I've made the necessary changes in the IT Resource and the Schedule Task. EBUG QuartzWorkerT

  • Lightroom: Can not exit/switch Full Screen Preview (F Key) mode (LR Mac)

    Hello, since upgrading to LR 5.4 I'm not able to toggle / switch / exit the "F-Mode" (Full-Screen) back to the "G-Mode" (Grid-Mode). Only restarting works, but that's no way. I've tried everything which is mentioned in this link: Click but nothing wo

  • Initialize Delta Load in Info Package

    Hi, I want to create 2 info packages for my load from datasource. One with setting " Initialize Delta load with data transfer " in info package for my first load. Second info package should be with " Delta Lad " which i am not finding in the second i

  • Change artwork for music video

    I imported a movie downloaded from a web site. The artwork was automatically generated from a frame of the movie that iTunes randomly picked. I want to add my own artwork instead, but iTunes won't let me add or delete the artwork!

  • Multiple Photo Upload HELP! ADDT

    Hi Guys, I create a insert transaction for upload of images. And i insert a server behavior multiple upload image in the form. the upload link than was created and i managed to upload the images into the specific folder. however the data/filename was