Automatic Add UDO Document header & Lines Fields

Hello.
I have created a user defined table & also fields and then registered the UDO .
Now i want to automatic add data in that registered UDO through Code .
Is it possible to do this ?
Thanks & Regards,
Amit

Hi Amit,
Please see the following,
SAPbobsCOM.CompanyService oCompanyService = null;
SAPbobsCOM.GeneralService oGeneralService = null;
SAPbobsCOM.GeneralData oGeneralData = null;
SAPbobsCOM.GeneralDataCollection oChildren = null;
SAPbobsCOM.GeneralData oChild = null;
oCompanyService = oCompany.GetCompanyService();
oGeneralService = oCompanyService.GetGeneralService("UDPOPDN");
oGeneralData = ((SAPbobsCOM.GeneralData)(oGeneralService.GetDataInterface(SAPbobsCOM.GeneralServiceDataInterfaces.gsGeneralData)));
oGeneralData.SetProperty("U_DocEntry", GRPO);//收货单号
oGeneralData.SetProperty("U_BaseEntry", dr["订单号"].ToString());//采购订单号
oGeneralData.SetProperty("U_BaseLine", dr["行号"].ToString());//采购订单行号
oGeneralData.SetProperty("U_CardCode", dr["客户编号"].ToString());//供应商编号
oGeneralData.SetProperty("U_CardName", dr["客户名称"].ToString());//供应商名称
                                   oGeneralData.SetProperty("U_ItemCode", dr["物料编码"].ToString());//物料编号
oGeneralData.SetProperty("U_CardCode", dr["物料描述"].ToString());//物料名称
oGeneralData.SetProperty("U_Quantity", Convert.ToDouble(dr["入库重量"].ToString()));//入库重量
oGeneralData.SetProperty("U_FreWeight", Convert.ToDouble(dr["免费重量"].ToString()));//免费重量
//oGeneralData.SetProperty("U_TolWeight", Convert.ToDouble(dr["称重单位毛重"].ToString()));//称重单位毛重
oGeneralData.SetProperty("U_TolWeight", Convert.ToDouble(dr["毛重"].ToString()));//毛重
oGeneralData.SetProperty("U_Unit", Convert.ToDouble(dr["系数"].ToString()));//系数
//oGeneralData.SetProperty("U_PurWeight", Convert.ToDouble(dr["采购单位毛重"].ToString()));//采购单位毛重
oGeneralData.SetProperty("U_PacWeight", Convert.ToDouble(dr["包装"].ToString()));//包装
oGeneralData.SetProperty("U_DedWeight", Convert.ToDouble(dr["扣重"].ToString()));//扣重
oGeneralData.SetProperty("U_ScaleCode", globals_Renamed.gScaleCode);//磅秤编号
oGeneralData.SetProperty("U_ScaleUser", globals_Renamed.gUserCode);//过磅员
oChildren = oGeneralData.Child("U_DPPDN1");
foreach (DataRow drLine in globals_Renamed.gOrderInfo.Tables[dr["行号"].ToString()].Rows)
oChild = oChildren.Add();
oChild.SetProperty("U_LineNum", drLine["序号"].ToString());
oChild.SetProperty("U_Quantity", Convert.ToDouble(drLine["称重值"].ToString()));
oChild.SetProperty("U_Package", Convert.ToDouble(drLine["包装物"].ToString()));
oChild.SetProperty("U_ScaleTime", drLine["称重时间"].ToString());
SAPbobsCOM.GeneralDataParams oGeneralParams = null;
oGeneralParams = oGeneralService.Add(oGeneralData);
Best regards
Huan

