Add GoodsIssue  and StockTransfers with specific field

I have a little problem to add a documents via DI like:
1. GoodsIssue with field in database called IGE1.OcrCode
My code in C#
private void add_GoodIssue()
            SAPbobsCOM.Documents vRw;
            vRw = (SAPbobsCOM.Documents)vcmp.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oDrafts);
            vRw.DocObjectCodeEx = "60";
            vRw.Lines. ?? (OcrCode)
2. StockTransfers with field in database called OWTR.Filler
My code in C#
private void add_StockTransfers()
            SAPbobsCOM.Documents vMM;
            vMM = (SAPbobsCOM.Documents)vcmp.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oDrafts);
            vMM.DocObjectCodeEx = "67";
            vMM. ?? (Filler)
I use SAP BO 2007A (8.00.235) PL11 HotFix1
I try check it at SAP BO 2007A (8.00.242) PL15
It is possible to add it via DI?
Edited by: kkostek on Jun 28, 2011 9:31 AM

Hello,
I see you would like to issue draft docuemnts. Arentyou?
use CostingCode to enter OcrCode this supports the distribution rules (profit centers).
private void add_GoodIssue()
SAPbobsCOM.Documents vRw;
vRw = (SAPbobsCOM.Documents)vcmp.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oDrafts);
vRw.DocObjectCodeEx = "60";
vRw.Lines.CostingCode  = "profitcenter"
Draft stock transfers can be issued as stocktransferdraft document
use oStockTransferDraft instead of oDrafts
private void add_StockTransfers()
SAPbobsCOM.StockTransfer  vMM;
vMM = (SAPbobsCOM.Documents)vcmp.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oStockTransferDraft);
vMM. FromWarehouse = "filler"
Regards
János

