PRELIMINARY_POSTING_DOC_WRITE

While trying to updae a preliminary document with FM PRELIMINARY_POSTING_DOC_WRITE I get an error on vbsegk update due to
<b><i>if t_vbseg-bzalt is initial or i_bstat = char_u.</i></b> sentence which was if <i><b>t_vbseg-bzalt is initial.</b></i> before being modified.
It works if I simulate with the original sentence. Wy was it changed?. What should I do?
Thank you

Hi sims,
You will need to eliminate all errors before you can see the posted document in the database.
So if you are getting the error message "Vendor is not defined in comapnay code 1000", then you will need to use another vendor or set up that vendor in company code 1000, or change the company code you are posting to.
These application errors must be addressed before your document will be posted.
Cheers,
Brad

Similar Messages

  • Preliminary_Posting_Doc_Write Function

    Hi,
    I'm trying to use Preliminary_Posting_Doc_Write Function , to create a Vendor Invoice without a purchase order. the 'Blart' parameter has to be type 'KR', and the account type in the items table has to be 'K' with the tax code 'V1' in MWSKZ.
    I'm using the Ides system, and can't seem to get it to work. It adds the header and the items to the database tables, but when I try and display using FBV3 , I can't see the items. Has any one got any test data with the above parameters, am I missings something obvious?
    One of the error messages I get is "Vendor is not defined in comapnay code 1000"
    amny Thanks

    Hi sims,
    You will need to eliminate all errors before you can see the posted document in the database.
    So if you are getting the error message "Vendor is not defined in comapnay code 1000", then you will need to use another vendor or set up that vendor in company code 1000, or change the company code you are posting to.
    These application errors must be addressed before your document will be posted.
    Cheers,
    Brad

  • PRELIMINARY_POSTING_DOC_WRITE- short dump

    hi everyone
    im using the fm PRELIMINARY_POSTING_DOC_WRITE to park a document
    im filling the structure vbkpf and vbseg
    but its giviing me a short dump saying that some fields in vbkpf are incompatible
    ive been using variables of the same type though
    anybody knows where such problem can be?

    Hi sims,
    You will need to eliminate all errors before you can see the posted document in the database.
    So if you are getting the error message "Vendor is not defined in comapnay code 1000", then you will need to use another vendor or set up that vendor in company code 1000, or change the company code you are posting to.
    These application errors must be addressed before your document will be posted.
    Cheers,
    Brad

  • Parking not possible during batch input

    Hello,
    Iu2019m facing a problem for creating a parked vendor invoice in background (Tcode FB60 / FV60) thru BDC or BAPI.
    I looked for a BAPI and I just found "BAPI_ACC_INVOICE_RECEIPT_POST", for posting FI invoice : it doesnu2019t correspond to our requirements (we need to park).
    Then I used "PRELIMINARY_POSTING_DOC_WRITE" for parking an invoice but when we see the parked invoice in FBV2, the displayed Tcode is like FBV1. The users want the vendor invoice header, I mean the same screen as FB60.
    Finally, I tried to use Batch Input to park but I got the following message :
    "Parking not possible during batch input"
    Message no. FP140
    Procedure
    In Customizing, you can control whether an error message is issued."
    I found nothing in IMG about control message
    And in sdn forums, some said that bdc doesnu2019t work for an enjoy transaction (MIRO, MIR7, FB60 ..) but we already created a BDC for MIR7 and it works.
    Thanks,

    You can use [CALL TRANSACTION|http://help.sap.com/abapdocu_70/en/ABAPCALL_TRANSACTION.htm] like BDC.
    via CALL TRANSACTION you may use [bdc options with NOBINPT |http://help.sap.com/abapdocu_70/en/ABAPCALL_TRANSACTION_BDC_OPTIONS.htm] so the systeme field sy-binpt will be initial.
    You will need to manage the error messages in your program.(no SM35) one solution is to build the BDC for records with errors.
    There are many threads on [difference Between Batch Input and Call Transaction in BDC|https://forums.sdn.sap.com/search.jspa?threadID=&q=differenceBatchInputCallTransaction&objID=c42&dateRange=all&numResults=15&rankBy=10001]
    Regards,
    Raymond

  • Parking document thru FB01

    Hi All,
    I used bapi BAPI_ACC_DOCUMENT_POST  for posting...
    Now the requiremnt is to give an option for Parking as well...
    so i searched SDN ....and i got a FM PRELIMINARY_POSTING_DOC_WRITE..for parking with code as well...
    but i m confused with code ....
    thy have done posting first and then did parking....using the Doc. no .posted....
    is this the rit way?
    Please suggest.....
    Thanks
    Rahul

    Hi JS,
    i am doing the same way....
    and it is creating /posting first then it is changing the BSTAT  to Parked in bkpf table and using badi to make it parked...
    i jst want a confirmation that is it ok ..or do i have to look for some other ways.....
    thnx
    Rahul

  • Function to update/modify preliminary doc of FV60

    Hi friends! I need a little help. I have preliminary doc generate by SAP transaction FV60, and after this, in my program I need in some cases change Cost center. Anyone knows a function/BAPI to do this? I'm trying with "PRELIMINARY_POSTING_DOC_WRITE" but I can't make work. I just wanna to update VBSEGS and not VBKPF and others...
    Thanks for any help.

    Ok i finally figures out how to get around this issue.
    USe FM: PRELIMINARY_POSTING_DOC_WRITE

  • Parking of A/C doc with & without-copa fields and posting of accrual doc

    Hi,
    We have a requirement to park the accounting document with & without the copa fields and to post the accrual document.
    For with-out copa fields parking we have already tried using the FM AC_DOCUMENT_GENERATE, followed by FM PRELIMINARY_POSTING_DOC_WRITE , but i can view only the header data in the display in the transaction fbv3 and not the item data. But the item datas are available in the table vbsegs,vbsegd and vbsegk.
    Can any suggest what could be the problem and if any one has faced the similar problem please reply me immediately.
    For the with-copa field parking we have the copa fields in the FM AC_DOCUMENT_GENERATE, but not in FM PRELIMINARY_POSTING_DOC_WRITE. Can any suggest how this can be resolved.
    I have not got any clue of how to post the accrual document.
    Any pointers on these are most welcome asap.
    Thanks in advance.
    Regards
    Shobana.

    Hi Shobana
    I have the same requirement to park a document, im getting an error in generating the document
    Can you confirm the fields to be populated?

Maybe you are looking for

  • SRM MDM: Workflow Unlaunch while performing the Automatic data transfer

    Hi, We are trying to import some data from R/3 4.6 C by configuraing remote system as ERP and creating Port based based on the XML Schema in the SRM MDM Catalog. We have created work flow to validate the above pulled data accuracy into data manager.

  • Unable to take print out of JPEG image of DMS Document

    Hi Expert, I have used below method to print document.         CALL METHOD cl_gui_frontend_services=>execute           EXPORTING             document  = w_string             operation = 'PRINT'. I am able to take print out of all documents except JPE

  • Can I change out the type of tablet without incurring fees

    I currently have a tablet on my account with a shared data plan.  I don't particularly like this tablet and am getting another one, a Kindle Fire HDX, that has Verizon wi-fi capability.  I don't want to add the new tablet to the account but just want

  • Message: This library was created with unreleased version of iPhoto. HELP.

    The message goes on to say, open in iPhoto 2 or 4 before trying to upgrade to 6. I have numerous Libraries on external RAID. All opened fine under 5. I certainly never had unreleased version of any Apple program, nor do I know where to get copy of iP

  • No inspection lot created for new inspection type created

    Hi all, We create a new inspection type which is based on a copy-version of an existing inspection type. These inspection type has a inspection type origin of standard SAP 04 (i.e. Goods Receipt from Production). Question 1 - we bumped into problem w