Problem with BAPI_SALESORDER_CHANGE ("Enter part 2 of the incoterms")

Hi,
I have a problem when I try to create Sales Order and change it with BAPI_SALESORDER_CHANGE.
Logic of my program is
1. Use BAPI_SALESDOCUMENT_COPY to copy data from Billing to Create SO
2. Use BAPI_SALESORDER_CHANGE to unblock Billing Block in Sales Order Created from step1
Problem occurs in step 2. Returning Bapi Error Message that "Enter part 2 of the Incoterms". I already check that after step 1 Sales Order already have incoterm2. And in step 2, I didn't send input parameter 'X' to update fiend incoterm2 (Table order_header_inx1).
I debug BAPI_SALESORDER_CHANGE and found that my error came from function 'SD_SALES_ITEM_MAINTAIN'. I think that this function is used for update item. I couldn't see why it gave me that error about INCOTERMS2 which is in header.
Have anyone ever been through the same problem before?
Thanks,
Pavin

I just found the cause of this problem and want to share in this topic.
Here is the process of BAPI_SALESORDER_CHANGE that cause my problem.
BAPI_SALESORDER_CHANGE -> SD_SALESDOCUMENT_CHANGE -> SD_SALES_ITEM_MAINTAIN  -> perform vbkd-inco1_pruefen(sapfv45k) -> RV_INCOTERMS_CHECK
My problem occurs in Function RV_INCOTERMS_CHECK because value in field VBKD-INCO2 is missing. This case only happen when I try to create CFR SO with reference from EXW Billing.
Hope it's useful.
Regards,
Pavin
Edited by: Pavin P. on Apr 30, 2009 5:15 AM

Similar Messages

Maybe you are looking for

  • Var apps no longer working on Lion

    Hi All, Just upgraded to Lion to find var apps not working. Specifically Office 2004 which wilst I'm not exactly happy with can live without, but still don't appreciate fact this was not sufficently advertised as being an issue BEFORE i upgraded, and

  • Apple keyboard volume keys no longer working on bootcamp windows

    i have the wired full size apple keyboard and the only keys that dont work are the volume adjusters and brightness adjusters is there any way to fix? they were working fine yesterday

  • Firefox crashes randomly on numerous webpages

    Starting around the beginning of August my Firefox browser has been constantly crashing. It was around the same time that Firefox 6 came out, but it was also the same time that I upgraded my video card and memory. Microsoft Security Essentials was al

  • EMBEDDING VIDEO CRASHES ADOBE ACROBAT Xl

    I have a macbook retina 13 inch 2012 with os up to date ande adobe acrobat por Xl embedding video in a pdf does crash the program even with flv video. see crash report. who can help me? Process:     AdobeAcrobat [13575] Path:        /Applications/Ado

  • Spry Menu Active Color

    HALP!  I need my spry menu bar colour to stay orange when it is selected.  Link to the site below. http://batengineering.bdaonline.co.nz/ Can anyone out there help! Raven