Similar Messages

  • Problems to print contacts with specific fields under Maverick.

    I am unable to print contacts with specific, selected fields like `firm´ or `position´under Mavericks. The selected fields will not show up in the printing preview and not be printed at all. Any ideas?

    Thanks, John! It seems you guessed correct, partly at least. I turned some of the problamatic fields off and on again an these are showing up now and I can print them. Great!
    However, I can see the field "firma" (German = company in English) in the previewed sample card but not in the pull down menu "Add Field". That means, I am unable to turn it off/on. The intersting thing: The field is visible and selectable even in the printer dialog were you can select the fields you would like to print but it remains unprintable.
    Again, many thanks, John! 

  • Add a new tab with customer fields to shopping cart item

    Hello Experts,
    I wanted some help in adding a new tab to shopping cart items. I went through some posts and found ways of doing it using some spro settings, but there is no way i can handle the field type in this.
    I want a customer field which is a checkbox, how would i add this?
    Moreover if i use spro the tab will by default be called as "Table Extensions" , i want to give it a specific name.
    In case i am adding a new webdynpro component , how would i go ahead with this? what is the name of the fpm config where i need to add my customer webdynpro component?
    So could someone please help me with this requirement.
    Regards,
    cruiser

    Hello,
    Please follow below steps,
    1.  Appending the fields to the structure in Se11 i.e INCL_EEW_PD_ITEM_CST_SC
    x = header, item
    y = PO,SC
    2.  SAP SRM->SRM server-> Cross-Application Basic setting ->extension and field controls->create a  table extension and supply with data->define customer table extension .( ZAINCL_EEW_PD_ITEM_CST_SC)
    3.  Set the visibility of  table extension thru control table extension and their fields and actions
        use configure  visibility of table like item enchancements
    Bus. Object Set Type  : TICUS
    Bus. Object Type         :BUS2121
    Transaction Type        :SHC
    PDO set exist   :X
    4. Configure Control of Fields of Table Extensions
    Bus. Object Set Type : TICUS
    Structure Field Name : Field name
    Bus. Object Type       :BUS2121
    Set Level                   : ITEM
    Field visible: X
    Field Enable: X
    5. Configure control action
    6. Maintain  view /SAPSRM/V_MDFSBC_DEFAULT
    Bus. Object Set Type : TICUS
    Structure Field Name : Field name
    Bus. Object Type       :BUS2121
    Set Level                   : ITEM
    Field visible: X
    Field Enable: X
    Regards,
    Neelima

  • Generic UDF to handle empty contexts and contexts with missing fields

    Hi,
    I have been trying to get my head around a UDF for this for a while, but cannot find the solution. I''l start by showing input structure, and expected target structure (subset of an invoice IDoc with 4 line items):
    SOURCE:
    E1EDK01 (0..1)
    E1EDP01
    ---POSEX = 1
    ---E1EDP05
    KOTXT (qualifier) = Z1
    BETRG (amount) = 200,00
    ---E1EDP05
    KOTXT = Z2
    BETRG = 300,00
    ---E1EDP19...
    E1EDP01
    ---POSEX = 2
    ---E1EDP05
    KOTXT = Z1
    ---E1EDP05
    KOTXT = Z2
    BETRG = 400,00
    ---E1EDP19...
    E1EDP01
    ---POSEX = 3
    ---E1EDP05
    KOTXT = Z2
    BETRG = 500,00
    ---E1EDP19...
    E1EDP01
    ---POSEX = 4
    ---E1EDP19...
    TARGET:
    Line
    ---PosId = 1
    ---Price = 200.00
    Line
    ---PosId = 2
    ---Price = N/A
    Line
    ---PosId = 3
    ---Price = N/A
    Line
    ---PosId = 4
    ---Price = N/A
    I want the price from E1EDP05/BETRG where KOTXT = Z1to be set for each line. As you can see the source structure can be split in 4 cases:
    1. for some line items there exist multiple E1EDP05-segments with one of them qualifier Z1 and one corresponding amount field. This is the "perfect" structure and easy to handle.
    2. some line items contains E1EDP05 with qualifier Z1 with no BETRG. Problem-case
    3. some line items contains no E1EDP05-segments with qualifier Z1, but contains other E1EDP05-segments. Can be solved.
    4. some line items contains no E1EDP05-segments at all. Can be solved.
    I need to (I believe) set the context of the KOTXT and BETRG to E1EDP01 since I want one value per line item, irrespective of how many E1EDP05-segments exist per line item. In cases where no value can be found for relevant qualifier (Z1) or no E1EDP05-segments exist for a line item I want a default value to be set (N/A).
    My problem is that all these different cases might occur in the same file, and they mess up the values in each context, leading to wrong BETRG to be picked in some cases (where case 2 exist) since mapWithDefault cannot be used (context contains value for other qualifier).
    Do you know how to handle all these cases?
    Any pseudo-code for an UDF?
    Many thanks for your help!
    Br,
    Kenneth

    Hi Shweta!
    Thanks a lot, your idea didn't completely solve my problem, but pointed me in the right direction and gave me some valuable ideas:)
    For anyone wondering how it is done, I solved it by using your suggested two inputs, along with a third input (constant) which functions as default value for contexts where value-field is missing for a specific qualifier, or in case no segments with desired qualifier exists for a context.
    My mapping now looks like the following (where KOTXT is qualifier and KRATE is value field) for the 3 inputs:
    KOTXT(Context = E1EDP01) \
                                equalsS -->
    Constant(qualifier value) /
    KOTXT(Context = E1EDP05) \
                                equalsS  \
    Constant(qualifier value) /            ifWithoutElse --> removeContexts -->
               KRATE (Context = E1EDP05) /
    Constant(default value) -->
    Then these 3 inputs goes into the following UDF (queue function):
    int j=0;
    boolean contextDone = false;
    for(int i=0;i<a.length;i++)
         if(a<i>.equals("true"))
              if(b[j].equals(ResultList.SUPPRESS))
                   result.addValue(c[0]);
              else
                   result.addValue(b[j]);
              contextDone = true;
              j=j+1;
         if(a<i>.equals(ResultList.CC))
              if (contextDone)
                   contextDone = false;
                   result.addValue(ResultList.CC);
              else
                   result.addValue(c[0]);
                   result.addValue(ResultList.CC);
    This results in a target node created for each context, where context relates to each line item in this case, where each value is either a default value or the value corresponding to the qualifier. This works in all cases where:
    1. there are no segments containing relevant qualifier
    2. there are segments with relevant qualifier, but missing value field
    3. there are segments with relevant qualifier and value field
    Thanks a lot again, Shweta, for guiding me!
    Br,
    Kenneth

  • How to add * wild card to a specific field on the selection-screen.

    Hello,
    How to add a * WIld card to a field in selection screen.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    SELECT-OPTIONS : S_STCTS FOR G_STCTS OBLIGATORY,      "NUMBER SCHEME
                     S_AT20A FOR G_ATTR20A,    "SUBSTANCE ID
    SELECTION-SCREEN END OF BLOCK B1.
    I need to add Wild card functionality to Number scheme field S_STCTS on selection-screen.
    Any suggestions would be apprecaited..
    Regards,
    Kittu

    Hi Kittu,
    Here is one sample code:-
    select-option : s_name like kna1-name1.
    start-of-selection.
    if s_name-low = '*'.
    select * from kna1 into table it_kna1.
    elseif s_name-low = 'pat*' or s_name-low = 'pat'.
    select * from kna1 into table it_kna1 where name1 like 'Pat%'.
    endif.
    In case of wild card Select should be :-
    select * from <dbtab> where <field> like 'P%'.
    You can also use RANGES in your Code.
    E.g. RANGES: R_OBJNR FOR JEST-OBJNR
    R_OBJNR-SIGN = 'I'.
    R_OBJNR-OPTION = 'CP'.
    R_OBJNR-LOW = 'K1*'.
    R_OBJNR-HIGH = 'K2*'.
    Hope this helps.
    Thanks & Regards
    Jitendra Gujarathi

  • Connection MESG and INOB with additional field

    Hi friends,
    i'm beginner in ABAP and for this reason i create reports in ABAP query.
    So i create query between tables MSEG and INOB (then INOB with AUSP).
    In INOB-OBJEK - value is matnr and charg,
    but value in this field is: for example 
    matnr                    charg
    EK759064BK (8 free spaces) 0000000066
    EK759064BK (8 free spaces) 0000000067
    EK759064BK (8 free spaces)  0000000068
    EK759064BK (8 free spaces)  0000000069
    EK759064BK (8 free spaces) 0000000070
    My idea is to create additional field with MSEG-MATNR and MSEG-CHARG and relate with INOB-OBJEK
    (concatenate mseg-matnr mseg-charg into refkey.) 
    result is:
    EK759064BK0000000066
    EK759064BK0000000067
    EK759064BK0000000068
    EK759064BK0000000069
    EK759064BK0000000070
    Now my question is how to change code and create additional field like INOB-OBJEK, how to change my code so i have 8 free spaces between MATNR and CHARG?
    Edited by: Marin Lyubomirov on Dec 13, 2009 9:39 AM

    the ABAP keyword CONCATENATE has a parameter RESPECTING BLANKS
    So if you use this this parameter, then you would get the missing 8 spaces, because the material number field is 18 long and your material only 10 long.
    Alternative, just use an own field that is 8 long and do the concatenation like this :
    concatenate mseg-matnr myfield mseg-charg into refkey

  • Can we use latest version of Add-Ons and Toolkits with older version of LabVIEW core?

    Hi every body
    I'm new to LabVIEW
    I have a question .
    Can we use (indeed install) latest version of Add-Ons and Toolkits(for example 2009 or 8.6.1 version) with older version of LabVIEW core(for example LabVIEW 8.6)?
    No problem ?!
    I have LabVIEW 8.6(Evalution) and I want istall Real Time Module 2009.
    Message Edited by mostafi on 10-31-2009 02:49 AM
    Solved!
    Go to Solution.

    I think perhaps 8.6 and 8.6.1 is compatible. But I am 100% sure that 2009 and 8.6.(1) is not downwards compatible
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

  • New G/L and adding customer specific fields

    Hi all,
    does anyone have any experience about adding additional fields in New G/L? I would like to add an additional field that would be filled every time a document is posted. It would be best if it could be in the document header but in line items is ok also.
    Thanks!
    Dusko

    Good morning. I have this same exact question. I have found 1000 documents telling me this is possible and that it is a new feature of the new G/L, but I haven't found any documentation explaining how to implement this feature.
    Does anyone have a link to implementation details, or a document that they could send to [email protected]
    Thank you in advance for your time,
    Andy

  • Weblogic and cmp with blob fields

    I have an entity bean with cmp. This bean has a blob field. When ejbCreate and
    ejbPostCreate methods are executed in this bean, exception saying "row containing
    the LOB value is not locked" is thrown.
    The transaction attribute for the method is set to RequiresNew in the deployment
    descriptor.
    Can someone suggest what may be going wrong here.
    Thanks

    I have an entity bean with cmp. This bean has a blob field. When ejbCreate and
    ejbPostCreate methods are executed in this bean, exception saying "row containing
    the LOB value is not locked" is thrown.
    The transaction attribute for the method is set to RequiresNew in the deployment
    descriptor.
    Can someone suggest what may be going wrong here.
    Thanks

  • Toshiba 46TL968G HowTo add apps and Problem with flash in Webbrowser

    Hi all,
    I have 2 problems regarding Toshiba 46TL968G.
    1) is that possible to install apps on this TV? I searched online that TOSHIBA ePortal could be used to add Apps, but I cannot find it in 46TL968G. Is it supported by this model?
     - If yes, how can I access.
     - If no, how can I install Apps. The Apps found in TOSHIBA Places are fixed and not really helpful. I prefer to install more.
    2) Does the web browser support adobe flash? When I open youtube media, it shows "please install adobe flash". I cannot see any media on web browser. It is interesting that Youtube works fine in TOSHIBA Places.
    Regards

    That doesn't appear to be a US model, and this is the forums for Toshiba USA. You may want to contact Toshiba in your region.
    - Peter

  • ReadObject and problems with Vector field

    hello.
    i'm trying to send an object(data Packet for a chat application) and receive it via sockets.
    every thing is right but there is a Vector field(online users list)that has some problems.
    my clients receive every updated class that contains new user list.but they just see the first received list?
    it's so strange to me because every thing else (such as color,font,size,..) works fine.
    can you help me?

    Every time you resend an object you have already sent, ObjectOutputStream will just send a 'handle', not the actual object. If it's changed value this is a problem. Use ObjectOutputStream.reset() to cause it to forget everything previously sent.

  • IW31- How to add Search help for User specific fields in IW31 transaction.

    Hi Experts,
    I have to add Search help for standard fields USR00 to USR10 fields in IW31 transaction.
    Is there any user exit for this requirement.
    Please reply, it will be very helpful for me.
    Regards,
    B. V. Rao

    Bala,
    See the following user-exits:
    IWO10015: F4 Help for user fields on operation
    IWO10016: Customer enhancement to check operation user fields
    PeteA
    [www.pjas.com]

  • Printing envelopes with specific fields from contacts

    I want to choose certain fields to print envelopes - from a group I have in contacts.   Is this possible?
    Thanks

    Hi kellyof5,
    Thanks for using Apple Support Communities.  This article has instructions on printing envelopes from a group in Contacts:
    Contacts (Mavericks): Print contact information
    http://support.apple.com/kb/PH15095
    Cheers,
    - Ari

  • Trying to add drop down menu with specific look

    Hi.  My home page is http://benefits.mt.gov/hcbdsite/index.html.  I'm trying to make the top right five buttons into drop down menus.  Some will be just straight down, but at least one will be different, like the one like the one at http://www.optumhealth.com/ when I hover over Solutions and Services (4th button on top bar).  Is there a widget that can help me set this up?  In the 3 day DW training I took, we talked about widgets, but I've never used one.  Thank you!

    jQuery Superfish
    http://users.tpg.com.au/j_birch/plugins/superfish/
    jQuery Mega Menus
    http://www.javascriptkit.com/script/script2/jkmegamenu.shtml
    Primer for using jQuery Plugins
    http://alt-web.blogspot.com/2012/11/primer-for-using-jquery-plug-ins.html
    Nancy O.

  • BP extend : how to use FM to update customer specific fields ?

    Hello
    I'm working on a CRM 2007 project and for customer needs, the BP data have been extent with specific fields using EEWB. So specific FMs have been automatically generated to manage the specific data. We want to use these FM to maintain the values of the specific fields. In the EEWB transaction, in the Task BUPA_API for the specific object, 2 FMs have been generated : ZZ1XO_BUPA_MAINTAIN and  ZZ1XO_BUPA_MNTN_ALL : we suppose we have to use these FMs to update the values fo this object. This object (customer specific data) is time dependent with gaps and multiple instance. We tried to use these 2 FMs to update values but it does not work : anybody has already used this kind of FMs ?
    Thanks to all.

    Jerome,
    Normally I use the FM modules generated by the EEWB that contain API to update the data.  However keep in mind if this is a Z-Table and you don't like what is provided, then add your own BAPI modules to the BDT function group to update the data.
    Take care,
    Stephen

Maybe you are looking for