Skip to Content
author's profile photo Former Member
Former Member

Change date in sales position with BADI 'CRM_SALES_BADI'

Hi Everybody.

I need some help about this:

I am using the BADI 'CRM_SALES_BADI' in order to change some fields in the sales order while creating with CRMD_ORDER transaction.

I've changed the Pricing date (Prices Tab), Reference date (General Tab) and Rqstd. Delivery date (Shipping Tab).

What I need now is to change the Request Date in the order positions, and I've trying for days; but I couldn't do it yet.

First, I am using the FM 'CRM_ORDER_READ' throught the order GUID, and I obtain the et_schedlin table with positions.

After that, I am using FM 'CRM_ORDER_MAINTAIN_SINGLE_OW' to save the changes I made; and I get sy-subrc = 0; but nothing changes at order positions.

I think I'm doing something wrong, cause table et_schedlin I get with 'CRM_ORDER_READ' has not the same structure of it_schedlin_i parameter in 'CRM_ORDER_MAINTAIN_SINGLE_NOW' and I must to create a internal table with the correct structure to use with that function; and I don't know how to build it correctly.

Could somebody give me some help?

A lot of thanks!!!

Edited by: Alvaro AH. on Feb 19, 2008 6:59 AM

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Feb 18, 2008 at 09:19 AM

    Mmm, I think I can use the FM 'CRM_SCHEDLIN_I_MAINTAIN_OW' but I am not sure...I'll try it.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.