Adding additional tab in crm_order sales

hello experts,
kindly let me know how to add an additional tab & some custom fields to that tab
in crm_order sales using BADI.
plz do the need full..
bye--
Deepa

Hi,
Create a program with the screen type sub-screen in SE80 and design the layout for the custom fields.
Declare the custom fields in a Z**TOP include.
Under the PBO method declare the program name and screen number
Under PAI method declare the field to u2018Xu2019.
Under the line modify method declare a flag and set to u2018Xu2019 checking for material document number by which we can set the fields to be in display mode when we open MIGO for display of material document created after doing goods receipt.
Under the POST_DOCUMENT method write the code for appending the value to Z table along with the values of the line item (In this case production order number, material, u2026u2026.). For these values to be available here in this method use the memory concept u201CExport to memory idu201D in the method LINE_MODIFY. 
In order to do any validations to the custom fields, go to transaction SE80 and mention the program Name created and in PROCESS ON VALUE_REQUEST create a module and provide the validations required for those custom Fields.
In order to make the fields to be in display mode during the display of material document, create a module under PBO and import the flag value and the production order number details in the method LINE_MODIFY and if that flag = u2018Xu2019, use  
LOOP AT SCREEN.
IF SCREEN-NAME = 'ZZGBAGS'.
SCREEN-INPUT = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.Retrieve the values from the Z table matching the key field (production order number) and pass the value of the custom field on to the screen.