Similar Messages

  • How to add/change missing header lines in RNIF B2B?

    Hi all,
    We are using RNIF exchange protocol. We have sent invoice from BPEL to B2B. The message invoice reaches the trading partner but they are unable to process it or sent ack back as few header lines are missing in the RNIF envelope.
    Can anyone tell me or provide some pointers abt how to add/change missing header lines in B2B?
    These are the headers missing:
    Delivery header:
    <locationID> <Value>HostTradingPartner</Value> </locationID>
    Service Header:
    <messageStandard>
    <FreeFormText xml:lang="EN">PIDX</FreeFormText>
    </messageStandard> <standardVersion>
    <VersionIdentifier>1.0</VersionIdentifier>
    </standardVersion>
    Can anyone provide some inputs on this?

    As per RNIF standard, all these header elements (locationID in Delivery Header & messageStandard and standardVersion in Service Header) are optional. As you are using RossettNet over RNIF, so Oracle B2B might not be setting these headers.
    I do not have a 10g setup here so cann't test it. I would suggest you to raise a case with Oracle Support because PIDX is a non-RossettaNet standard and it's implementation in Oracle B2B will be different to RossettaNet implementation. Meanwhile, I would try the same in B2B 11g setup.
    Regards,
    Anuj

  • Add UDO  document info and document lines info within 1 process ?

    hi,
    how can i add my udo-document with all lines in 1 process like the sap marketing documents?
    At the moment i first have to add the document once before i can add some lines in my matrix.
    If the document is not stored i cannot add document lines.
    Is there a way to put all my information in my form (head, position) and then push the button "add" ?
    best regards
    Markus

    Hi Markus,
    You can add new lines, before adding the document, using the DBDataSource's .Insert() method or the Matrix's AddRow() method.
    If you're writing directly in the DBDataSource, which I recommend because it doesn't fire any event's, you don't need to manually add the first line, but for all the next lines you must use the .Insert() method.
    Regards,
    Vítor Vieira

  • Accounting document header text field

    Gurus
    I need some help pulling a header text field from an accounting document. I need to run a report on that. Header text is not stored in a table, can anyone suggest what the best way to do that is?
    thanks!

    Thanks for the tip on those tables. I was able to get some data in STXL -
    FF06010102028000343130320000000063010000121F9D021D331F030303230F90606065C00642187C183C19FC185CD74254AE028BB28029468E7510C17D5033
    It seems like its in hex, i entered "Error Code :1" in the text field and got this stored in the table!

  • Add new email header line and add Bcc recepient to this additional header.

    Hi Folks,
    iMS5.2p1, Solaris 8.
    Just after a few directions. I have a 'catch-all' mbox, that customer POP's. The customer then uses MDaemon to deliver email, based on rules to correct recepients, works fine until a Bcc comes in, as quoted below.
    Why doesn't MDaemon parse the BCC header?
    BCC only works with SMTP mail. By definition, the carbon copy is "Blind".
    There are no headers in the message which can be parsed using the POP3 method that would provide the address. The only hope for these kinds of messages is to get the ISP to stamp the message file with the delivery information from the SMTP session during delivery to the ISP. For example, when the person sends the BCC message to the ISP hosting the mail, some of them stamp a header called "Deliver-To:" into the message. MDaemon could pick up on such a header if it existed.
    I know I would have to tackle this with either a re-write/mapping/conversion, but not sure what the best approach, ie to add and rewrite the Bcc, recepient into the new 'Deliver-To:' header.
    Any good solutions/tips ?
    Cheers folks.

    Hi Jay,
    Sorry if there is any confusion. The customer at his premises has a server running this mail app. called MDaemon, which uses filters to deliver to local mboxes for their users. The customer in question just wanted a 'catch-all' mbox with iMS for his domain (which we host), to just POP3 this mbox and then the customer's MDaemon app, parses through filters to deliver to correct local mbox. They didn't want to have each user's mbox hosted on iMS....as yet anyway, thus the need for 'catch-all' delivery of email for the customer domain to one iMS mbox.
    The problem is with any Bcc email for customer's domain. As described POP3 as per definition hides the Bcc line, thus MDeamon filters at customer end will fail delivery to intended recepient. Thus the doco from MDaemon as explained to me from the customer can handle additional header lines and parse that way. Thus the need to add the recepient in the Bcc line to an additional header (ie. Deliver-To: [Bcc smtp recepient]). Then as MDeamon doco says it can be setup to parse and deliver to correct local mbox. I hope that my be a little clearer.
    So I need to on iMS rewrite any Bcc recepient for customers 'catch-all' mail domain and add another header line (ie. Deliver-To: [Bcc smtp recpient]). So when customer POP's iMS mbox, Mdeamon at customer's end will parse and deliver locally.
    Hope that makes sense and the best way to add an additional header and take the original Bcc line and add to to new header is.....hopefully a pointer from your good self.
    Cheers.

  • Requirement to add new Document data restriction Field in OLI8BW

    HI
           I need to fill in Set Up Tables for 2LIS_12_VCITM (Deliveries) in source system. I want to restrict data only to past 3 years (2008-2010). Currently i dont have an option to select year in the Document Data Restriction area of the statistical set up screen. Please let me know how to add a year field in this area to restrict the data.
    Thanks much.

    HI
    for this requirement customization is not possible.
    Regards,
    Chandra.

  • Document Header Field Control

    Dear Forum Members,
    I wanted to clarify that what controls the document header field status (other than document type to controll documnet date, posting date, company code, ledger group, doc type, exchange currency, transalation date to make suppress, required, optional). noramlly FSV will control only line item fields.
    Thanks,
    Shekar.

    Hi
    Friend,
    1. Document Type-Controls--Document no ranges
    2. Document Type-controles-Document Headier
    3. Document Typecontrol--Line item of the document
    Your Requirement;
    1. Document Header -
    controls---Field status
    1. Acount Groups-Controls-No ranges
    2. Accounts Groups-Controls-Field Status
    1. GL Controls-controls-Field status
    1. Field statusControls-Cost centers
    2. Field status -controls-Internal orders
    3. Field status -controls-Profitability segments
    Thanks
    Anil

  • Add Header Line tot he output File

    Hi,
    Proxy to File Senario.
    Details records are coming through proxy.
    I need to add a static header line in the file that is created..
    The Header line is something Like this :- "SSN";"UPI";"EFF_DATE";"STATUS";"STATUS_ACTION_CD";"PAY_CONTINUATION";"LASTNAME";"FIRSTNAME";"MI";"NAME_SFX";"LOC_CODE";"EMP_CAT";"
    The configuration that i did in Content Conversion:-
    Recordset :- HEADER,ROOT
    HEADER.addHeaderline : 1
    HEADER.headerline : "SSN";"UPI";"EFF_DATE";"STATUS";"STATUS_ACTION_CD";"PAY_CONTINUATION";"LASTNAME";"FIRSTNAME";"MI";"NAME_SFX";"LOC_CODE";"EMP_CAT";"
    ignoreRecordsetName : true
    ROOT.fieldSeparator : ;
    ROOT.endSeparator : 'nl'
    <b>But the error in Communication channel monitoring is : -</b>
    Conversion initialization failed: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: Parameter 'HEADER.fieldFixedLengths' or 'HEADER.fieldSeparator' is missing....
    So Plz help me out in this.....
    Thanks
    Harpreet

    Hi Harpreet,
    You can pass the static header content in your message mapping ....to the target header field..
    and then use a normal FCC to print out the structure...
    Regards,
    Sushil H.

  • Abap2xlsx create worksheet how to set fields in header line without filtersymbol?

    Hello Forum,
    I am using a package of abap2xlsx (Excel Export ABAP 2 XLSX)   and some methods from zcl_excel classes to create a worksheet for internal table gt_table and download it.
    Following is some Koding I am using,
    When the excel worksheet is downloaded, the header line contains filter symbols in all header fields, when using method bind_table (see A:).
    Is there a way to set the header line fields without a filtersymbol?
    if I replace the call on method bind_table (see A:)  by call on method convert (see B:)
    then there are no filtesymbols, but in this method I cannot give a fieldcatalog table as exporting parameter.
    And I want to change the texts in the header.
    Thanks for any suggestions,
    Regards Henricus Kroft
    DATA: lo_excel         TYPE REF TO zcl_excel,    
               lo_converter    TYPE REF TO zcl_excel_converter,
               lo_worksheet  TYPE REF TO zcl_excel_worksheet,
               lo_writer          TYPE REF TO zif_excel_writer,
    Data:
    gt_rawdata      TYPE solix_tab.
    ls_table_set-table_style  = zcl_excel_table=>builtinstyle_light1.
       lo_worksheet = lo_excel->get_active_worksheet( ).
      A begin:   lo_worksheet->bind_table( ip_table    = gt_table
                              it_field_catalog  = lt_field_catalog
                              is_table_settings = ls_table_set ).
      A end
       B begin:   lo_converter->convert( EXPORTING
                                    it_table     = gt_table
                                    i_row_int    = 1
                                    i_column_int = 1
                                    io_worksheet = lo_worksheet
                                 CHANGING
                                    co_excel     = lo_excel ) .
    B end
    * " create output file in EXCEL format as type RAW
      lf_xdata = lo_writer->write_file( lo_excel ).
    * After 6.40 via cl_bcs_convert
      gt_rawdata = cl_bcs_convert=>xstring_to_solix( iv_xstring  = lf_xdata ).
      lf_bytecount = xstrlen( lf_xdata ).
      OPEN DATASET gf_datn1_str FOR OUTPUT IN BINARY MODE.
      CHECK sy-subrc = 0.
      lf_bytes_left = lf_bytecount.
      LOOP AT gt_rawdata ASSIGNING <ls_rawdata>.
        AT LAST.
          CHECK lf_bytes_left >= 0.
          TRANSFER <ls_rawdata> TO gf_datn1_str LENGTH lf_bytes_left.
          EXIT.
        ENDAT.
        TRANSFER <ls_rawdata> TO gf_datn1_str.
        SUBTRACT 255 FROM lf_bytes_left.  " Solix hat Länge 255
      ENDLOOP.
      CLOSE DATASET gf_datn1_str.

    Dear SeánMacGC thanks for reply,
    But "a.changed" is not a field in GNMT_CUSTOMER_MASTER_CHG. what i am doing in this procedure is i am collecting bulck data and validating field by field from GNMT_CUSTOMER_MASTER_CHG with GNMT_CUSTOMER_MASTER table as their structure is same.. if v_name is not same as v_name_chg then i am setting changed flag to "Y" changed is "changed dbms_sql.varchar2_table" and updating GNMT_CUSTOMER_MASTER in bluck where changed flag ='Y'...
    type custRec is record
    n_cust_ref_no dbms_sql.number_table,
    v_name dbms_sql.varchar2_table,
    v_name_chg dbms_sql.varchar2_table,
    rowid rowidArray,
    *changed dbms_sql.varchar2_table*
    i cannot use simple SQL as i need to validate field for each records with GNMT_CUSTOMER_MASTER_CHG and insert into log file as well.....
    to run this procedure:
    execute DO_DC_NAME_UPDATE_OTHER_TAB.DO_NAME_UPDATE_OTHER_TAB;
    Thanks...

  • Check on multiple header line data.

    Hi All,
    I have one requirement where i need to check the multiple accounting document header line.
    Kindly suggest how to check the above requirement.
    Thanks in Advance!
    Regards,
    Chirag

    Hi All,
    Sorry for the short description.
    Currently i am validating only the one header line data of expense spread sheet file with vendor. but the now requirement has changed and there can be a multiple header line item also.
    So i need to check for each header line item whether vendor already exist or not.
    I am able to check it for 1 header line item, Kindly suggest how to check it for multiple header line item.
    Thankyou.
    Chirag

  • Adding report header lines using expand.xsl style sheet

    Hello
    I would like to add a few header lines (appears only at the first page of the report) into my XML report that is based on expand.xsl style sheet. 
    Since I am not familiar with XML, is there any example or a modified (ready to run) expand.xsl style sheet that implements it?
    Thank you
    Zvika

    Hey Zvika,
    Chek out this website:  http://zone.ni.com/devzone/cda/epd/p/id/4759
    NI doesn't support any changes in the xsl however so if you change it you are on your own.  You can look to this website for help with that: http://www.w3.org/XML/
    Regards,
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • How to populate Doc Header Text Field & Ref Field in OASV Transaction?

    Hello everyone,
    I need to seek your help regarding, on how can I populate values in "Document Header Text Field" & "Reference Text Field" in OASV transaction, as these fields are invisible and are mandotory at document type.
    (I know we can disable their status in the document type, but we don't want to do so).
    Regards,
    Saurabh Patni

    Hi Mukthar,
    Thanks for the quick reply.
    I had tried to work out with substitution rule for the document type and transaction code, but still no use, the same error persists.
    (In Subsitution I am going with constant value to be replaced), I am defining it for Callup point 1, but it is not working.

  • Make Document header text mandatory

    Hi,
    I want make Document header text mandatory at document parking level. Please suggest me which user exit I can use for that. Please help me.
    Rgds,
    Hemant Maurya

    Hello,
    There is nothing like make header text mandatory at the time of parking.
    However, you can make header text mandatory at the time of posting.
    In OBA7 - document type, make the document header text field as mandatory - last two check boxes.
    Regards,
    Ravi

  • RWIN to automatically add line items in FI document

    Hi all!
    I wish to know if is possible to automatically add line items in a FI document via RWIN and how.
    My final goal is the following:
    A user try to create an FI document with FB01 transaction.
    He/She insert the appropriate line items manually.
    He/She press the "Simulation" button
    In simulation screen there are user's line items, PLUS some more that are necessary in some circumstances.
    Is it possible to achieve this scenario?

    Hi Marinos,
    i think it's  possible via table <b>TRWPR</b> and an
    appropriate function module but it's hold for a modification by SAP.
    other possible solutions:
    - user exit ?
    - interface ( e.g. Intranet-appl. / excel)
      and posting via RFBIBL00 / BAPI
    regards Andreas

  • How to add header line in a file from XI system using file adapters

    Hi All,
    I need to add header line (Column names) in a file coming from XI system.
    I am using file adapters.
    Thanks & Regards,
    Gaurav Mittal

    The Receiver File Adapter is configured, using the following settings:
    1) Choose File Content Conversion as the Message Protocol.
    2) You give the ‘addHeaderLine’ parameter as 1
    3) For the ‘fieldSeparator’ parameter you need to give field separator for both list and substructure (referring to the data type above). For eg: it may be a ‘,’ (comma) for substructure in a comma separated file.
    4) The ‘endSeparator’ parameter needs to given for substructure only. For eg: it may be a ‘nl’ (new line)
    5) Give the file name, the directory and the Construction mode. Activate all the settings. Receiver File Adapter with F.C.C. is configured.
    please visit the blog.
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2

Maybe you are looking for

  • Authorization issue within a table in BI

    Hello All, Here is my authorization issue : We have set up an authorization on infoobject Zapplication. End user is allowed to choose "HR" only. In Rsecadmin, infoObject Zapplication is restricted to "HR" Then, this authorization object has been assi

  • Office 2013 macro warnings GPO

    How do we enable all macros to run that are stored from our LAN? At the moment we receive warning below the ribbon in excel and word advising that some content maybe dangerous and to enable macros. Also we receive a Security warning after enabling ma

  • My laptop died I bought a new one but, now I want to get the songs in my ip

    I need to synch my ipod to my laptop but, the songs are in my ipod not my laptop. How do I synch the ipod using it as the master to download what is in it to the computer ????

  • Emptying Trash is a problem...

    Recently I've not been able to see 'Empty Trash' in the Finder. What I can see is 'Secure Empty Trash". Both work and there are no issues, other than I have to key 'T' in Help to find 'Empty Trash". I'm sure that I'm missing the obvious but I'd appre

  • Best way to handover offer creation to Compensation team

    Hi, In 11i iRecruitment, we have a requirement for the manager to create the offer with all the details except for salary/compensation. Salary is determined by the Compensation team. What is the best way to configure iRecruitment to allow the entry o