Line Delete capability on marketing docs

Hi,
   can anyone let me know which version of SAP enables marketing docs line deletion capabilities using the SDK? Is it 8.8 or 2007 SP1?
Thanks.
Gopal

Hello
it is avaiable from B12007
Usage:
oDoc.lines.setcurrentline(i)
oDoc.lines.Delete()
regards
János

Similar Messages

  • Need additional field populated along with this FMS on Market Docs

    During creation of a marketing doc such as Sales order, the user searches for the item which has this query loaded into item field.
    SELECT T0.[ItemCode], t1.[AvgPrice],t1.[OnHand], T1.[WhsCode] FROM OITM T0  INNER JOIN OITW T1 ON T0.ItemCode = T1.ItemCode WHERE T1.[WhsCode] =(SELECT warehouse from oudg where code= 'manager') and t0.[invntitem]='Y'
    Search of item field displays other info such as quanitty in warehouse and warehouse along with item code. In above case the warehouse is 02 for maanger profile.
    However, on selecting any of the above items, the warehouse displayed on sales order is 01 (not 02 which is what it should have been). Why did not the relevant warehouse 02 get loaded?
    How can I over come this without using just the above FMS query. Do I have to use another FMS query for warehouse field also?
    Thank you.
    Hi, I have this FMS query that displays items from warehouse of the  logged in user's defaults. However, the actual warehouse on sales

    Hi,
    FMS query will only return the first column from the query result. Whatever displayed will be irrelevant. If you need Warehouse 02, FMS has to be set on warehouse column with the whscode as first column.
    Thanks,
    Gordon

  • Marketing docs including item remarks in the printed form?

    On the PO window you will see all items the user has added including text rows. When you print the document it is including the IMD remarks for parts that have that populated. I have not found why this being included. As far as I can see the text rows that are referenced in the PLD are from the Purchase Order:Rows. I see no reference to the IMD remarks. We do not want this on any of our marketing docs. It is happening on all of them currently. Any help you can offer would be greatly appreciated.
    Thanks,
    Monica

    Hi
    You have to select the specific template based on your business process . Since you have decided to put the text(function) in the purchase order and I believe documents are usually created based on copy from and copy to function , you have to find the appropriate PLD format to handle your situation .
    I have given an alternative workaround  for this issue because I donot like PO with whole bunch of text which is difficult for to read .
    1. Ask your user to use opening and closing remark instead of using text field .
    2.Display this opening and closing remarks in PLD - Database  -OPOR Field -Header
    3.Print the information on PLD .
    Limitation -user cannot see in the screen that remarks have been added unless print preview is used
    So I have ask user  to create a common code and put in remarks that means there are more remarks associated with this documents
    Hope this helps  you
    Bishal

  • Re-enable UDF in Marketing Docs

    Hi,
    I had created a UDF in marketing docs with DI API and in my code I set the field to be Enabled = false, ok, no problems until yesterday. Now I need to set Enabled = true but i'm getting the error "The field is not a user defined field" and i can't set my Enabled back to true;
    This is a bug?
    I already made a search in the forum, I found only one problem like mine but it's not solved:
    - Enabling & Disabling UDF's
    Thanks,
    Ricardo Momm

    Hi Edward,
    I'm accessing the UDF via user interface with UIAPI. If I try to set the Enabled property to False nothing happens but if I try to set the Enabled property to True the exception "Item is not a user defined item" is throw.
    form.Items.Item("U_Field").Enabled = false; // no error
    form.Items.Item("U_Field").Enabled = true; // throw not a UDF field
    The point is, in the first run when I set the Enabled property to false there is no exception and the Field is disabled, after this operation i can't set the Enabled property to true again.
    My SAP B1 Version is: 2005B PL34
    PS: sorry with the poor english... i'm still learning

  • PRICE LIST LINE을 DELETE 하는 SAMPLE API

    제품 : MFG_QP
    작성날짜 : 2006-05-23
    PRICE LIST LINE을 DELETE 하는 SAMPLE API
    ========================================
    PURPOSE
    Price List Lines을 delete 할 수 있는 API가 있는지 알아보고 그 사용방법
    을 이해한다.
    Explanation
    아래 설명하는 script는 Price List Lines 만을 delete 하는 sample API
    script 이므로 고객사의 business needs에 맞게 고객사에서 script를 수정하
    여 사용하여야 한다.
    Oracle은 QP_LIST_LINES table에 있는 created_by, creation_date 등을 이용
    하여 관련된 records를 읽을 수 있는 cursor를 생성하영 사용할 것을 권장한
    다.
    QP_LIST_LINES table의 list_line_id를 읽어 delete를 위해
    qpr_price_list_line_tbl에 전달한다.
    참고로 각 1000이 반복될때 마다 commit 하는것을 권한다.
    /*$Header: QPPLXMP3.sql 115.3 2001/11/19 18:15:32 pkm ship $*/
    Sample script which deletes an existing Price List line and the product
    information for the line (Product Information is stored in pricing
    attributes table in product attribute columns).
    This sample price list does not have any qualifiers or price breaks or
    non product-information type of pricing attributes.
    This script must be modified by the user such that the
    qpr_pricing_attr_tbl(J).product_attr_value column is populated with a valid
    inventory_item_id from the instance where this script is run. Also, other user variables are noted within arrows, <>.
    Please read the Oracle Pricing User guide (Appendix A & B) to understand
    the flexfields and seed data.
    -- set environment variables
    set serveroutput on size 1000000
    set verify off
    set feedback off
    set echo off
    set autoprint off
    set arraysize 4
    set pagesize 58
    set term on
    set underline =
    set linesize 100
    declare
    gpr_return_status varchar2(1) := NULL;
    gpr_msg_count number := 0;
    gpr_msg_data varchar2(2000);
    gpr_price_list_rec QP_PRICE_LIST_PUB.Price_List_Rec_Type;
    gpr_price_list_val_rec QP_PRICE_LIST_PUB.Price_List_Val_Rec_Type;
    gpr_price_list_line_tbl QP_PRICE_LIST_PUB.Price_List_Line_Tbl_Type;
    gpr_price_list_line_val_tbl QP_PRICE_LIST_PUB.Price_List_Line_Val_Tbl_Type;
    gpr_qualifiers_tbl QP_Qualifier_Rules_Pub.Qualifiers_Tbl_Type;
    gpr_qualifiers_val_tbl QP_Qualifier_Rules_Pub.Qualifiers_Val_Tbl_Type;
    gpr_pricing_attr_tbl QP_PRICE_LIST_PUB.Pricing_Attr_Tbl_Type;
    gpr_pricing_attr_val_tbl QP_PRICE_LIST_PUB.Pricing_Attr_Val_Tbl_Type;
    ppr_price_list_rec QP_PRICE_LIST_PUB.Price_List_Rec_Type;
    ppr_price_list_val_rec QP_PRICE_LIST_PUB.Price_List_Val_Rec_Type;
    ppr_price_list_line_tbl QP_PRICE_LIST_PUB.Price_List_Line_Tbl_Type;
    ppr_price_list_line_val_tbl QP_PRICE_LIST_PUB.Price_List_Line_Val_Tbl_Type;
    ppr_qualifiers_tbl QP_Qualifier_Rules_Pub.Qualifiers_Tbl_Type;
    ppr_qualifiers_val_tbl QP_Qualifier_Rules_Pub.Qualifiers_Val_Tbl_Type;
    ppr_pricing_attr_tbl QP_PRICE_LIST_PUB.Pricing_Attr_Tbl_Type;
    ppr_pricing_attr_val_tbl QP_PRICE_LIST_PUB.Pricing_Attr_Val_Tbl_Type;
    K number := 1;
    j number := 1;
    begin
    oe_debug_pub.initialize;
    oe_debug_pub.setdebuglevel(5);
    Oe_Msg_Pub.initialize;
    DBMS_OUTPUT.PUT_LINE('Debug File = ' || OE_DEBUG_PUB.G_DIR||'/'||
    OE_DEBUG_PUB.G_FILE);
    --dbms_output.put_line('after get price list ');
    /* setup the list_header rec for update */
    gpr_price_list_rec.list_header_id := <price_list_header_id>;
    gpr_price_list_rec.name := <price_list_name>;
    gpr_price_list_rec.list_type_code := 'PRL';
    gpr_price_list_rec.description := '<price_list_description>;
    gpr_price_list_rec.operation := QP_GLOBALS.G_OPR_UPDATE;
    -- delete the price list line rec
    gpr_price_list_line_tbl(K).list_header_id := <price_list_header_id>;
    gpr_price_list_line_tbl(K).list_line_id := <price_list_line_id>;
    gpr_price_list_line_tbl(K).list_line_type_code := 'PLL';
    gpr_price_list_line_tbl(K).operation := QP_GLOBALS.G_OPR_DELETE;
    --dbms_output.put_line('before process price list ');
    QP_PRICE_LIST_PUB.Process_Price_List
    ( p_api_version_number => 1
    , p_init_msg_list => FND_API.G_FALSE
    , p_return_values => FND_API.G_FALSE
    , p_commit => FND_API.G_FALSE
    , x_return_status => gpr_return_status
    , x_msg_count => gpr_msg_count
    , x_msg_data => gpr_msg_data
    , p_PRICE_LIST_rec => gpr_price_list_rec
    , p_PRICE_LIST_LINE_tbl => gpr_price_list_line_tbl
    , p_PRICING_ATTR_tbl => gpr_pricing_attr_tbl
    , x_PRICE_LIST_rec => ppr_price_list_rec
    , x_PRICE_LIST_val_rec => ppr_price_list_val_rec
    , x_PRICE_LIST_LINE_tbl => ppr_price_list_line_tbl
    , x_PRICE_LIST_LINE_val_tbl => ppr_price_list_line_val_tbl
    , x_QUALIFIERS_tbl => ppr_qualifiers_tbl
    , x_QUALIFIERS_val_tbl => ppr_qualifiers_val_tbl
    , x_PRICING_ATTR_tbl => ppr_pricing_attr_tbl
    , x_PRICING_ATTR_val_tbl => ppr_pricing_attr_val_tbl
    IF ppr_price_list_line_tbl.count > 0 THEN
    FOR k in 1 .. ppr_price_list_line_tbl.count LOOP
    dbms_output.put_line('Record = '|| k ||
    'Return Status = '|| ppr_price_list_line_tbl(k).
    return_status);
    END LOOP;
    END IF;
    IF gpr_return_status <> FND_API.G_RET_STS_SUCCESS THEN
    RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
    END IF;
    dbms_output.put_line('after process price list ');
    for k in 1 .. gpr_msg_count loop
    gpr_msg_data := oe_msg_pub.get( p_msg_index => k,
    p_encoded => 'F');
    dbms_output.put_line('err msg ' || k ||' is: ' || gpr_msg_data);
    null;
    end loop;
    EXCEPTION
    WHEN FND_API.G_EXC_ERROR THEN
    gpr_return_status := FND_API.G_RET_STS_ERROR;
    -- Get message count and data
    --dbms_output.put_line('err msg 1 is : ' || gpr_msg_data);
    WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
    gpr_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
    --dbms_output.put_line(' msg count 2 is : ' || gpr_msg_count);
    for k in 1 .. gpr_msg_count loop
    gpr_msg_data := oe_msg_pub.get( p_msg_index => k,
    p_encoded => 'F');
    -- Get message count and data
    dbms_output.put_line('err msg ' || k ||' is: ' || gpr_msg_data)
    null;
    end loop;
    WHEN OTHERS THEN
    gpr_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
    -- Get message count and data
    --dbms_output.put_line('err msg 3 is : ' || gpr_msg_data);
    end;
    commit;
    --- exit;
    Reference Documents
    Note 362667.1

    Name: Chris Mentch
    Region: US/Americas
    Contact E-mail: chris.mentch at mentchconsulting.com
    Website: http://www.mentchconsulting.com
    Time working with BC: 1.5+ years
    Programming Languages: PHP, JSP, Javascript, Ruby/RoR, Jquery, .Net (if I have to), SOAP API
    Custom BC Client Applications: Integrating custom external applications with Business Catalyst through eCommerce and CRM APIs.
    Name: cindy radford
    Region: Americas Canada
    Contact E-mail: [email protected]
    Website: http://.com
    Logo: Link to your logo image (no larger than BC standard partner image, I will place this at the top of your listing)
    Time working with BC: new
    Programming Languages: Cobol and mainframe, starting web development
    Third Party API Experience: Cobol
    Custom BC Client Applications: None as of yet
    Name: eBridgeConnections
    Region: Americas, APAC, Europe, Africa
    Contact E-mail: [email protected]
    Website: http://www.ebridgeconnections.com
    Logo: http://www.ebridgeconnections.com/images/ebhome/logo.png
    Time working with BC: 1.5 years
    Programming Languages: n/a - Back-office integration with 40+ accounting/ERP systems
    Third Party API Experience: 20+ eCommerce platforms, CRM (SalesForce)
    Custom BC Client Applications: B.C. API integration
    Name: OneSaas (www.OneSaas.com) - Cloud Integrations Made Easy
    Contact E-mail: [email protected]
    Website: http://www.onesaas.com
    Time working with BC: 2 yeras
    Third Party API Experience: We integrate over 35 cloud platforms with BC. We know every API from almost every system.

  • Sales order line delete fails for treetype=S line items

    SBO v8.8 PL17
    In a Windows Console DI application, I need to delete lines that have TreeType=S from a Sales Order.
    I get an error message that the Delete Line Failed and no other details for the error.
    I have no trouble deleting the line in the SBO client sales order screen.
    Often, the Sales Bill of Materials (SBOM) for the item on the SO line has changed after the line was created. 
    Could the DI be validating the child item rows (treetype=I) for the father item against the current lines in the SBOM and blocking the deletion because they no longer match? 
    In any case, how can I get around it or at least find out the actual reason the the line deletion fails?

    Is the error description the same when you use old-school error checking?
                         If FixSO.GetByKey(DocEntry) Then
                             FixSO.Lines.SetCurrentLine(LineNum)
                             Try
                                 FixSO.Lines.Delete()
                                 tst = FixSO.Update
                                 If tst &lt;&gt; 0 Then
                                     Dim errCode As Integer = 0
                                     Dim errMsg As String = String.Empty
                                     oCompany.GetLastError(errCode, errMsg)
                                     Console.WriteLine(errCode & " " & errMsg)
                                 End If                   
                             Catch ex As Exception
                                 Status = ex.Message & vbCrLf & oCompany.GetLastErrorDescription
                                 Console.WriteLine(Status)
                             End Try
                         End If

  • Hide UDFs in Marketing Docs (Not Displayed)

    Hi All,
    I have created 12 UDFs in Marketing Docs for the "Stock Transfer"....But they will appear in all the Marketing Docs (AR and AP and many, many, many more)  It seems like I would have to go into each and every Marketing Doc under each and every User Name and Edit the UDFs Settings.
    Is there a way I can hide these UDFs from all the Marketing Docs/Forms except the intended Form??? (Stock Transfer Form) without the use of coding.  I want to use the Std SBO Customizing functionality...
    Thanks Guys

    Hi Noor,
    I don't know a way to block the added UDFs to be visible and modified by the user...  unless changing the settings for the specific form (be careful the user has no rights to change them one more time and block your calculations).
    The best way to avoid problems is to block the user from modifying them by disabling them when the form is loaded (by using SDK).
    Anyone else has a better trick?
    Regards
    Trinidad.

  • Quantity conversion check failed for one item; all qty lines deleted

    Hi IS Oil Experts,
    Iam using the BAPI "BAPI_GOODSMVT_CREATE_OIL" for posting goods movement. I filled the additional quantities and unit of measures also in the BAPI table, But when tried to execute, Iam getting the error, "Quantity conversion check failed for one item; all qty lines deleted"
    Please anybody tell me what is the error from end for resulting this message.
    Thanks in advance
    Prathib

    Dear you!
    I also get the issue that you meet. Can you help me to process it, Please/
    Best regards, Huy.

  • How to detect a line delete (order)

    When the user delete's a line in the order form I have to do a delete in a usertable.
    The usertable contains the linenum and docentry of the line.
    But I can't seem to find an event that gets triggerd when the user delete's this line.
    When I look at the FormDataEvent a form_update is triggerd but with no way of telling what happened.
    Is there a way to know if there has been a line delete?

    Hi Marc,
    Other option is after user click update, Before action = false,
    You check this order against the ADOC & DOC1 tables (Audit tables). A simple SQL select statement can give you the line num of the deleted lines.
    Regards
    Edy
    Edited by: Edy Simon on May 20, 2009 2:20 PM

  • UDF populating on Marketing Doc's Matrix

    Hi all,
    I've created UDFs in the IGN1 table using the sdk but all the Fields are being displayed in all the Marketing Doc's Matrix. ie: AR & AP.  I dont want them to be displayed on all the forms.  I only want them to appear on the "Reciept from Production Form".  How do I do that?
    Thanks

    Hi guys,
    I'm getting an Exception:
    "System.Runtime.InteropServices.COMException (0x80040111): Retrieving the COM class factory for component with CLSID {FD65E5A4-2232-452B-8541-5BC1EC3FF9C6} failed due to the following error: 80040111."
    with the following snippet...
        Public Sub SetFormPreferences()
            Dim oCompanyService As SAPbobsCOM.CompanyService
            Dim oFormPreferencesService As SAPbobsCOM.FormPreferencesService
            Dim oColumnsPreferences As SAPbobsCOM.ColumnsPreferences
            Dim oColumnsPreferencesParams As SAPbobsCOM.ColumnsPreferencesParams
            Dim oColumnPreferences As SAPbobsCOM.ColumnPreferences
            oCompanyService = oCompany.GetCompanyService
            oFormPreferencesService = oCompanyService.GetBusinessService(SAPbobsCOM.ServiceTypes.FormPreferencesService)
            System.Runtime.InteropServices.Marshal.ReleaseComObject(oCompanyService)
            Try
                oColumnsPreferencesParams = New SAPbobsCOM.ColumnsPreferencesParams
                oColumnsPreferencesParams.FormID = "139"
                oColumnsPreferencesParams.User = 1
                oColumnsPreferences = oFormPreferencesService.GetColumnsPreferences(oColumnsPreferencesParams)
                oColumnPreferences = oColumnsPreferences.Item("U_ETypDe")
                SapApp.MessageBox("In form 139, U_ETypDe visibility is set to - " & oColumnPreferences.VisibleInForm)
            Catch ex As Exception
                SapApp.MessageBox(ex.ToString)
            End Try
        End Sub
    Can anyone help with this?
    Thanks

  • I have a officejet pro 8500 getting a black vertical line only when i put doc. in feeder?

    I have a officejet pro 8500 getting a black vertical line only when i put doc. in feeder?
    thanks Karl

    Clean the small glass strip under the ADF, also clean the withe scanner backing and white strip under the ADF.
    I was an HP employee.
    Kudos are appreciated if I have helped you.

  • Grey lines across my Placed Word doc

    What is causing grey lines across my Placed Word doc and how do I get rid of them?

    It looks indeed -- from your screenshot -- like you've got paragraph rules enabled as a default setting currently in your document.
    Before you place the Word document in your InDesign document try the following:
    Edit > Deselect All (to ensure you have nothing selected).
    Type > Paragraph Styles - ensure [Basic Paragraph] is selected.
    Type > Character Styles - ensure [None] is selected
    Type > Paragraph. From the Paragraph panel menu choose Paragraph Rules
    Select Rules Above (top left menu), ensure Rule On is not selected.
    Select Rules Below (top left menu), ensure Rule On is not selected.
    Also if you are inserting your docx into an existing text frame, check that at the insertion point (click with type tool as insertion point), the Paragraph Rules are disabled.
    Next try and place your docx again. Hopefully that'll resolve the issue.
    Cari

  • The line (delete, reply or reoute)  below the email disapeared. Can you help me?

    The line (delete, reply or reoute)  below the emails disapeared. Can you help me?

    Try to quit the app by double clicking the Home button and in the multitasking menu tap an hold the Mail app until it starts to wiggle and tap the that appears.
    Also try to reset the device by holding then Sleep/Wake button and the Home button at the same time for 10 seconds until the Apple logo apears.
    Hope that helps

  • Update material doc.num in assignment field of GR/IR line item of a/c doc

    HI Experts,
    please tell me the solution for my problem
    My requirement : Transaction is : MIGO
    Before posting of material document, update material document number in assignment field of GR/IR line item of accounting document (WE) at number commitment stage
    Update MKPF-MBLNR (Material Document Number) in BSEG-ZUONR
    but already i tried AC_DOCUMENT i got a problem .
    What i did,
    first use MB_DOCUMENT_BADI with method
    mb_document_before_update.
    here i tried to get the material document and export into memory
    after use AC_DOCUMENT With method
    change_after_check.
    here Import the material document doc num and pass it to Assignment field in
    but it is not working
    when i debug first trigger the AC_DOCUMENT And then it goes to MB_DOCUMENT_BADI
    Plese help me regarding this.
    Moderator message: please open only one thread per issue.
    Edited by: Thomas Zloch on Feb 9, 2012

    Hi,
    Thanks, I will check the same. Well, I will be clearing the documents with reference to MIGO number itself. When I do my delivery chrgs migo, that number I need to be populated in my line item's assignment field. Not only that but I the same number should get populated in the delivery charges miro. Since my miro is with ref to PO it becomes difficult to fetch the field.
    Plz let me know if you can help me on this as well.
    Thanks,
    Priyanka.

  • Schedule Lines deletion from Scheduling agreement

    Hello all
    There is a requirement of mass changes deletion of existing Schedlue lines from Schedling agreement ( from around 800 Scheduling agreement). 
    SAP  version is 4.7(Which doesnt have MEMASSSA-std t-code for mass maintenance of scheduling agreement).
    Please advise, how these can be deleted in bulk.
    Thanks & Regards
    Rajesh

    Hi
    Go to table :SE16 :
    Enter :EKET
    download to the excel file do the correction  then upload the file to to the table.
    Please check with your SAP ABAP team and with  your Client
    (or)
    do it manuallly .go to me38 enter the sch.agreement no and delete the qty and save . it is time consuming
    it willl  take a day or Two.
    This is the best solution
    Regards
    Ganesh

Maybe you are looking for