Similar Messages

  • Additional Tab B in Sale Order VA01, Va02, VA03

    Hi
    I want to add some new fields in the (ADDITIONAL TAB B) Header.
    The screen no is SAPMV45A-8309.
    Now if i want to add the the field do i need to take key and do it.
    If not then how can i add the new 'Z' fields in the this screen.

    U can do it using Tcode: SHD0.
    Pl. Search for similar threads

  • Userexit or BADI for adding additional tab in MIGO screen.

    Hi all ,
       Kindly tell me as to which exit or BADI is used to add additional tab in MIGO header.
    Regards

    Hi,
    Create a program with the screen type sub-screen in SE80 and design the layout for the custom fields.
    Declare the custom fields in a Z**TOP include.
    Under the PBO method declare the program name and screen number
    Under PAI method declare the field to u2018Xu2019.
    Under the line modify method declare a flag and set to u2018Xu2019 checking for material document number by which we can set the fields to be in display mode when we open MIGO for display of material document created after doing goods receipt.
    Under the POST_DOCUMENT method write the code for appending the value to Z table along with the values of the line item (In this case production order number, material, u2026u2026.). For these values to be available here in this method use the memory concept u201CExport to memory idu201D in the method LINE_MODIFY. 
    In order to do any validations to the custom fields, go to transaction SE80 and mention the program Name created and in PROCESS ON VALUE_REQUEST create a module and provide the validations required for those custom Fields.
    In order to make the fields to be in display mode during the display of material document, create a module under PBO and import the flag value and the production order number details in the method LINE_MODIFY and if that flag = u2018Xu2019, use  
    LOOP AT SCREEN.
    IF SCREEN-NAME = 'ZZGBAGS'.
    SCREEN-INPUT = '0'.
    MODIFY SCREEN.
    ENDIF.
    ENDLOOP.Retrieve the values from the Z table matching the key field (production order number) and pass the value of the custom field on to the screen.

  • Internal Error (-5002) on adding Additional Expenses in a sales-document

    Hi All,
    I try to add an additional expense in a sales-document. I receice an internal error (-5002) What is the problem ?
    I want to transfer the additional expense from a sales-order to my target delivery note.
    See my example in C#:
                   oDlvNote.CardCode = cuno;
                    oDlvNote.DocDueDate = oDate;
                    string queryvx2 = "Select ExpnsCode, LineTotal, Comments,
    DocEntry, LineNum From " + tablenameexp + " Where DocEntry
    = " + origornov;
                    using (System.Data.SqlClient.SqlDataReader sqlReadervx2 =
    SwissAddonFramework.B1Connector.GetB1Connector().ExecuteQuery(queryvx2))
                        while (sqlReadervx2.Read())
                            expcode = sqlReadervx2.GetInt32(0);
                            linetotexp =
    Decimal.ToDouble((Decimal)sqlReadervx2.GetSqlDecimal(1));
                            remarksexp = sqlReadervx2.GetString(2);
                            docentryexp = sqlReadervx2.GetInt32(3);
                            linenumexp = sqlReadervx2.GetInt32(4);
                    oDlvNote.Expenses.BaseDocEntry = docentryexp;
                    oDlvNote.Expenses.BaseDocLine = linenumexp;
                    oDlvNote.Expenses.BaseDocType = objectnr;
                    oDlvNote.Expenses.ExpenseCode = expcode;
                    oDlvNote.Expenses.LineTotal = linetotexp;
                    oDlvNote.Expenses.Remarks = remarksexp;
              --->    oDlvNote.Expenses.Add();
                    oDlvNote.Lines.ItemCode = Artikel;
    Regards,
    Roland

    Hi Roland,
    I think it's the same issue as here:
    -5002,if you reference production in a row,so all rows should be refer prod
    Regards,
    Frank
    PS: Expenses are a "lines" type oject - just like Document_Lines - which are handled in the TB1300
    Message was edited by:
            Frank Moebius

  • Additional tab in sales order-incompletion log

    Hi
    We have added additional tab in sales order at item level...
    But when we try to put the some fields which are available in the additional tab into incompletion log,we are not able to select the respective screen name...
    How to add that additional tab in the screen name of incompletion log..
    We could give field name,table name,but screen is not availble,,in incompletion log...
    When we did recording it gave us fcode as T14 (screen name)
    Can u tell us how to bring that screen in the incompletion log
    Regards
    Sudha

    Hi
    We have added customised fields in item level table  VBAP and include these in the screen  8460 (Additional data B).
    We need to bring these fields in incompletion log..Tell us what screen we should give in incompletion log config...

  • Need to modify Sales order Item additional tab B

    Hello all,
    I need to modify Sales order item additional tab B ...by removing the exisitng fields and should add some new fields ....does it have any impact on this screen could be used in any of the other transaction .......i  just wanted if we remove the fields and some new details will have some impact
    Regards,
    KK

    Additional data B is used to add your own fields also known as custom fields in sales order.
    Custom fields can be added to tables VBAK & VBAP (depending on header or item). Similarly you can remove fields if you don't require it anymore.
    In short, your requirement can be met but you have to take help of ABAP consultant since it requires maintenance of user exits and modification of screens.

  • Adding field in Additional Tab page in CRMD_order

    hi all,
            i want to add a field in the additional tab page in crmd_order Tcode,
    i did it by modifing the screen the strucutures are filled ex CRMT_SALES_BADI,
    CRMT_SALES_COM
    in the CRMC_MAP Tcode i have seen the field is added .
    wat are the further steps do i need to do to get saved and poped in the field value when reterive.
    regards

    As standard the field is set to 1 decimal place.
    You cannot change this value without modifying your system (not recommended)
    I think you can enter more decimal places in the confirmation documents e.g. IW41
    PeteA

  • Modify Sales order Item additional tab B

    I need to modify Sales order item additional tab B ...by removing the exisitng fields and should add some new fields ....which is ok. But does it have any impact becoz the same screen fields coulbe used in any of the other transaction .......i  just wanted to know if we remove the fields from sale orde item additional tab B and some new details will have some impact

    Hi,
    Before making any modifications check "Where-used". If it is in some other program other than the VA01/02/03, then better consult your lead before modifying.
    If you do not find, go ahead and make the changes confidently.
    Regards,
    Subramanian

  • Adding checkbox in Additional Tab of ME21N

    One requirement we need to do is to add checkbox in additional tab of the PO header. Is it advisable to add this field in this tab (standard) or we will just instead create a new tab in the PO header and then add the checkbox here. And then once this checkbox is ticked, we are going to assign 'X' to the field we've added in EKKO table. Kindly let us know your inputs on this. What is the better solution to this requirement? Thanks a lot!

    Hi Mariel,
    add a custom field in CI_EKKODB structure and create a screen variant using the transaction code SHD0 by maintaining the new field as checkbox.
    Satish

  • Adding Custom fields to PO Additional TAB in Header

    Hello Experts.
    We have a requirement to add 2 additional fields in the PO header - ADDITIONAL TAB.  I have included  the fields in CL_EKKO include and activated it.  Can you please let me know the exit or BADI or sample to have this in Additonal TAB.
    I understand that we can create a custom TAB in header and bring in those fields. But i would like to bring these custom fields in ADDITIONAL TAB of  PO header only....not creating any new customer tab.
    Please share your thoughts.
    Edited by: Ganeshkumaran Gopalakrishnan on Oct 6, 2011 3:57 PM

    Hi Max,
    Using SAPLXM06  0101 is adding new Custom TAB in PO Header. As i mentioned i dont want new custom tab in Header. All I want is  to add the new custom fields in the existing Additional DATA TAB of the PO header.
    There is already existing TAB called Additional DATA, i need my custom fields to be available in that TAB, rather than creating a new tab for those fields.
    Please let me know how to add it to existing Additional data tab in PO header. thx

  • Production order in the additoanl tab b in sales order

    Hello gurus,
    I have to create a new field on sales order item(additional tab b) where the production order would be filled via a batch job.
    Then i have to create a z-program to populate the new field added (this would run everyday).
    selection screen would have sales order(optional)
    sales org (required, multiple values possible)
    plant (required, multiple values possible)
    date (required field representing the date from which update is to be seen)
    logic:
    for a particular date find all the sales order changed after that date.
    read for all these whether there is a production order linked to it.
    (this can be done by reading all production oreders enterd/chnged after that date.
    for every sales order look for the value of variant characterstics b_sales_order & b_sales_order_item using method get_prod_order_multiple)
    look for sales order item with the value of this characterstic and populate the new additional field with production order.
    please advice how to proceed.
    Moderator message: "spec dumping", please work yourself first on your requirement.
    Edited by: Thomas Zloch on Feb 27, 2011 6:38 PM

    hi,
    You can changes the settings in OPU3 and also you can do it in CO03.
    If you want to restrict the user for backward scheduling except for some cases then you can do this in CO03 other wise it is better to do it in OPU3 transaction. Both cases you need to enter max days for back dated scheduling.
    For doing it is CO03 follow the pat from order header data screen.
    Menu...
    Order>>settings->scheduling parameters.
    Hope this can help.
    regards,
    kaushik

  • Additional Tab in Billing Transaction

    Hi,
    I have a requirement of adding an additional tab in the billing transaction VF01 / 02 / 03. Please can you help me suggesting any BADI or EXIT avaialable.
    I found BADI_SD_TAB_CUST_H and it is for internal use only.
    Thanks in advance.

    Hi
    SAP Note Number 302497 Additional cust. fields not displayed in 'Additional data B' and related notes tells you how to do it.
    Other useful notes:
    SAP Note 386694 - Additional data not displayed in screen 8459 and 8309
    SAP Note 420546 - Additional data B and transaction variants in sales order
    SAP Note 209278 - Display of customer-specific fields in sales doc
    Regards
    Eduardo
    Edited by: E_Hinojosa on Feb 17, 2011 3:48 PM

  • Query to mimic the items tab of the Sales Analysis report.

    Hi there,
    I'm currently looking to create a query that mimics the behaviour of the Sales Analysis report in B1. The items tab of the Sales Analysis report provides all the data I require - the only issue is that I would like to merge this data with some other data regarding current on hand stock quantities etc. and therefore I would like to be able to pull out the query behind the Sales Analysis report.
    I'm assuming this cannot be done and therefore I'm attempting to build a query to replicate the results. The query needs to show Item No, Item Description, Quantity Sold, Sales Amt (in system currency), Gross Profit and Gross Profit % for items within a given period.
    If this can be done relatively easily, can the query then be modified to show all items (including items that haven't sold in the date range) merely with '0' for Quantity Sold, Sales Amt etc. if the item hasn't been sold in the period, and the appropriate figures if each of these columns if the item has sold. I assume some kind of CASE statement can be used to generate this.
    So the query needs to show Item No, Item Description, Current quantity in stock, Quantity Sold, Sales Amt (in system currency), Gross Profit and Gross Profit % for all items within a given date range.
    I hope you can assist me with this problem.
    Thanks
    Grant.

    Hi,
    Thanks Gordon that was exactly what I needed.
    I've been trying to add some additional columns to the query but I'm experiencing some errors and I can't quite tell why.
    Basically, here's the code from another working query I have which I wish to merge into the query you've suggested above:
    SELECT T0.[ItemCode],
    T0.[ItemName],
    T3.[ItmsGrpNam],
    T4.[Name] AS [Sub-Category],
    T5.[Name] AS [Sub-Sub-Category],
    T0.[CardCode] AS [Pref Supplier],
    T6.[FirmName] AS [Brand],
    T0.[U_Range],
    T0.[OnHand],
    CASE WHEN T0.[StockValue] = 0 THEN 0 ELSE T0.[StockValue] END AS [StockValue],
    T1.[Price] AS [PBK GBP Price],
    CASE WHEN T0.[OnHand] = 0 THEN T0.[LastPurPrc] ELSE T0.[StockValue]/T0.[OnHand] END AS [Ave Cost],
    CASE WHEN T0.[OnHand] = 0 THEN T1.[Price]-T0.[LastPurPrc] ELSE CASE WHEN T0.[OnHand] > 0 THEN T1.[Price]-T0.[StockValue]/T0.[OnHand] END END AS [Margin],
    CASE WHEN T0.[OnHand] = 0 AND T0.[LastPurPrc] = 0 THEN 0 ELSE CASE WHEN T0.[OnHand] > 0 AND (T0.[StockValue]/T0.[OnHand]) = 0 THEN 0 ELSE CASE WHEN T0.[OnHand] = 0 THEN (T1.[Price]-T0.[LastPurPrc])/T1.[Price]*100 ELSE CASE WHEN T0.[OnHand] > 0 THEN (T1.[Price]-T0.[StockValue]/T0.[OnHand])/T1.[Price]*100 END END END END AS [Margin %],
    T0.[LastPurPrc]
    FROM [dbo].[OITM]  T0 INNER JOIN [dbo].[ITM1]  T1 ON T0.ItemCode = T1.ItemCode INNER JOIN [dbo].[OITB]  T3 ON T0.ItmsGrpCod = T3.ItmsGrpCod LEFT OUTER JOIN [dbo].[@U_SUBCATEGORY]  T4 ON T0.U_Subcategory = T4.Code LEFT OUTER JOIN [dbo].[@U_SUBSUBCATEGORY]  T5 ON T0.U_SubSubCategory = T5.Code INNER JOIN OMRC T6 ON T0.FirmCode = T6.FirmCode
    WHERE T0.[OnHand] >= 0 and T0.U_Range not in ('E','X')  
    ORDER BY T0.[ItemCode]
    Essentially I just wish to add the fields which are specified in the query above, but not in the query you've already suggested:
    SELECT T0.ItemCode,
    Max(T0.ItemName),
    Max(IsNull(T0.OnHand,0)) 'In Stock',
    SUM(IsNull(T1.Quantity,0)) 'Quantity',
    Sum(IsNull(T1.LineTotal,0)) 'Sales Amt',
    SUM(IsNull(T1.GrssProfit,0)) 'Gross Profit',
    Case WHEN Sum(Isnull(T1.LineTotal,0)) = 0 THEN 0 ELSE
    SUM(IsNUll(T1.GrssProfit,0))/Sum(Isnull(T1.LineTotal,0)) * 100 END 'Gross Profit %'
    FROM dbo.OITM T0
    LEFT JOIN dbo.INV1 T1 ON T1.ItemCode=T0.ItemCode
    LEFT JOIN dbo.OINV T2 ON T2.DocEntry=T1.DocEntry AND T2.DocDate Between [%0] AND [%1]
    GROUP BY T0.ItemCode
    I was hoping it would be fairly straight forward but so far I've had limited success.
    What am I missing here?
    Thanks in advance!

  • Additional field in the sales order screen

    I need some additional field in the sales order screen. There is
      also no screen exit available for VA01. Can I use this
      additional data B tab in header details by creating additional
      field in it. Please tell me how to use this tab or how to get
      different field in the sales order (header or item level).

    Hi,
       Yes. You can use this screen. For this either can modify the table VBAP with additional fields and put them on this screen.
      You have to code your logic to save these values in the include MV45AFZZ. The subscreens you have to use for this are 4462 or 8459.
    refer Screen exits - Urgent.
    with regards,
    Vamsi

  • Custom fields to Additional tab B in VA01/VA02

    Hi ,
    We have requirement where we need to add custom fields to the Additional tab B at item level in VA01 t-code.
    My doubt is to do this do we need access key? is it not possible with out access key i mean any other way to do so.
    If we add those fields in VBAP table will that automatically available in t-code, hope no............
    Please let me know the process to add the custom fields .......... 
    Regards,
    Madhavi

    Hi
    See these notes
    SAP Note 302497 - Additional cust. fields not displayed in 'Additional data B'
    SAP Note 209278 - Display of customer-specific fields in sales doc
    SAP Note 386694 - Additional data not displayed in screen 8459 and 8309
    SAP Note 420546 - Additional data B and transaction variants in sales order
    and related notes.
    And yes, you need to register it in SCCR.
    I hope this helps you
    Regards
    Eduardo

Maybe you are looking for

  • ITunes freezes (SWOD) when iPOD is connected

    Since the latest iTunes upgrade to 7.7.1, iTunes freezes (SWOD) when my iPOD is connected. Worse, if one clicks on iTunes to make it the foreground application, the entire system becomes frozen and only powering off/on with the power button gets the

  • Intercompany returns

    Hi All, As per SAP standard  scenario for intercompany returns flow 1. RE(return order type ) to RE( Invoice) - possible 2. LR(returns delivery type )  to IG(intercompany return invoice type)  But we need --based on delivery  both invoices means - 1.

  • SQL Statement on JDBC Adapter

    Hi all, how can I see the SQL Statement which is made by the JDBC Adapter. I have createt the XML Structure, but I want to know how PI (7.11) transformed the XML to SQL. How can I trace the JDBC Adapter? Which configuration is neccessary? Where can I

  • Solaris 9 container : projects?

    All, I created a Solaris 9 container for some DB testing. I've never actually used projects previously (on both Solaris 9 and 10) and now I'd like to try to use it because I like that you can use rcapstat to see the memory utilization per project. Bu

  • Unable to do iCloud Backup

    Dear Sir I'm unable to do iCloud Backup since I bought my iPhone 6 4 month ago and every time I tried manually, I got this massage, "The last backup couldn't be completed" Please see some details of my iPhone which may help you to evaluate the proble