I am trying to default Account assignment value based on document type while creating PR and PO. I have looked at BADI and USEREXIT but couldn't get a solution. There is a method OPEN in BADI ME_PROCESS_REQ_CUST ,it dumps when I use method get_data in that. If anyone has done this before please let me know.
I have checked previous posts,most of them say to use personal settings which I do not want because account assignment value changes based on document type.