Creating "Payables Account Transaction" using custom code

Hi Gurus,
I need a help. I have a requirement that I have to create "Payables Account Transaction" using custom PL/SQL code. Kindly could you advise me as to which API or Package should i use to get this done. Currently I am in 11.5.10.2.
Pls help me on this.
Thanks,
Genoo

Hi Genoo,
As mentioned I would reverse the standard journals coming from Payables, that way you can still see what the original journals were and drill back using them. So you don't do anything in the subledger.
Alternatively if you wanted to get more risky, when you run the Payables transfer to GL, you could choose not to submit journal import and then you could manipulate the AP Journal records while they are still in the GL_INTERFACE (as they also go through that table) prior to going to GL, then you could do whatever you want - and if you don't delete them (but update / copy them) they will still retain the drilldown links back to AP.
Regards,
Gareth

Similar Messages

  • Update Power View reports properties using custom code

    Is there any way to update power view reports uploaded in SharePoint 2013 shared data source link using custom code?
    Best Regards,
    Sameer Salunke
    MCTS-Please remember to click "Mark As Answer" if a post solves your problem or "Vote As Helpful" if it was useful.

    Someone out here must have an answer????   I know that SharePoint 2013 saves the view created in Power View therefore the metadata must be accessible somehow?  Can someone explain
    how to find that metadata in the SQL tables maybe?  I would be surprised to find out I am the only one who needs this?
    Ken Craig

  • How can i create multiple accounts but use the same itunes?

    how can i create multiple accounts but use the same itunes?

    Hi iCloud is Making Me Go Crazy,
    You will need to create a new Apple ID for your GameCenter and iCloud services.  You can continue to use the current Apple ID you share with your Mom for access to iTunes Store purchases if you wish. 
    Using your Apple ID for Apple services
    http://support.apple.com/kb/HT4895
    Frequently asked questions about Apple ID
    http://support.apple.com/kb/HT5622
    Cheers,
    - Judy

  • HT4889 I have accidentally created another account when using Migration Assistant to a new MBA. How do I now 'migrate' all the files from both accounts into one to save myself having two accounts, both of which are me? Help?

    I have accidentally created another account when using Migration Assistant to a new MBA. I have read that I probably should not have skipped migration in the initial set up and the problem would have been avoided but, alas, here I am. Does anyone know how I can 'migrate' all the files from one of the accounts that has been created to the other, so then I can delete it and have a single user on the computer seeing as I am the only person using it? I have read starting again, if this is the way to go, where is the best place to start 'starting again'?

    Yes definitely should see it but its not coming up (I don't think) when I log out of 2nd user and into the main account. Opening finder in the 2nd account, I can obviously find the public folder because thats where I dropped all the files, but when in the main account, it can't be found. The only public folder that comes up is the folder for that account (main account) and it does not display files I'm looking for. Frustrating....
    EDIT: Have found it through a round-about way but all music and photo and movie etc files have a red stop sign disallowing them from being transferred. Can you guess what the next question will be?

  • Creating itune account without using credit card

    Hi.
    I m new apple user has a little question.
    Can i create Itune account without credit card.? if it is possible then tell me the process of creating itune account without using credit card. 
    Warm Regards,
    Chandan Sharma

    I follow the provided link but payment method does not show option "non" i am very frustate.
    please help me because i do't have a credit card.

  • How to query a dataset using custom code in report builder 3.0

    Hi,
    Can anyone please suggest whether it is possible to query a dataset by using custom code in report builder 3.0.
    Thanks in advance.

    Hi Purbasha,
    please see below similar thread:
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/9af8f39a-9dc5-49ab-91af-2f64198c8477/ssrs-2008-custom-code-for-database-query
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/440ff5de-1c21-47de-95d8-e4212d6cef6d/dataset-in-custom-code-in-sql-server-reporting-services?forum=sqlreportingservices
    swallow

  • What is importance of Account group in customer code create?

    Dear Experts,
                             whlie creating customer code we have difference types of Account group , what is  the importance ? what is mean by bill- to party , sold-to party . i am very new to SD please guide me
    regards
    rajakarthik.

    Hi Raja
    First, try to understand "Customer".
    "Customer" is actually one type of Business Partner.
    If you will tell simply "Customer", then it does not make a complete sense to me, as in business, I will be interested to know, which "Customer" you are talking about.
    Beacuse, there are four types of Customer. The Customer Partner type is categorised as per the function performed by them.
    The Customer, who places order is called -- SP (Sold-to-party),
    the Customer who receives the goods is called -
    SH (Ship-to-party),
    who receives the Bill is called -- BP (Bill-to-party) and
    who makes the payment is called --- PY (Payer).
    SP, SH, BP and PY are called "Partner Function" (i.e. Function performed by the Partner "Customer").
    If you will take the example of a small business, you will find, the same person is placing the order, receiving the goods, receiving the bill and making the payment also. That means, he is performing the role for all the functions SP,SH,BP and PY.
    But, if you will go for a big Corporate, you may find all four may be different. For example, Delhi office is the SP, Mumbai office is SH, Kolkata office is PY & Chennai office is BP.
    All the 4 Partner functions are mandatory in a sales process, they may be performed by one partner or by four different partners.
    As all the above Partner Functions are mandatory, they need to exist in the system as a Customer. A customer exist only when a master data is created for him.
    ACCOUNT GROUP
    You must have seen ,when Billing document is saved, there is posting takes place in Accounting.
    A Debit posting to Customer account and credit posting to Revenue account. It indicates that, Customer is also considered as an "Account" in FI.
    So, a group of Account (customer) behaving in a similar manner are one "ACCOUNT GROUP". Those different Account Groups are normally created in FI. There are various Account groups like 0001(Sold-to-party), 0002(Ship-to-party) etc, and you can create your own also.
    When you create a Customer, system needs to know, what type of Customer (Account) you are going to create. System gets this information through "Account Group". If you want to create a Customer who will work as a Payer, then you need to choose the Account Group "Payer" and not '0002- Ship-to-party".
    A "Payer" needs the billing and Payment related information, he does not require Shipping related information. Hence, the Shipping tab is not found totally in the customer master of a "Payer". Similarly, those fields which are not required for a particular type of customer, they are suppresed (made invisible).
    Which fields will be mandatory, optional, suppressed & display purpose only, are decided/ controlled by the Account group and this is what we call "Field selection" which is controlled by Account group (one controlfunction of Account Group).
    Similarly, when we save a Customer master, the customer number (either internal or external) comes from the "Number range" which has been assigned to the Account group. There are few other functions which are also controlled by the Account group like whether "One-time customer" default output etc.
    That means without specifying an "Account Group", you can not create a Customer as now you know, Account group controls the Customer master data.
    Hope, this explanation will create your doubts in a simpla manner.
    Regards
    Edited by: pradyumna on Oct 24, 2009 6:55 PM

  • Create lead via reference to campaign using custom code

    I'm looking for an easy way via custom code to create a lead transaction and include a reference to a campaign object in my system.  I'm having no luck with the XIF doc flow segment for the lead creation and would like to look for other methods to update this link.
    Any suggestiosn on how to code this would be great.  Yes I know that I could do ELM, but then I would need to rewrite my entire program, my leads create properly minus the campaign link.
    As always help will be acknowledge and correct answers given here, will be put in the CRM wiki for future reference.
    Thank you,
    Stephen

    Okay this actually will work via XIF adapter, the trick was proper settings of the related type attribute.  When SAP inserts new doc flow for relations to campaigns it is done via "space" option.  The LV_GUID needs to be GUID of the campaign in question.
      LS_DOC_FLOW-RELATION_TYPE   = 'VONA'.
      LS_DOC_FLOW-RELOBJ_ROLETYPE = 'VORGAENGER'.  "Role A
      LS_DOC_FLOW-RELOBJ_OBJKEY   = LV_GUID.
      LS_DOC_FLOW-RELOBJ_TYPE     = 'BUS2010020'.
      LS_DOC_FLOW-OBJECT_TASK     = 'I'.
      LS_DOC_FLOW-RELATION_TYPE_ATTR = space.
      LS_DOC_FLOW-INPUT_FIELDS-RELOBJ_ROLETYPE = 'X'.
      LS_DOC_FLOW-INPUT_FIELDS-RELATION_TYPE   = 'X'.
      LS_DOC_FLOW-INPUT_FIELDS-RELOBJ_OBJKEY   = 'X'.
      LS_DOC_FLOW-INPUT_FIELDS-RELOBJ_TYPE     = 'X'.
      LS_DOC_FLOW-INPUT_FIELDS-RELATION_TYPE_ATTR = 'X'.
      INSERT LS_DOC_FLOW INTO TABLE LT_DOC_FLOW_XIF_DATA.
    Yep this will need to end up in the wiki once my I'm finished up with the full program/conversion.  I guess I will keep my title as "pied piper"  of the XIF adapter for now.
    Take care,
    Stephen

  • Creating a long text using ABAP code.. fm SAVE_TEXT

    When you create an order via IW31 one of the options is to click on the text button and create a long text. I am basically trying to mimic this action from within my ABAP code.
    The text id details are as follows:
    Text Name       500000015000046  which is (5000000 + order number)
    Language        EN
    Text ID            KOPF         Order header text
    Text Object      AUFK       Order text
    If i manually create the text within the transaction i am then able to view and update it via function modules READ_TEXT and SAVE_TEXT. But if the text has not already been created READ_TEXT obviously returns nothing as it does not exist and SAVE_TEXT does not seem to created it!
    Anyone know how i would go about creating this text using ABAP code?
    Hope this make a bit of sense
    Thanks in advance
    Mart

    I have implemented the code as i think it should be. See below, can any see what is wrong. If i add init_text it makes no difference and adding the commit_text just makes it hang
    DATA: IT_TEXTS type standard table of TLINE,
           wa_texts like line of it_texts,
           wa_txtheader type THEAD.
    wa_txtheader-TDID     = 'KOPF'.
    wa_txtheader-TDSPRAS  = 'EN'.
    wa_txtheader-TDNAME   = '500000015000056'.
    wa_txtheader-TDOBJECT = 'AUFK'.
    wa_texts-tdformat = '*'.
    wa_texts-tdline = 'hello'.
    append wa_texts to it_texts.
    wa_texts-tdformat = '*'.
    wa_texts-tdline = 'hello'.
    append wa_texts to it_texts.
      wa_texts-tdformat = '*'.
    wa_texts-tdline = 'hello'.
    append wa_texts to it_texts.
    wa_texts-tdformat = '*'.
    wa_texts-tdline = 'hello'.
    append wa_texts to it_texts.
    wa_texts-tdformat = '*'.
    wa_texts-tdline = 'hello'.
    append wa_texts to it_texts.
      wa_texts-tdformat = '*'.
    wa_texts-tdline = 'hello'.
    append wa_texts to it_texts.
    CALL FUNCTION 'SAVE_TEXT'
      EXPORTING
        CLIENT                = SY-MANDT
        HEADER                = wa_txtheader
        INSERT                = 'X'
       SAVEMODE_DIRECT       = ' '
       OWNER_SPECIFIED       = 'X'
      LOCAL_CAT             = ' '
    IMPORTING
      FUNCTION              =
      NEWHEADER             =
      TABLES
        LINES                 = IT_TEXTS
    EXCEPTIONS
       ID                    = 1
       LANGUAGE              = 2
       NAME                  = 3
       OBJECT                = 4
       OTHERS                = 5
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

  • How to create a Language Branch using custom workflow?

    Hi,
    I’ve a requirement where I need to create a workflow process which will create a Language branch.  i.e I wanted to achieve the functionality using custom workflow as given in the docs: https://dev.day.com/docs/en/cq/current/administering/multi_site_manager.html#Managing the Translation of your Language Branches 
    As per the OOTB functionality,
    1.     If the target page is not exist in the Language branch, it will copy the reference page to target path.
    2.     If the target page is already exists, it will not create a copy of the reference.           
    After the translation, if we make any changes in the reference page and activate the reference, then we have a button called 'Show side by Side' under Translation in the side kick which shows differences between reference page and translated page.
    Example:
    So, I would like know how we can achieve this in my custom workflow process. In my workflow process, I’m checking whether the page is existed in the target path or not. If not exist, I used page copy.
    Eg: Page page = newPage.copy(originalPage,targetPath+"/"+originalPageName,null,true,true );
    When I use above api, it just copies the page and it will not maintain any relation with reference page.
    Any pointers would be more helpful.
    Thanks
    Siva

    Hi,
    I have a similar request to export the texts from one language and after the translation to import them to the new language, did you find any solution? My question is how can I add some steps into my workflow to validate the imported data -and if the user validate the texts then proceed with next step(in my case I import the text from a file and generate a form with values). I read the documentation from Adobe but I didn't find anything related to how we can add a workflow to a dynamically generated from(I don't use the CQ form component).
    Can anybody help me with this?
    Thx, Lorand

  • GL Account Clearing using T.code F-03

    I am trying to clear the line items of a balance sheet gl account ( short term  general liabilities) using t.code F-03.This gl account is specified as "open item Management" and line item display in the GL Master.
    The problem is that when I  try to clear the line items of the account,  an error appears saying" Exchange rate difference accounts are incomplete for the account.
    This means that foreign exchange valuation gain/loss accounts have not been assigned to this account.
    My question is, why should exchange rate difference accounts be assigned inorder to clear the line items of a gl account?
    Is there a setting which makes it mandatory for a gl account to be assigned exchange rate gain/loss accounts??
    How do I solve this problem?
    Edited by: aravind kamireddy on Sep 18, 2009 6:28 PM

    Hi,
    First of all..why would system need a Exchange gain/Loss Account..If your local currency is INR and you posted a debit and a credit document both in INR..then there is no question of a foreign exchange gain/loss account..
    BUT, if you have posted the document in any currency other than INR, ie: your local currency...then the system would need a exchnage gain/loss account when you try to clear the debits and credits.. i am giving an example below to explain better..
    You posted a debit of 100 USD @ 40 = Rs. 4000.00
    You posted a Credit of 100 USD @ 42 = Rs. 4200.00
    Now, if you clear this debit and credit then there is no difference in 100 USD, as the debit and credit is netting off.. but if you see INR there is a difference of Rs. 200.00 which system posts to Exchange gain/loss account..which we maintain in OB09.
    Hope it is clear to you now..
    Regards,
    SAPFICO.

  • Tutorial:  Creating, saving and re-using Custom Shapes

    I've beeen experimenting with custom shapes for the last couple of days, and thought I'd share some of the tips and techniques I found.
    First of all, what are custom shapes?
    Well, they're vector objects.  That means that they are not built out of millions of individual pixels (like images are), but rather they're a series of mathematical statements that describe how to draw a line from point to point to create the vector shape.  This means that custom shapes are "resolution independent", and that they can be grossly shrunk or enlarged and still retain razor sharp edges, curves and corners.
    What are custom shapes good for?
    Pretty much anything where you want to use a good, sharp object.  In particular, using a custom shape as a clipping mask for an image that's been placed as a Smart Object is an outstanding technique, and really shows off the power that PSE is capable of.
    PSE comes with a lot of ready-to-use custom shapes for its Custom Shape tool, and there are probably hundreds of thousands available on the Web -- just search for "photoshop shapes".  Typically, those shapes will be supplied as Adobe CSH (Custom SHape) files, and simply copying the CSH files into the
    "C:\Program Files (x86)\Adobe\Photoshop Elements 10\Presets\Custom Shapes"
    directory will make them available for use with the Custom Shape tool.
    Sooner or later, though, you'll get the itch to create your own custom shapes.  Out of the box, PSE does not have the capability to let you create custom shapes and add them to the CSH files like the "big" Photoshop does, so we'll need to use a workaround:  store your custom shapes as layers in a PSD file, and when you want to use them simply copy them into your image. 
    N.B.:  To create custom shapes you'll have to use the reasonably priced Elements+ add-in:
    http://elementsplus.net/
    So, the procedure goes like this:
    Create a new image, using the PSE defaults, and save it as "CustomShapes01.psd", keeping it open.
    Open an image containing an object that you want to use as a custom shape.
    Use any of the selection tools to make an accurate selection of the object:
    In the Effects panel, use the Elements+...Paths effect and choose the Create New Path...From Current Selection:
    Use the Elements+...Paths again, choosing "Convert to Shape", giving it a name and colour of your choosing.  This will create a Shape Layer using that name.
    Important:  If your shape has "holes",
    use the Shape Selection tool and click on the shape to select it.  Then hit the "Combine" button in the Options Bar.  This will combine all the individual shapes used to create the shape and its "holes" into one shape, and prevent beaucoup problems later.
    Switch to the Move tool and drag the shape onto the tab of your "CustomShapes01.psd" image, keeping your mouse button pressed.  That image will become activated and you can move your cursor onto the image itself and drop your shape onto it.  Your PSD file will now have your custom shape as a shape layer:
    Save that "CustomShapes01.psd" file.
    You can repeat the process for as many custom shapes as you want, and they will each become a layer in the "CustomShapes01.psd" file.
    To use your custom shape, open the "CustomShapes01.psd" file and your target image and do the drag and drop with the Move tool to copy the custom shape onto your target image.
    I mentioned that using a custom shape as a clipping mask for an image placed as a Smart Object is a very powerful technique.  It's powerful because the custom shape can be altered at any time and still keep its sharpness, and because the Smart Object can also be resized without becoming pixellated.  Of course, that custom shape layer can have any number of layer styles applied to it and those layer styles will "follow" the shape if the shape is moved, resized or rotated.
    Here are three examples of using the custom shapes as clipping masks for Smart Objects:
    In this example, each custom shape is used as a clipping mask for an image Smart Object, as usual:
    Here, one custom shape was used as a clipping mask for an image Smart Object and they were linked. 
    Then the shape and image were duplicated and moved, rotated and resized.  Because of the linking, the Smart Object automatically kept its orientation and size relative to the custom shape throughout:
    If you want to use custom shapes as a "combined" clipping mask, the procedure is a little more complicated because you need to get all your custom shapes on one shape layer. 
    So, after copying your shapes into the target image (as separate shape layers), use the Shape Selection tool to select one of the shapes.  Using Edit...Cut will cut that shape layer to the Clipboard, and you can select one of the other shape layers and use Edit...Paste to paste the custom shape into that shape layer.  Repeat as necessary, and you will get all of your custom shapes on one shape layer.  Then use that single shape layer as your clipping mask:
    The neat thing is that the individual shapes can be selected with the Shape Selection tool and independently moved, resized or rotated as necessary.
    Enjoy!
    Ken

    Thanks, Michel.
    I forgot to mention one point about copying shape layers into one shape layer:  when you initially use the Shape Selection tool to select a shape for cutting, make sure the option for the Shape Selection tool is set to "Add to Selection".
    MichelBParis wrote:
    The problem with Elements+ is that it has so many features you soon forget what it can give you !
    Truer words were never spoken! 
    Ken

  • File upload in KM using custom code

    Hi All,
    We do keep on getting requests to  frequently upload versions of file in KM for our users, Is there a way where a customised iview can be developed to pick up a file from desktop and upload it in KM ? I think this can be done using Webdynpro Abap or Webdynpro Java not very sure .
    Please guide me with pre-requisites and steps as I am new to such kind of development in portal.
    Regards,
    Jalpa Shukla

    Hi Jalpa Shukla,
    Not sure what you mean by "getting requests to frequently upload versions of file". If you are trying to write some custom code through which you can upload a file in KM (and maintain the document versions). Check [this|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/3095f14c-29c5-2b10-f69e-edcb6f0f1367?QuickLink=index&overridelayout=true] link.
    Hope it helps!
    Thanks, Ansar.

  • While creating sales order wrt quotation customer code field is in display

    Hi all,
    I am facing one problem, while creating sales order with reference to quotation customer code field is in display mode.
    I am not able to change the customer code. But i want to change it accordingly.
    Previously it was in changeable mode only but now it is not in changeable mode.
    Can anyone please tell me the solution for this issue?
    Thanks in advance
    Babu

    hi
    is that happening only when you create sales order wrt quotation,try creating normal sales order and see whether customer is in changable mode
    regards
    senya

  • Problem in creating an account document using BAPI_ACC_DOCUMENT_POST

    Hi Experts,
    I have a porblem while creating an account document from BAPI_ACC_DOCUMENT_POST.
    The problem is acc document is geeting posted and I am getting an document number for that bapi, but its not getting saved to data base and I am getting the following error message
    "Document 1900004327 3000 does not exist in fiscal year 2005
    Message no. F5A397
    System Response
    The required document either does not exist in the fiscal year or is still being posted.
    When the document is read, archived documents are also considered."
    Please sugggest...
    We are using ECC 6.0
    Thanks,
    Suma.

    Hi,
    this means that the posting is not open...
    try with 2008...
    or else ask ur financial consultatto check, whether the 2005 is open or not.
    u also try posting manually using FB01 with same entries u r using for this BAPI...so that u can track the error.
    Also use BAPI_TRAACTION_COMMIT after bapi post.
    check ur subsystem which u r passing for the BAPI..
    wa_general-assetsubno = '0000'. Is it 3000 or 0000
    Try using 0...
    Edited by: Sumi Vasu on May 14, 2008 8:13 AM

Maybe you are looking for

  • Coding problem in a user exit for unit conversion please see it once

    Hi experts,                i am having a problem in coding i wont to convert the MSEG-ERFME field that is quantity field into tonne when ever it is kg. In tcode j1i5 i got one user exit J_1i7_userexit_validate now inside this user exit i have to writ

  • Setting Visibility to Table cell editor

    Hi I created a table and added a colomn to the table in view layout. Cell editor of that colomn contains an image. Based on some conditions , I need to make image invisible in table cell editor of custom colomn. How can I do it.

  • Outlook2013 EAS connection

    Hi, I am using Outlook2013/Exchange Mail app in mobile devices to connect to Office365 in cloud. In doing this, I'm using my own relay server in between Outlook 2013 and Office365. The relay server accepts HTTP requests. Mobile clients are working fi

  • Intercompany set up in Hyperion Enterpries 6.4

    I am looking to set up intercompany accounts. I was just wondering if anybody has any advice on setting this up. What if any problems were encountered and what worked best. Thanks Jason

  • SAP Product info

    Hi, I am trying to locate the SPS level of all the business packages and TREX available for Portal along with their end of mainstream maintenance. I have gone through the content portfolio section of SDN and also the release strategy and PAM on the m